Class Curation.Builder<_B>

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

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

    • _parentBuilder

      protected final _B _parentBuilder
    • _storedValue

      protected final Curation _storedValue
  • Constructor Details

    • Builder

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

      public Builder(_B _parentBuilder, Curation _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 Curation> _P init(_P _product)
    • withPublisher

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

      public ResourceName.Builder<? extends Curation.Builder<_B>> withPublisher()
      Returns the existing builder or a new builder to build the value of the "publisher" property. Use ResourceName.Builder.end() to return to the current builder.
      Returns:
      A new builder to build the value of the "publisher" property. Use ResourceName.Builder.end() to return to the current builder.
    • addCreators

      public Curation.Builder<_B> addCreators(Iterable<? extends Creator> creators)
      Adds the given items to the value of "creators"
      Parameters:
      creators - Items to add to the value of the "creators" property
    • withCreators

      public Curation.Builder<_B> withCreators(Iterable<? extends Creator> creators)
      Sets the new value of "creators" (any previous value will be replaced)
      Parameters:
      creators - New value of the "creators" property.
    • addCreators

      public Curation.Builder<_B> addCreators(Creator... creators)
      Adds the given items to the value of "creators"
      Parameters:
      creators - Items to add to the value of the "creators" property
    • withCreators

      public Curation.Builder<_B> withCreators(Creator... creators)
      Sets the new value of "creators" (any previous value will be replaced)
      Parameters:
      creators - New value of the "creators" property.
    • addCreators

      public Creator.Builder<? extends Curation.Builder<_B>> addCreators()
      Returns a new builder to build an additional value of the "Creators" property. Use Creator.Builder.end() to return to the current builder.
      Returns:
      a new builder to build an additional value of the "Creators" property. Use Creator.Builder.end() to return to the current builder.
    • addContributors

      public Curation.Builder<_B> addContributors(Iterable<? extends ResourceName> contributors)
      Adds the given items to the value of "contributors"
      Parameters:
      contributors - Items to add to the value of the "contributors" property
    • withContributors

      public Curation.Builder<_B> withContributors(Iterable<? extends ResourceName> contributors)
      Sets the new value of "contributors" (any previous value will be replaced)
      Parameters:
      contributors - New value of the "contributors" property.
    • addContributors

      public Curation.Builder<_B> addContributors(ResourceName... contributors)
      Adds the given items to the value of "contributors"
      Parameters:
      contributors - Items to add to the value of the "contributors" property
    • withContributors

      public Curation.Builder<_B> withContributors(ResourceName... contributors)
      Sets the new value of "contributors" (any previous value will be replaced)
      Parameters:
      contributors - New value of the "contributors" property.
    • addContributors

      public ResourceName.Builder<? extends Curation.Builder<_B>> addContributors()
      Returns a new builder to build an additional value of the "Contributors" property. Use ResourceName.Builder.end() to return to the current builder.
      Returns:
      a new builder to build an additional value of the "Contributors" property. Use ResourceName.Builder.end() to return to the current builder.
    • addDates

      public Curation.Builder<_B> addDates(Iterable<? extends Date> dates)
      Adds the given items to the value of "dates"
      Parameters:
      dates - Items to add to the value of the "dates" property
    • withDates

      public Curation.Builder<_B> withDates(Iterable<? extends Date> dates)
      Sets the new value of "dates" (any previous value will be replaced)
      Parameters:
      dates - New value of the "dates" property.
    • addDates

      public Curation.Builder<_B> addDates(Date... dates)
      Adds the given items to the value of "dates"
      Parameters:
      dates - Items to add to the value of the "dates" property
    • withDates

      public Curation.Builder<_B> withDates(Date... dates)
      Sets the new value of "dates" (any previous value will be replaced)
      Parameters:
      dates - New value of the "dates" property.
    • addDates

      public Date.Builder<? extends Curation.Builder<_B>> addDates()
      Returns a new builder to build an additional value of the "Dates" property. Use Date.Builder.end() to return to the current builder.
      Returns:
      a new builder to build an additional value of the "Dates" property. Use Date.Builder.end() to return to the current builder.
    • withVersion

      public Curation.Builder<_B> withVersion(String version)
      Sets the new value of "version" (any previous value will be replaced)
      Parameters:
      version - New value of the "version" property.
    • addContacts

      public Curation.Builder<_B> addContacts(Iterable<? extends Contact> contacts)
      Adds the given items to the value of "contacts"
      Parameters:
      contacts - Items to add to the value of the "contacts" property
    • withContacts

      public Curation.Builder<_B> withContacts(Iterable<? extends Contact> contacts)
      Sets the new value of "contacts" (any previous value will be replaced)
      Parameters:
      contacts - New value of the "contacts" property.
    • addContacts

      public Curation.Builder<_B> addContacts(Contact... contacts)
      Adds the given items to the value of "contacts"
      Parameters:
      contacts - Items to add to the value of the "contacts" property
    • withContacts

      public Curation.Builder<_B> withContacts(Contact... contacts)
      Sets the new value of "contacts" (any previous value will be replaced)
      Parameters:
      contacts - New value of the "contacts" property.
    • addContacts

      public Contact.Builder<? extends Curation.Builder<_B>> addContacts()
      Returns a new builder to build an additional value of the "Contacts" property. Use Contact.Builder.end() to return to the current builder.
      Returns:
      a new builder to build an additional value of the "Contacts" property. Use Contact.Builder.end() to return to the current builder.
    • build

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

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

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