Class Contact.ContactBuilder

java.lang.Object
org.ivoa.dm.registry.voresource.Contact.ContactBuilder
Enclosing class:
Contact

public static class Contact.ContactBuilder extends Object
A builder class for Contact, mainly for use in the functional builder pattern.
  • Field Details

    • name

      public ResourceName name
      the name or title of the contact person. This can be a person's name, e.g. “John P. Jones” or a group, “Archive Support Team”.
    • address

      public String address
      the contact mailing address All components of the mailing address are given in one string, e.g. “3700 San Martin Drive, Baltimore, MD 21218 USA”.
    • email

      public String email
      the contact email address.
    • telephone

      public String telephone
      the contact telephone number Complete international dialing codes should be given, e.g. “+1-410-338-1234”.
    • altIdentifier

      public List<String> altIdentifier
      A reference to this entitiy in a non-IVOA identifier scheme, e.g., orcid. Always use a URI form including a scheme here.
    • ivoid

      public IdentifierURI ivoid
      An IVOA identifier for the contact (typically when it is an organization).
  • Constructor Details

    • ContactBuilder

      public ContactBuilder()
  • Method Details

    • create

      public Contact create()
      create a Contact from this builder.
      Returns:
      an object initialized from the builder.