Class Service.Builder<_B>

java.lang.Object
org.javastro.ivoa.entities.resource.Resource.Builder<_B>
org.javastro.ivoa.entities.resource.Service.Builder<_B>
All Implemented Interfaces:
com.kscs.util.jaxb.Buildable
Direct Known Subclasses:
DataResource.Builder, Registry.Builder
Enclosing class:
Service

public static class Service.Builder<_B> extends Resource.Builder<_B> implements com.kscs.util.jaxb.Buildable
  • Constructor Details

    • Builder

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

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

    • init

      protected <_P extends Service> _P init(_P _product)
    • addRights

      public Service.Builder<_B> addRights(Iterable<? extends Rights> rights)
      Adds the given items to the value of "rights"
      Parameters:
      rights - Items to add to the value of the "rights" property
    • withRights

      public Service.Builder<_B> withRights(Iterable<? extends Rights> rights)
      Sets the new value of "rights" (any previous value will be replaced)
      Parameters:
      rights - New value of the "rights" property.
    • addRights

      public Service.Builder<_B> addRights(Rights... rights)
      Adds the given items to the value of "rights"
      Parameters:
      rights - Items to add to the value of the "rights" property
    • withRights

      public Service.Builder<_B> withRights(Rights... rights)
      Sets the new value of "rights" (any previous value will be replaced)
      Parameters:
      rights - New value of the "rights" property.
    • addRights

      public Rights.Builder<? extends Service.Builder<_B>> addRights()
      Returns a new builder to build an additional value of the "Rights" property. Use Rights.Builder.end() to return to the current builder.
      Returns:
      a new builder to build an additional value of the "Rights" property. Use Rights.Builder.end() to return to the current builder.
    • addCapabilities

      public Service.Builder<_B> addCapabilities(Iterable<? extends Capability> capabilities)
      Adds the given items to the value of "capabilities"
      Parameters:
      capabilities - Items to add to the value of the "capabilities" property
    • withCapabilities

      public Service.Builder<_B> withCapabilities(Iterable<? extends Capability> capabilities)
      Sets the new value of "capabilities" (any previous value will be replaced)
      Parameters:
      capabilities - New value of the "capabilities" property.
    • addCapabilities

      public Service.Builder<_B> addCapabilities(Capability... capabilities)
      Adds the given items to the value of "capabilities"
      Parameters:
      capabilities - Items to add to the value of the "capabilities" property
    • withCapabilities

      public Service.Builder<_B> withCapabilities(Capability... capabilities)
      Sets the new value of "capabilities" (any previous value will be replaced)
      Parameters:
      capabilities - New value of the "capabilities" property.
    • addCapabilities

      public Capability.Builder<? extends Service.Builder<_B>> addCapabilities()
      Returns a new builder to build an additional value of the "Capabilities" property. Use Capability.Builder.end() to return to the current builder.
      Returns:
      a new builder to build an additional value of the "Capabilities" property. Use Capability.Builder.end() to return to the current builder.
    • addValidationLevels

      public Service.Builder<_B> addValidationLevels(Iterable<? extends Validation> validationLevels)
      Adds the given items to the value of "validationLevels"
      Overrides:
      addValidationLevels in class Resource.Builder<_B>
      Parameters:
      validationLevels - Items to add to the value of the "validationLevels" property
    • addValidationLevels

      public Service.Builder<_B> addValidationLevels(Validation... validationLevels)
      Adds the given items to the value of "validationLevels"
      Overrides:
      addValidationLevels in class Resource.Builder<_B>
      Parameters:
      validationLevels - Items to add to the value of the "validationLevels" property
    • withValidationLevels

      public Service.Builder<_B> withValidationLevels(Iterable<? extends Validation> validationLevels)
      Sets the new value of "validationLevels" (any previous value will be replaced)
      Overrides:
      withValidationLevels in class Resource.Builder<_B>
      Parameters:
      validationLevels - New value of the "validationLevels" property.
    • withValidationLevels

      public Service.Builder<_B> withValidationLevels(Validation... validationLevels)
      Sets the new value of "validationLevels" (any previous value will be replaced)
      Overrides:
      withValidationLevels in class Resource.Builder<_B>
      Parameters:
      validationLevels - New value of the "validationLevels" property.
    • withTitle

      public Service.Builder<_B> withTitle(String title)
      Sets the new value of "title" (any previous value will be replaced)
      Overrides:
      withTitle in class Resource.Builder<_B>
      Parameters:
      title - New value of the "title" property.
    • withShortName

      public Service.Builder<_B> withShortName(String shortName)
      Sets the new value of "shortName" (any previous value will be replaced)
      Overrides:
      withShortName in class Resource.Builder<_B>
      Parameters:
      shortName - New value of the "shortName" property.
    • withIdentifier

      public Service.Builder<_B> withIdentifier(String identifier)
      Sets the new value of "identifier" (any previous value will be replaced)
      Overrides:
      withIdentifier in class Resource.Builder<_B>
      Parameters:
      identifier - New value of the "identifier" property.
    • addAltIdentifiers

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

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

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

      public Service.Builder<_B> withAltIdentifiers(String... altIdentifiers)
      Sets the new value of "altIdentifiers" (any previous value will be replaced)
      Overrides:
      withAltIdentifiers in class Resource.Builder<_B>
      Parameters:
      altIdentifiers - New value of the "altIdentifiers" property.
    • withCuration

      public Service.Builder<_B> withCuration(Curation curation)
      Sets the new value of "curation" (any previous value will be replaced)
      Overrides:
      withCuration in class Resource.Builder<_B>
      Parameters:
      curation - New value of the "curation" property.
    • withCuration

      public Curation.Builder<? extends Service.Builder<_B>> withCuration()
      Returns the existing builder or a new builder to build the value of the "curation" property. Use Curation.Builder.end() to return to the current builder.
      Overrides:
      withCuration in class Resource.Builder<_B>
      Returns:
      A new builder to build the value of the "curation" property. Use Curation.Builder.end() to return to the current builder.
    • withContent

      public Service.Builder<_B> withContent(Content content)
      Sets the new value of "content" (any previous value will be replaced)
      Overrides:
      withContent in class Resource.Builder<_B>
      Parameters:
      content - New value of the "content" property.
    • withContent

      public Content.Builder<? extends Service.Builder<_B>> withContent()
      Returns the existing builder or a new builder to build the value of the "content" property. Use Content.Builder.end() to return to the current builder.
      Overrides:
      withContent in class Resource.Builder<_B>
      Returns:
      A new builder to build the value of the "content" property. Use Content.Builder.end() to return to the current builder.
    • withCreated

      public Service.Builder<_B> withCreated(LocalDateTime created)
      Sets the new value of "created" (any previous value will be replaced)
      Overrides:
      withCreated in class Resource.Builder<_B>
      Parameters:
      created - New value of the "created" property.
    • withUpdated

      public Service.Builder<_B> withUpdated(LocalDateTime updated)
      Sets the new value of "updated" (any previous value will be replaced)
      Overrides:
      withUpdated in class Resource.Builder<_B>
      Parameters:
      updated - New value of the "updated" property.
    • withStatus

      public Service.Builder<_B> withStatus(String status)
      Sets the new value of "status" (any previous value will be replaced)
      Overrides:
      withStatus in class Resource.Builder<_B>
      Parameters:
      status - New value of the "status" property.
    • withVersion

      public Service.Builder<_B> withVersion(String version)
      Sets the new value of "version" (any previous value will be replaced)
      Overrides:
      withVersion in class Resource.Builder<_B>
      Parameters:
      version - New value of the "version" property.
    • build

      public Service build()
      Specified by:
      build in interface com.kscs.util.jaxb.Buildable
      Overrides:
      build in class Resource.Builder<_B>
    • copyOf

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

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