Package org.javastro.ivoa.entities.vodml
Class Type
java.lang.Object
org.javastro.ivoa.entities.vodml.ReferableElement
org.javastro.ivoa.entities.vodml.Type
- All Implemented Interfaces:
com.kscs.util.jaxb.Copyable,com.kscs.util.jaxb.PartialCopyable,Cloneable,org.jvnet.jaxb.lang.MergeFrom,org.jvnet.jaxb.lang.ToString
- Direct Known Subclasses:
ObjectType,ValueType
@Generated(value="com.sun.tools.xjc.Driver",
comments="JAXB RI v4.0.4",
date="2025-09-10T09:00:07+01:00")
public abstract class Type
extends ReferableElement
implements Cloneable, com.kscs.util.jaxb.Copyable, com.kscs.util.jaxb.PartialCopyable, org.jvnet.jaxb.lang.MergeFrom, org.jvnet.jaxb.lang.ToString
Name of the type. Must be unique in the collection of all types in a given container
(i.e. model or package)
Java class for Type complex type
.The following schema fragment specifies the expected content contained within this class.
<complexType name="Type">
<complexContent>
<extension base="{http://www.ivoa.net/xml/VODML/v1}ReferableElement">
<sequence>
<element name="extends" type="{http://www.ivoa.net/xml/VODML/v1}ElementRef" minOccurs="0"/>
<element name="constraint" type="{http://www.ivoa.net/xml/VODML/v1}Constraint" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
<attribute name="abstract" type="{http://www.w3.org/2001/XMLSchema}boolean" />
</extension>
</complexContent>
</complexType>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classclassstatic classstatic classstatic classType.Selector<TRoot extends com.kscs.util.jaxb.Selector<TRoot,?>, TParent> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Booleanprotected ElementRefReference to a type (called the base-type) that is extended by the current type (called the subtype).protected List<Constraint>Constraints defining valid instances of the type.Fields inherited from class org.javastro.ivoa.entities.vodml.ReferableElement
__cachedModifier__, description, id, name, vodmlId -
Constructor Summary
ConstructorsConstructorDescriptionType()Default no-arg constructorType(String vodmlId, String name, String description, String id, ElementRef _extends, List<Constraint> constraints, Boolean _abstract) 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) clone()copyExcept(com.kscs.util.jaxb.PropertyTree _propertyTree) copyOnly(com.kscs.util.jaxb.PropertyTree _propertyTree) <_B> voidcopyTo(Type.Builder<_B> _other) Copies all state of this object to a builder.<_B> voidcopyTo(Type.Builder<_B> _other, com.kscs.util.jaxb.PropertyTree _propertyTree, com.kscs.util.jaxb.PropertyTreeUse _propertyTreeUse) Copies all state of this object to a builder.createCopy(com.kscs.util.jaxb.PropertyTree _propertyTree, com.kscs.util.jaxb.PropertyTreeUse _propertyTreeUse) booleanConstraints defining valid instances of the type.Reference to a type (called the base-type) that is extended by the current type (called the subtype).inthashCode()Gets the value of the abstract property.voidvoidmergeFrom(org.jvnet.jaxb.locator.ObjectLocator leftLocator, org.jvnet.jaxb.locator.ObjectLocator rightLocator, Object left, Object right, org.jvnet.jaxb.lang.MergeStrategy strategy) modifier()abstract Type.Builder<Void>abstract <_B> Type.Builder<_B>newCopyBuilder(_B _parentBuilder) abstract <_B> Type.Builder<_B>newCopyBuilder(_B _parentBuilder, com.kscs.util.jaxb.PropertyTree _propertyTree, com.kscs.util.jaxb.PropertyTreeUse _propertyTreeUse) abstract Type.Builder<Void>newCopyBuilder(com.kscs.util.jaxb.PropertyTree _propertyTree, com.kscs.util.jaxb.PropertyTreeUse _propertyTreeUse) voidsetAbstract(Boolean value) Sets the value of the abstract property.voidsetExtends(ElementRef value) Sets the value of the extends property.toString()visit(com.kscs.util.jaxb.PropertyVisitor _visitor_) Methods inherited from class org.javastro.ivoa.entities.vodml.ReferableElement
copyTo, copyTo, getDescription, getId, getName, getVodmlId, setDescription, setId, setName, setVodmlIdMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jvnet.jaxb.lang.MergeFrom
createNewInstance
-
Field Details
-
_extends
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2025-09-10T09:00:07+01:00") protected ElementRef _extendsReference to a type (called the base-type) that is extended by the current type (called the subtype). This implements the typical is-a inheritance relationship, similar to the extends relations in XSD and Java, the generaliation in UML, or the subclassOf relation in RDF. Note, VO-DML does not support multiple inheritance. Instances of a subtype are automatic instances of a base type. Polymorphism is assumed: When a role (see below) defines a base type as its datatype, instances of any subtype can be uased as value of the role. Roles defined on a base type are inherited by the subtypes. Relations inherited from a basetype can be 'subsetted', which is similar to overriding their definition. See the definiton of this property on the Relation type. -
constraints
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2025-09-10T09:00:07+01:00") protected List<Constraint> constraintsConstraints defining valid instances of the type. May be an AttributeConstraint or an expression in some language. -
_abstract
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2025-09-10T09:00:07+01:00") protected Boolean _abstract
-
-
Constructor Details
-
Type
public Type()Default no-arg constructor -
Type
public Type(String vodmlId, String name, String description, String id, ElementRef _extends, List<Constraint> constraints, Boolean _abstract) Fully-initialising value constructor
-
-
Method Details
-
getExtends
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2025-09-10T09:00:07+01:00") public ElementRef getExtends()Reference to a type (called the base-type) that is extended by the current type (called the subtype). This implements the typical is-a inheritance relationship, similar to the extends relations in XSD and Java, the generaliation in UML, or the subclassOf relation in RDF. Note, VO-DML does not support multiple inheritance. Instances of a subtype are automatic instances of a base type. Polymorphism is assumed: When a role (see below) defines a base type as its datatype, instances of any subtype can be uased as value of the role. Roles defined on a base type are inherited by the subtypes. Relations inherited from a basetype can be 'subsetted', which is similar to overriding their definition. See the definiton of this property on the Relation type.- Returns:
- possible object is
ElementRef
-
setExtends
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2025-09-10T09:00:07+01:00") public void setExtends(ElementRef value) Sets the value of the extends property.- Parameters:
value- allowed object isElementRef- See Also:
-
getConstraints
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2025-09-10T09:00:07+01:00") public List<Constraint> getConstraints()Constraints defining valid instances of the type. May be an AttributeConstraint or an expression in some language. Gets the value of the constraints 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 constraints property.For example, to add a new item, do as follows:
getConstraints().add(newItem);
Objects of the following type(s) are allowed in the list
Constraint- Returns:
- The value of the constraints property.
-
isAbstract
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2025-09-10T09:00:07+01:00") public Boolean isAbstract()Gets the value of the abstract property.- Returns:
- possible object is
Boolean
-
setAbstract
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2025-09-10T09:00:07+01:00") public void setAbstract(Boolean value) Sets the value of the abstract property.- Parameters:
value- allowed object isBoolean
-
equals
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2025-09-10T09:00:07+01:00") public boolean equals(Object object) - Overrides:
equalsin classReferableElement
-
hashCode
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2025-09-10T09:00:07+01:00") public int hashCode()- Overrides:
hashCodein classReferableElement
-
toString
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2025-09-10T09:00:07+01:00") public String toString()- Overrides:
toStringin classReferableElement
-
append
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2025-09-10T09:00:07+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 classReferableElement
-
appendFields
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2025-09-10T09:00:07+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 classReferableElement
-
mergeFrom
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2025-09-10T09:00:07+01:00") public void mergeFrom(Object left, Object right) - Specified by:
mergeFromin interfaceorg.jvnet.jaxb.lang.MergeFrom- Overrides:
mergeFromin classReferableElement
-
mergeFrom
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2025-09-10T09:00:07+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 classReferableElement
-
clone
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2025-09-10T09:00:07+01:00") public Type clone()- Overrides:
clonein classReferableElement
-
createCopy
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2025-09-10T09:00:07+01:00") public Type createCopy()- Specified by:
createCopyin interfacecom.kscs.util.jaxb.Copyable- Overrides:
createCopyin classReferableElement
-
createCopy
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2025-09-10T09:00:07+01:00") public Type createCopy(com.kscs.util.jaxb.PropertyTree _propertyTree, com.kscs.util.jaxb.PropertyTreeUse _propertyTreeUse) - Specified by:
createCopyin interfacecom.kscs.util.jaxb.PartialCopyable- Overrides:
createCopyin classReferableElement
-
copyExcept
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2025-09-10T09:00:07+01:00") public Type copyExcept(com.kscs.util.jaxb.PropertyTree _propertyTree) - Specified by:
copyExceptin interfacecom.kscs.util.jaxb.PartialCopyable- Overrides:
copyExceptin classReferableElement
-
copyOnly
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2025-09-10T09:00:07+01:00") public Type copyOnly(com.kscs.util.jaxb.PropertyTree _propertyTree) - Specified by:
copyOnlyin interfacecom.kscs.util.jaxb.PartialCopyable- Overrides:
copyOnlyin classReferableElement
-
modifier
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2025-09-10T09:00:07+01:00") public Type.Modifier modifier()- Overrides:
modifierin classReferableElement
-
copyTo
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2025-09-10T09:00:07+01:00") public <_B> void copyTo(Type.Builder<_B> _other) Copies all state of this object to a builder. This method is used by the copyOf method and should not be called directly by client code.- Parameters:
_other- A builder instance to which the state of this object will be copied.
-
newCopyBuilder
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2025-09-10T09:00:07+01:00") public abstract <_B> Type.Builder<_B> newCopyBuilder(_B _parentBuilder) - Specified by:
newCopyBuilderin classReferableElement
-
newCopyBuilder
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2025-09-10T09:00:07+01:00") public abstract Type.Builder<Void> newCopyBuilder()- Specified by:
newCopyBuilderin classReferableElement
-
copyTo
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2025-09-10T09:00:07+01:00") public <_B> void copyTo(Type.Builder<_B> _other, com.kscs.util.jaxb.PropertyTree _propertyTree, com.kscs.util.jaxb.PropertyTreeUse _propertyTreeUse) Copies all state of this object to a builder. This method is used by the copyOf method and should not be called directly by client code.- Parameters:
_other- A builder instance to which the state of this object will be copied.
-
newCopyBuilder
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2025-09-10T09:00:07+01:00") public abstract <_B> Type.Builder<_B> newCopyBuilder(_B _parentBuilder, com.kscs.util.jaxb.PropertyTree _propertyTree, com.kscs.util.jaxb.PropertyTreeUse _propertyTreeUse) - Specified by:
newCopyBuilderin classReferableElement
-
newCopyBuilder
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2025-09-10T09:00:07+01:00") public abstract Type.Builder<Void> newCopyBuilder(com.kscs.util.jaxb.PropertyTree _propertyTree, com.kscs.util.jaxb.PropertyTreeUse _propertyTreeUse) - Specified by:
newCopyBuilderin classReferableElement
-
visit
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2025-09-10T09:00:07+01:00") public Type visit(com.kscs.util.jaxb.PropertyVisitor _visitor_) - Overrides:
visitin classReferableElement
-