Class Contact.Builder<_B>

java.lang.Object
org.javastro.ivoa.entities.resource.Contact.Builder<_B>
All Implemented Interfaces:
com.kscs.util.jaxb.Buildable
Enclosing class:
Contact

public static class Contact.Builder<_B> extends Object implements com.kscs.util.jaxb.Buildable
  • Field Details

    • _parentBuilder

      protected final _B _parentBuilder
    • _storedValue

      protected final Contact _storedValue
  • Constructor Details

    • Builder

      public Builder(_B _parentBuilder, Contact _other, boolean _copy)
    • Builder

      public Builder(_B _parentBuilder, Contact _other, boolean _copy, com.kscs.util.jaxb.PropertyTree _propertyTree, com.kscs.util.jaxb.PropertyTreeUse _propertyTreeUse)
  • Method Details

    • end

      public _B end()
    • init

      protected <_P extends Contact> _P init(_P _product)
    • withName

      public Contact.Builder<_B> withName(ResourceName name)
      Sets the new value of "name" (any previous value will be replaced)
      Parameters:
      name - New value of the "name" property.
    • withName

      public ResourceName.Builder<? extends Contact.Builder<_B>> withName()
      Returns the existing builder or a new builder to build the value of the "name" property. Use ResourceName.Builder.end() to return to the current builder.
      Returns:
      A new builder to build the value of the "name" property. Use ResourceName.Builder.end() to return to the current builder.
    • withAddress

      public Contact.Builder<_B> withAddress(String address)
      Sets the new value of "address" (any previous value will be replaced)
      Parameters:
      address - New value of the "address" property.
    • withEmail

      public Contact.Builder<_B> withEmail(String email)
      Sets the new value of "email" (any previous value will be replaced)
      Parameters:
      email - New value of the "email" property.
    • withTelephone

      public Contact.Builder<_B> withTelephone(String telephone)
      Sets the new value of "telephone" (any previous value will be replaced)
      Parameters:
      telephone - New value of the "telephone" property.
    • addAltIdentifiers

      public Contact.Builder<_B> addAltIdentifiers(Iterable<? extends String> altIdentifiers)
      Adds the given items to the value of "altIdentifiers"
      Parameters:
      altIdentifiers - Items to add to the value of the "altIdentifiers" property
    • withAltIdentifiers

      public Contact.Builder<_B> withAltIdentifiers(Iterable<? extends String> altIdentifiers)
      Sets the new value of "altIdentifiers" (any previous value will be replaced)
      Parameters:
      altIdentifiers - New value of the "altIdentifiers" property.
    • addAltIdentifiers

      public Contact.Builder<_B> addAltIdentifiers(String... altIdentifiers)
      Adds the given items to the value of "altIdentifiers"
      Parameters:
      altIdentifiers - Items to add to the value of the "altIdentifiers" property
    • withAltIdentifiers

      public Contact.Builder<_B> withAltIdentifiers(String... altIdentifiers)
      Sets the new value of "altIdentifiers" (any previous value will be replaced)
      Parameters:
      altIdentifiers - New value of the "altIdentifiers" property.
    • withIvoId

      public Contact.Builder<_B> withIvoId(String ivoId)
      Sets the new value of "ivoId" (any previous value will be replaced)
      Parameters:
      ivoId - New value of the "ivoId" property.
    • build

      public Contact build()
      Specified by:
      build in interface com.kscs.util.jaxb.Buildable
    • copyOf

      public Contact.Builder<_B> copyOf(Contact _other)
    • copyOf

      public Contact.Builder<_B> copyOf(Contact.Builder _other)