Package org.javastro.ivoa.entities.vodml
Class Role
java.lang.Object
org.javastro.ivoa.entities.vodml.ReferableElement
org.javastro.ivoa.entities.vodml.Role
- All Implemented Interfaces:
com.kscs.util.jaxb.Copyable,com.kscs.util.jaxb.PartialCopyable,Cloneable,org.jvnet.jaxb.lang.MergeFrom,org.jvnet.jaxb.lang.ToString
@Generated(value="com.sun.tools.xjc.Driver",
comments="JAXB RI v4.0.4",
date="2025-06-24T19:08:06+01:00")
public abstract class Role
extends ReferableElement
implements Cloneable, com.kscs.util.jaxb.Copyable, com.kscs.util.jaxb.PartialCopyable, org.jvnet.jaxb.lang.MergeFrom, org.jvnet.jaxb.lang.ToString
Role extends ReferencableElement.
The 'name' element that is inherited from that type must be unique in the collection of roles
defined on the parent type.
This uniqueness must extend over the roles available on the type by
inheritance.
Java class for Role complex type
.The following schema fragment specifies the expected content contained within this class.
<complexType name="Role">
<complexContent>
<extension base="{http://www.ivoa.net/xml/VODML/v1}ReferableElement">
<sequence>
<element name="datatype" type="{http://www.ivoa.net/xml/VODML/v1}ElementRef"/>
<element name="multiplicity" type="{http://www.ivoa.net/xml/VODML/v1}Multiplicity"/>
</sequence>
</extension>
</complexContent>
</complexType>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classclassstatic classstatic classstatic classRole.Selector<TRoot extends com.kscs.util.jaxb.Selector<TRoot,?>, TParent> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ElementRefReference to the type that plays the role represented by this Role.protected MultiplicityThe multiplicity of the role (also called cardinality) indicates whether it must have a value or may be without value, or possibly how many values are allowed.Fields inherited from class org.javastro.ivoa.entities.vodml.ReferableElement
__cachedModifier__, description, id, name, vodmlId -
Constructor Summary
ConstructorsConstructorDescriptionRole()Default no-arg constructorRole(String vodmlId, String name, String description, String id, ElementRef datatype, Multiplicity multiplicity) 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(Role.Builder<_B> _other) Copies all state of this object to a builder.<_B> voidcopyTo(Role.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) booleanReference to the type that plays the role represented by this Role.The multiplicity of the role (also called cardinality) indicates whether it must have a value or may be without value, or possibly how many values are allowed.inthashCode()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 Role.Builder<Void>abstract <_B> Role.Builder<_B>newCopyBuilder(_B _parentBuilder) abstract <_B> Role.Builder<_B>newCopyBuilder(_B _parentBuilder, com.kscs.util.jaxb.PropertyTree _propertyTree, com.kscs.util.jaxb.PropertyTreeUse _propertyTreeUse) abstract Role.Builder<Void>newCopyBuilder(com.kscs.util.jaxb.PropertyTree _propertyTree, com.kscs.util.jaxb.PropertyTreeUse _propertyTreeUse) voidsetDatatype(ElementRef value) Sets the value of the datatype property.voidsetMultiplicity(Multiplicity value) Sets the value of the multiplicity 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
-
datatype
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2025-06-24T19:08:06+01:00") protected ElementRef datatypeReference to the type that plays the role represented by this Role. -
multiplicity
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2025-06-24T19:08:06+01:00") protected Multiplicity multiplicityThe multiplicity of the role (also called cardinality) indicates whether it must have a value or may be without value, or possibly how many values are allowed.
-
-
Constructor Details
-
Role
public Role()Default no-arg constructor -
Role
public Role(String vodmlId, String name, String description, String id, ElementRef datatype, Multiplicity multiplicity) Fully-initialising value constructor
-
-
Method Details
-
getDatatype
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2025-06-24T19:08:06+01:00") public ElementRef getDatatype()Reference to the type that plays the role represented by this Role.- Returns:
- possible object is
ElementRef
-
setDatatype
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2025-06-24T19:08:06+01:00") public void setDatatype(ElementRef value) Sets the value of the datatype property.- Parameters:
value- allowed object isElementRef- See Also:
-
getMultiplicity
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2025-06-24T19:08:06+01:00") public Multiplicity getMultiplicity()The multiplicity of the role (also called cardinality) indicates whether it must have a value or may be without value, or possibly how many values are allowed.- Returns:
- possible object is
Multiplicity
-
setMultiplicity
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2025-06-24T19:08:06+01:00") public void setMultiplicity(Multiplicity value) Sets the value of the multiplicity property.- Parameters:
value- allowed object isMultiplicity- See Also:
-
equals
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2025-06-24T19:08:06+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-06-24T19:08:06+01:00") public int hashCode()- Overrides:
hashCodein classReferableElement
-
toString
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2025-06-24T19:08:06+01:00") public String toString()- Overrides:
toStringin classReferableElement
-
append
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2025-06-24T19:08:06+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-06-24T19:08:06+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-06-24T19:08:06+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-06-24T19:08:06+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-06-24T19:08:06+01:00") public Role clone()- Overrides:
clonein classReferableElement
-
createCopy
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2025-06-24T19:08:06+01:00") public Role 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-06-24T19:08:06+01:00") public Role 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-06-24T19:08:06+01:00") public Role 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-06-24T19:08:06+01:00") public Role 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-06-24T19:08:06+01:00") public Role.Modifier modifier()- Overrides:
modifierin classReferableElement
-
copyTo
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2025-06-24T19:08:06+01:00") public <_B> void copyTo(Role.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-06-24T19:08:06+01:00") public abstract <_B> Role.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-06-24T19:08:06+01:00") public abstract Role.Builder<Void> newCopyBuilder()- Specified by:
newCopyBuilderin classReferableElement
-
copyTo
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2025-06-24T19:08:06+01:00") public <_B> void copyTo(Role.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-06-24T19:08:06+01:00") public abstract <_B> Role.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-06-24T19:08:06+01:00") public abstract Role.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-06-24T19:08:06+01:00") public Role visit(com.kscs.util.jaxb.PropertyVisitor _visitor_) - Overrides:
visitin classReferableElement
-