Class Resource.Builder<_B>

java.lang.Object
org.javastro.ivoa.entities.resource.Resource.Builder<_B>
All Implemented Interfaces:
com.kscs.util.jaxb.Buildable
Direct Known Subclasses:
Application.Builder, Authority.Builder, DataCollection.Builder, Organisation.Builder, Service.Builder, Standard.Builder, StandardKeyEnumeration.Builder, StandardSTC.Builder
Enclosing class:
Resource

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

    • _parentBuilder

      protected final _B _parentBuilder
    • _storedValue

      protected final Resource _storedValue
  • Constructor Details

    • Builder

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

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

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

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

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

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

      public Validation.Builder<? extends Resource.Builder<_B>> addValidationLevels()
      Returns a new builder to build an additional value of the "ValidationLevels" property. Use Validation.Builder.end() to return to the current builder.
      Returns:
      a new builder to build an additional value of the "ValidationLevels" property. Use Validation.Builder.end() to return to the current builder.
    • withTitle

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

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

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

      public Resource.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 Resource.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 Resource.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 Resource.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.
    • withCuration

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

      public Curation.Builder<? extends Resource.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.
      Returns:
      A new builder to build the value of the "curation" property. Use Curation.Builder.end() to return to the current builder.
    • withContent

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

      public Content.Builder<? extends Resource.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.
      Returns:
      A new builder to build the value of the "content" property. Use Content.Builder.end() to return to the current builder.
    • withCreated

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

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

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

      public Resource.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.
    • build

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

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

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