Class Model.Builder<_B>

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

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

    • _parentBuilder

      protected final _B _parentBuilder
    • _storedValue

      protected final Model _storedValue
  • Constructor Details

    • Builder

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

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

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

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

      public Model.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.
    • withUri

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

      public Model.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.
    • addAuthors

      public Model.Builder<_B> addAuthors(Iterable<? extends String> authors)
      Adds the given items to the value of "authors"
      Parameters:
      authors - Items to add to the value of the "authors" property
    • withAuthors

      public Model.Builder<_B> withAuthors(Iterable<? extends String> authors)
      Sets the new value of "authors" (any previous value will be replaced)
      Parameters:
      authors - New value of the "authors" property.
    • addAuthors

      public Model.Builder<_B> addAuthors(String... authors)
      Adds the given items to the value of "authors"
      Parameters:
      authors - Items to add to the value of the "authors" property
    • withAuthors

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

      public Model.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.
    • withPreviousVersion

      public Model.Builder<_B> withPreviousVersion(String previousVersion)
      Sets the new value of "previousVersion" (any previous value will be replaced)
      Parameters:
      previousVersion - New value of the "previousVersion" property.
    • withLastModified

      public Model.Builder<_B> withLastModified(LocalDateTime lastModified)
      Sets the new value of "lastModified" (any previous value will be replaced)
      Parameters:
      lastModified - New value of the "lastModified" property.
    • addImports

      public Model.Builder<_B> addImports(Iterable<? extends ModelImport> imports)
      Adds the given items to the value of "imports"
      Parameters:
      imports - Items to add to the value of the "imports" property
    • withImports

      public Model.Builder<_B> withImports(Iterable<? extends ModelImport> imports)
      Sets the new value of "imports" (any previous value will be replaced)
      Parameters:
      imports - New value of the "imports" property.
    • addImports

      public Model.Builder<_B> addImports(ModelImport... imports)
      Adds the given items to the value of "imports"
      Parameters:
      imports - Items to add to the value of the "imports" property
    • withImports

      public Model.Builder<_B> withImports(ModelImport... imports)
      Sets the new value of "imports" (any previous value will be replaced)
      Parameters:
      imports - New value of the "imports" property.
    • addImports

      public ModelImport.Builder<? extends Model.Builder<_B>> addImports()
      Returns a new builder to build an additional value of the "Imports" property. Use ModelImport.Builder.end() to return to the current builder.
      Returns:
      a new builder to build an additional value of the "Imports" property. Use ModelImport.Builder.end() to return to the current builder.
    • addPrimitiveTypes

      public Model.Builder<_B> addPrimitiveTypes(Iterable<? extends PrimitiveType> primitiveTypes)
      Adds the given items to the value of "primitiveTypes"
      Parameters:
      primitiveTypes - Items to add to the value of the "primitiveTypes" property
    • withPrimitiveTypes

      public Model.Builder<_B> withPrimitiveTypes(Iterable<? extends PrimitiveType> primitiveTypes)
      Sets the new value of "primitiveTypes" (any previous value will be replaced)
      Parameters:
      primitiveTypes - New value of the "primitiveTypes" property.
    • addPrimitiveTypes

      public Model.Builder<_B> addPrimitiveTypes(PrimitiveType... primitiveTypes)
      Adds the given items to the value of "primitiveTypes"
      Parameters:
      primitiveTypes - Items to add to the value of the "primitiveTypes" property
    • withPrimitiveTypes

      public Model.Builder<_B> withPrimitiveTypes(PrimitiveType... primitiveTypes)
      Sets the new value of "primitiveTypes" (any previous value will be replaced)
      Parameters:
      primitiveTypes - New value of the "primitiveTypes" property.
    • addPrimitiveTypes

      public PrimitiveType.Builder<? extends Model.Builder<_B>> addPrimitiveTypes()
      Returns a new builder to build an additional value of the "PrimitiveTypes" property. Use ReferableElement.Builder.end() to return to the current builder.
      Returns:
      a new builder to build an additional value of the "PrimitiveTypes" property. Use ReferableElement.Builder.end() to return to the current builder.
    • addEnumerations

      public Model.Builder<_B> addEnumerations(Iterable<? extends Enumeration> enumerations)
      Adds the given items to the value of "enumerations"
      Parameters:
      enumerations - Items to add to the value of the "enumerations" property
    • withEnumerations

      public Model.Builder<_B> withEnumerations(Iterable<? extends Enumeration> enumerations)
      Sets the new value of "enumerations" (any previous value will be replaced)
      Parameters:
      enumerations - New value of the "enumerations" property.
    • addEnumerations

      public Model.Builder<_B> addEnumerations(Enumeration... enumerations)
      Adds the given items to the value of "enumerations"
      Parameters:
      enumerations - Items to add to the value of the "enumerations" property
    • withEnumerations

      public Model.Builder<_B> withEnumerations(Enumeration... enumerations)
      Sets the new value of "enumerations" (any previous value will be replaced)
      Parameters:
      enumerations - New value of the "enumerations" property.
    • addEnumerations

      public Enumeration.Builder<? extends Model.Builder<_B>> addEnumerations()
      Returns a new builder to build an additional value of the "Enumerations" property. Use ReferableElement.Builder.end() to return to the current builder.
      Returns:
      a new builder to build an additional value of the "Enumerations" property. Use ReferableElement.Builder.end() to return to the current builder.
    • addDataTypes

      public Model.Builder<_B> addDataTypes(Iterable<? extends DataType> dataTypes)
      Adds the given items to the value of "dataTypes"
      Parameters:
      dataTypes - Items to add to the value of the "dataTypes" property
    • withDataTypes

      public Model.Builder<_B> withDataTypes(Iterable<? extends DataType> dataTypes)
      Sets the new value of "dataTypes" (any previous value will be replaced)
      Parameters:
      dataTypes - New value of the "dataTypes" property.
    • addDataTypes

      public Model.Builder<_B> addDataTypes(DataType... dataTypes)
      Adds the given items to the value of "dataTypes"
      Parameters:
      dataTypes - Items to add to the value of the "dataTypes" property
    • withDataTypes

      public Model.Builder<_B> withDataTypes(DataType... dataTypes)
      Sets the new value of "dataTypes" (any previous value will be replaced)
      Parameters:
      dataTypes - New value of the "dataTypes" property.
    • addDataTypes

      public DataType.Builder<? extends Model.Builder<_B>> addDataTypes()
      Returns a new builder to build an additional value of the "DataTypes" property. Use ReferableElement.Builder.end() to return to the current builder.
      Returns:
      a new builder to build an additional value of the "DataTypes" property. Use ReferableElement.Builder.end() to return to the current builder.
    • addObjectTypes

      public Model.Builder<_B> addObjectTypes(Iterable<? extends ObjectType> objectTypes)
      Adds the given items to the value of "objectTypes"
      Parameters:
      objectTypes - Items to add to the value of the "objectTypes" property
    • withObjectTypes

      public Model.Builder<_B> withObjectTypes(Iterable<? extends ObjectType> objectTypes)
      Sets the new value of "objectTypes" (any previous value will be replaced)
      Parameters:
      objectTypes - New value of the "objectTypes" property.
    • addObjectTypes

      public Model.Builder<_B> addObjectTypes(ObjectType... objectTypes)
      Adds the given items to the value of "objectTypes"
      Parameters:
      objectTypes - Items to add to the value of the "objectTypes" property
    • withObjectTypes

      public Model.Builder<_B> withObjectTypes(ObjectType... objectTypes)
      Sets the new value of "objectTypes" (any previous value will be replaced)
      Parameters:
      objectTypes - New value of the "objectTypes" property.
    • addObjectTypes

      public ObjectType.Builder<? extends Model.Builder<_B>> addObjectTypes()
      Returns a new builder to build an additional value of the "ObjectTypes" property. Use ReferableElement.Builder.end() to return to the current builder.
      Returns:
      a new builder to build an additional value of the "ObjectTypes" property. Use ReferableElement.Builder.end() to return to the current builder.
    • addPackages

      public Model.Builder<_B> addPackages(Iterable<? extends Package> packages)
      Adds the given items to the value of "packages"
      Parameters:
      packages - Items to add to the value of the "packages" property
    • withPackages

      public Model.Builder<_B> withPackages(Iterable<? extends Package> packages)
      Sets the new value of "packages" (any previous value will be replaced)
      Parameters:
      packages - New value of the "packages" property.
    • addPackages

      public Model.Builder<_B> addPackages(Package... packages)
      Adds the given items to the value of "packages"
      Parameters:
      packages - Items to add to the value of the "packages" property
    • withPackages

      public Model.Builder<_B> withPackages(Package... packages)
      Sets the new value of "packages" (any previous value will be replaced)
      Parameters:
      packages - New value of the "packages" property.
    • addPackages

      public Package.Builder<? extends Model.Builder<_B>> addPackages()
      Returns a new builder to build an additional value of the "Packages" property. Use ReferableElement.Builder.end() to return to the current builder.
      Returns:
      a new builder to build an additional value of the "Packages" property. Use ReferableElement.Builder.end() to return to the current builder.
    • withSchemaVersion

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

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

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

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