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:
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 abstract class Role
extends ReferableElement
implements 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>
-
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
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) 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) voidsetDatatype(ElementRef value) Sets the value of the datatype property.voidsetMultiplicity(Multiplicity value) Sets the value of the multiplicity property.toString()withDatatype(ElementRef value) withDescription(String value) withMultiplicity(Multiplicity value) withVodmlId(String value) Methods inherited from class org.javastro.ivoa.entities.vodml.ReferableElement
getDescription, getId, getName, getVodmlId, setDescription, setId, setName, setVodmlIdMethods inherited from class java.lang.Object
clone, 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="2024-08-01T13:15:43+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="2024-08-01T13:15:43+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="2024-08-01T13:15:43+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="2024-08-01T13:15:43+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="2024-08-01T13:15:43+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="2024-08-01T13:15:43+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="2024-08-01T13:15:43+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="2024-08-01T13:15:43+01:00") public int hashCode()- Overrides:
hashCodein classReferableElement
-
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 classReferableElement
-
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 classReferableElement
-
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 classReferableElement
-
withDatatype
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Role withDatatype(ElementRef value) -
withMultiplicity
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Role withMultiplicity(Multiplicity value) -
withVodmlId
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Role withVodmlId(String value) - Overrides:
withVodmlIdin classReferableElement
-
withName
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Role withName(String value) - Overrides:
withNamein classReferableElement
-
withDescription
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Role withDescription(String value) - Overrides:
withDescriptionin classReferableElement
-
withId
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Role withId(String value) - Overrides:
withIdin classReferableElement
-
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 classReferableElement
-
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 classReferableElement
-