Package org.javastro.ivoa.entities.vodml
Class Enumeration
java.lang.Object
org.javastro.ivoa.entities.vodml.ReferableElement
org.javastro.ivoa.entities.vodml.Type
org.javastro.ivoa.entities.vodml.ValueType
org.javastro.ivoa.entities.vodml.PrimitiveType
org.javastro.ivoa.entities.vodml.Enumeration
- All Implemented Interfaces:
org.jvnet.jaxb.lang.MergeFrom,org.jvnet.jaxb.lang.ToString
@Generated(value="com.sun.tools.xjc.Driver",
comments="JAXB RI v4.0.4",
date="2024-08-01T13:15:43+01:00")
public class Enumeration
extends PrimitiveType
implements org.jvnet.jaxb.lang.MergeFrom, org.jvnet.jaxb.lang.ToString
A primitive type with a limited, discrete set of values.
May explicitly extend a PrimitiveType. Its values must be compatible with that type then.
TBD Should define what it
might mean for an enumeraiton to extend another enumeration.
Should it restrict the possible values further? Or should it add to the values? Or ...?
Java class for Enumeration complex type
.The following schema fragment specifies the expected content contained within this class.
<complexType name="Enumeration">
<complexContent>
<extension base="{http://www.ivoa.net/xml/VODML/v1}PrimitiveType">
<sequence>
<element name="literal" type="{http://www.ivoa.net/xml/VODML/v1}EnumLiteral" maxOccurs="unbounded"/>
</sequence>
</extension>
</complexContent>
</complexType>
-
Field Summary
FieldsFields inherited from class org.javastro.ivoa.entities.vodml.Type
_abstract, _extends, constraintsFields inherited from class org.javastro.ivoa.entities.vodml.ReferableElement
description, id, name, vodmlId -
Constructor Summary
ConstructorsConstructorDescriptionDefault no-arg constructorEnumeration(String vodmlId, String name, String description, String id, ElementRef _extends, List<Constraint> constraints, Boolean _abstract, List<EnumLiteral> literals) Fully-initialising value constructor -
Method Summary
Modifier and TypeMethodDescriptionappend(org.jvnet.jaxb.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb.lang.ToStringStrategy strategy) appendFields(org.jvnet.jaxb.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb.lang.ToStringStrategy strategy) booleanTODO Gets the value of the literals property.inthashCode()voidvoidmergeFrom(org.jvnet.jaxb.locator.ObjectLocator leftLocator, org.jvnet.jaxb.locator.ObjectLocator rightLocator, Object left, Object right, org.jvnet.jaxb.lang.MergeStrategy strategy) toString()withAbstract(Boolean value) withConstraints(Collection<Constraint> values) withConstraints(Constraint... values) withDescription(String value) withExtends(ElementRef value) withLiterals(Collection<EnumLiteral> values) withLiterals(EnumLiteral... values) withVodmlId(String value) Methods inherited from class org.javastro.ivoa.entities.vodml.Type
getConstraints, getExtends, isAbstract, setAbstract, setExtendsMethods inherited from class org.javastro.ivoa.entities.vodml.ReferableElement
getDescription, getId, getName, getVodmlId, setDescription, setId, setName, setVodmlId
-
Field Details
-
literals
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") protected List<EnumLiteral> literalsTODO
-
-
Constructor Details
-
Enumeration
public Enumeration()Default no-arg constructor -
Enumeration
public Enumeration(String vodmlId, String name, String description, String id, ElementRef _extends, List<Constraint> constraints, Boolean _abstract, List<EnumLiteral> literals) Fully-initialising value constructor
-
-
Method Details
-
getLiterals
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public List<EnumLiteral> getLiterals()TODO Gets the value of the literals property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the literals property.For example, to add a new item, do as follows:
getLiterals().add(newItem);
Objects of the following type(s) are allowed in the list
EnumLiteral- Returns:
- The value of the literals property.
-
equals
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public boolean equals(Object object) - Overrides:
equalsin classPrimitiveType
-
hashCode
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public int hashCode()- Overrides:
hashCodein classPrimitiveType
-
toString
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public String toString()- Overrides:
toStringin classPrimitiveType
-
append
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public StringBuilder append(org.jvnet.jaxb.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb.lang.ToStringStrategy strategy) - Specified by:
appendin interfaceorg.jvnet.jaxb.lang.ToString- Overrides:
appendin classPrimitiveType
-
appendFields
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public StringBuilder appendFields(org.jvnet.jaxb.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb.lang.ToStringStrategy strategy) - Specified by:
appendFieldsin interfaceorg.jvnet.jaxb.lang.ToString- Overrides:
appendFieldsin classPrimitiveType
-
withLiterals
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Enumeration withLiterals(EnumLiteral... values) -
withLiterals
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Enumeration withLiterals(Collection<EnumLiteral> values) -
withExtends
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Enumeration withExtends(ElementRef value) - Overrides:
withExtendsin classPrimitiveType
-
withConstraints
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Enumeration withConstraints(Constraint... values) - Overrides:
withConstraintsin classPrimitiveType
-
withConstraints
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Enumeration withConstraints(Collection<Constraint> values) - Overrides:
withConstraintsin classPrimitiveType
-
withAbstract
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Enumeration withAbstract(Boolean value) - Overrides:
withAbstractin classPrimitiveType
-
withVodmlId
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Enumeration withVodmlId(String value) - Overrides:
withVodmlIdin classPrimitiveType
-
withName
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Enumeration withName(String value) - Overrides:
withNamein classPrimitiveType
-
withDescription
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Enumeration withDescription(String value) - Overrides:
withDescriptionin classPrimitiveType
-
withId
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Enumeration withId(String value) - Overrides:
withIdin classPrimitiveType
-
mergeFrom
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public void mergeFrom(Object left, Object right) - Specified by:
mergeFromin interfaceorg.jvnet.jaxb.lang.MergeFrom- Overrides:
mergeFromin classPrimitiveType
-
mergeFrom
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public void mergeFrom(org.jvnet.jaxb.locator.ObjectLocator leftLocator, org.jvnet.jaxb.locator.ObjectLocator rightLocator, Object left, Object right, org.jvnet.jaxb.lang.MergeStrategy strategy) - Specified by:
mergeFromin interfaceorg.jvnet.jaxb.lang.MergeFrom- Overrides:
mergeFromin classPrimitiveType
-
createNewInstance
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Object createNewInstance()- Specified by:
createNewInstancein interfaceorg.jvnet.jaxb.lang.MergeFrom- Overrides:
createNewInstancein classPrimitiveType
-