Package org.javastro.ivoa.entities.vodml
Class Enumeration.Builder<_B>
java.lang.Object
org.javastro.ivoa.entities.vodml.ReferableElement.Builder<_B>
org.javastro.ivoa.entities.vodml.Type.Builder<_B>
org.javastro.ivoa.entities.vodml.ValueType.Builder<_B>
org.javastro.ivoa.entities.vodml.PrimitiveType.Builder<_B>
org.javastro.ivoa.entities.vodml.Enumeration.Builder<_B>
- All Implemented Interfaces:
com.kscs.util.jaxb.Buildable
- Enclosing class:
- Enumeration
public static class Enumeration.Builder<_B>
extends PrimitiveType.Builder<_B>
implements com.kscs.util.jaxb.Buildable
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.kscs.util.jaxb.Buildable
com.kscs.util.jaxb.Buildable.PrimitiveBuildable -
Field Summary
Fields inherited from class org.javastro.ivoa.entities.vodml.ReferableElement.Builder
_parentBuilder, _storedValue -
Constructor Summary
ConstructorsConstructorDescriptionBuilder(_B _parentBuilder, Enumeration _other, boolean _copy) Builder(_B _parentBuilder, Enumeration _other, boolean _copy, com.kscs.util.jaxb.PropertyTree _propertyTree, com.kscs.util.jaxb.PropertyTreeUse _propertyTreeUse) -
Method Summary
Modifier and TypeMethodDescriptionaddConstraints(Iterable<? extends Constraint> constraints) Adds the given items to the value of "constraints"addConstraints(Constraint... constraints) Adds the given items to the value of "constraints"EnumLiteral.Builder<? extends Enumeration.Builder<_B>>Returns a new builder to build an additional value of the "Literals" property.addLiterals(Iterable<? extends EnumLiteral> literals) Adds the given items to the value of "literals"addLiterals(EnumLiteral... literals) Adds the given items to the value of "literals"build()copyOf(Enumeration _other) copyOf(Enumeration.Builder _other) protected <_P extends Enumeration>
_Pinit(_P _product) withAbstract(Boolean _abstract) Sets the new value of "_abstract" (any previous value will be replaced)withConstraints(Iterable<? extends Constraint> constraints) Sets the new value of "constraints" (any previous value will be replaced)withConstraints(Constraint... constraints) Sets the new value of "constraints" (any previous value will be replaced)withDescription(String description) Sets the new value of "description" (any previous value will be replaced)ElementRef.Builder<? extends Enumeration.Builder<_B>>Returns the existing builder or a new builder to build the value of the "_extends" property.withExtends(ElementRef _extends) Sets the new value of "_extends" (any previous value will be replaced)Sets the new value of "id" (any previous value will be replaced)withLiterals(Iterable<? extends EnumLiteral> literals) Sets the new value of "literals" (any previous value will be replaced)withLiterals(EnumLiteral... literals) Sets the new value of "literals" (any previous value will be replaced)Sets the new value of "name" (any previous value will be replaced)withVodmlId(String vodmlId) Sets the new value of "vodmlId" (any previous value will be replaced)Methods inherited from class org.javastro.ivoa.entities.vodml.PrimitiveType.Builder
copyOf, copyOf, initMethods inherited from class org.javastro.ivoa.entities.vodml.ValueType.Builder
copyOf, copyOf, initMethods inherited from class org.javastro.ivoa.entities.vodml.Type.Builder
addConstraints, copyOf, copyOf, initMethods inherited from class org.javastro.ivoa.entities.vodml.ReferableElement.Builder
copyOf, copyOf, end, init
-
Constructor Details
-
Builder
-
Builder
public Builder(_B _parentBuilder, Enumeration _other, boolean _copy, com.kscs.util.jaxb.PropertyTree _propertyTree, com.kscs.util.jaxb.PropertyTreeUse _propertyTreeUse)
-
-
Method Details
-
init
-
addLiterals
Adds the given items to the value of "literals"- Parameters:
literals- Items to add to the value of the "literals" property
-
withLiterals
Sets the new value of "literals" (any previous value will be replaced)- Parameters:
literals- New value of the "literals" property.
-
addLiterals
Adds the given items to the value of "literals"- Parameters:
literals- Items to add to the value of the "literals" property
-
withLiterals
Sets the new value of "literals" (any previous value will be replaced)- Parameters:
literals- New value of the "literals" property.
-
addLiterals
Returns a new builder to build an additional value of the "Literals" property. UseReferableElement.Builder.end()to return to the current builder.- Returns:
- a new builder to build an additional value of the "Literals" property.
Use
ReferableElement.Builder.end()to return to the current builder.
-
withExtends
Sets the new value of "_extends" (any previous value will be replaced)- Overrides:
withExtendsin classPrimitiveType.Builder<_B>- Parameters:
_extends- New value of the "_extends" property.
-
withExtends
Returns the existing builder or a new builder to build the value of the "_extends" property. UseElementRef.Builder.end()to return to the current builder.- Overrides:
withExtendsin classPrimitiveType.Builder<_B>- Returns:
- A new builder to build the value of the "_extends" property.
Use
ElementRef.Builder.end()to return to the current builder.
-
addConstraints
Adds the given items to the value of "constraints"- Overrides:
addConstraintsin classPrimitiveType.Builder<_B>- Parameters:
constraints- Items to add to the value of the "constraints" property
-
addConstraints
Adds the given items to the value of "constraints"- Overrides:
addConstraintsin classPrimitiveType.Builder<_B>- Parameters:
constraints- Items to add to the value of the "constraints" property
-
withConstraints
Sets the new value of "constraints" (any previous value will be replaced)- Overrides:
withConstraintsin classPrimitiveType.Builder<_B>- Parameters:
constraints- New value of the "constraints" property.
-
withConstraints
Sets the new value of "constraints" (any previous value will be replaced)- Overrides:
withConstraintsin classPrimitiveType.Builder<_B>- Parameters:
constraints- New value of the "constraints" property.
-
withAbstract
Sets the new value of "_abstract" (any previous value will be replaced)- Overrides:
withAbstractin classPrimitiveType.Builder<_B>- Parameters:
_abstract- New value of the "_abstract" property.
-
withVodmlId
Sets the new value of "vodmlId" (any previous value will be replaced)- Overrides:
withVodmlIdin classPrimitiveType.Builder<_B>- Parameters:
vodmlId- New value of the "vodmlId" property.
-
withName
Sets the new value of "name" (any previous value will be replaced)- Overrides:
withNamein classPrimitiveType.Builder<_B>- Parameters:
name- New value of the "name" property.
-
withDescription
Sets the new value of "description" (any previous value will be replaced)- Overrides:
withDescriptionin classPrimitiveType.Builder<_B>- Parameters:
description- New value of the "description" property.
-
withId
Sets the new value of "id" (any previous value will be replaced)- Overrides:
withIdin classPrimitiveType.Builder<_B>- Parameters:
id- New value of the "id" property.
-
build
- Specified by:
buildin interfacecom.kscs.util.jaxb.Buildable- Overrides:
buildin classPrimitiveType.Builder<_B>
-
copyOf
-
copyOf
-