Class Package.Builder<_B>

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

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

    • Builder

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

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

    • init

      protected <_P extends Package> _P init(_P _product)
    • addPrimitiveTypes

      public Package.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 Package.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 Package.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 Package.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 Package.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 Package.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 Package.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 Package.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 Package.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 Package.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 Package.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 Package.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 Package.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 Package.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 Package.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 Package.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 Package.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 Package.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 Package.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 Package.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 Package.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 Package.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 Package.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 Package.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 Package.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.
    • withVodmlId

      public Package.Builder<_B> withVodmlId(String vodmlId)
      Sets the new value of "vodmlId" (any previous value will be replaced)
      Overrides:
      withVodmlId in class ReferableElement.Builder<_B>
      Parameters:
      vodmlId - New value of the "vodmlId" property.
    • withName

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

      public Package.Builder<_B> withDescription(String description)
      Sets the new value of "description" (any previous value will be replaced)
      Overrides:
      withDescription in class ReferableElement.Builder<_B>
      Parameters:
      description - New value of the "description" property.
    • withId

      public Package.Builder<_B> withId(String id)
      Sets the new value of "id" (any previous value will be replaced)
      Overrides:
      withId in class ReferableElement.Builder<_B>
      Parameters:
      id - New value of the "id" property.
    • build

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

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

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