Package org.javastro.ivoa.entities.vodml
Class SubsettedRole
java.lang.Object
org.javastro.ivoa.entities.vodml.Constraint
org.javastro.ivoa.entities.vodml.SubsettedRole
- 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 SubsettedRole
extends Constraint
implements org.jvnet.jaxb.lang.MergeFrom, org.jvnet.jaxb.lang.ToString
A special type of constraint that represents the common pattern where a subtype.
would like to restrict certain aspects of a definition of a roles defined on a super type.
The constraint explicitly defines the datatype of the identified role. This new datatype MUST
be a subtype of the declared datatype of the role that is being constrained. Similarly
a new, more restrictive semantic concept may be defined.
Java class for SubsettedRole complex type
.The following schema fragment specifies the expected content contained within this class.
<complexType name="SubsettedRole">
<complexContent>
<extension base="{http://www.ivoa.net/xml/VODML/v1}Constraint">
<sequence>
<element name="role" type="{http://www.ivoa.net/xml/VODML/v1}ElementRef"/>
<element name="datatype" type="{http://www.ivoa.net/xml/VODML/v1}ElementRef" minOccurs="0"/>
<element name="semanticconcept" type="{http://www.ivoa.net/xml/VODML/v1}SemanticConcept" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ElementRefPointer to datatype that the constrained Role must take.protected ElementRefVODMLREF identifying the constrained Role.protected SemanticConceptMaybe the super type has not defined a semantic concept for the Role, but the subtype needs that.Fields inherited from class org.javastro.ivoa.entities.vodml.Constraint
description -
Constructor Summary
ConstructorsConstructorDescriptionDefault no-arg constructorSubsettedRole(String description, ElementRef role, ElementRef datatype, SemanticConcept semanticconcept) 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) booleanPointer to datatype that the constrained Role must take.getRole()VODMLREF identifying the constrained Role.Maybe the super type has not defined a semantic concept for the Role, but the subtype needs that.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.voidsetRole(ElementRef value) Sets the value of the role property.voidSets the value of the semanticconcept property.toString()withDatatype(ElementRef value) withDescription(String value) withRole(ElementRef value) Methods inherited from class org.javastro.ivoa.entities.vodml.Constraint
getDescription, setDescription
-
Field Details
-
role
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") protected ElementRef roleVODMLREF identifying the constrained Role. This role MUST be available to the type containing this constraint. -
datatype
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") protected ElementRef datatypePointer to datatype that the constrained Role must take. This datatype MUST be a sub-type of the declared datatype of the constrained Role. -
semanticconcept
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") protected SemanticConcept semanticconceptMaybe the super type has not defined a semantic concept for the Role, but the subtype needs that. This attribute allows this assignment. But alse when the Role on the super-type already has a semanticconcept with a topConcept defined on it, the subtype may restrict the values to a narrower concept than that assigned to it on the super-type.
-
-
Constructor Details
-
SubsettedRole
public SubsettedRole()Default no-arg constructor -
SubsettedRole
public SubsettedRole(String description, ElementRef role, ElementRef datatype, SemanticConcept semanticconcept) Fully-initialising value constructor
-
-
Method Details
-
getRole
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public ElementRef getRole()VODMLREF identifying the constrained Role. This role MUST be available to the type containing this constraint.- Returns:
- possible object is
ElementRef
-
setRole
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public void setRole(ElementRef value) Sets the value of the role property.- Parameters:
value- allowed object isElementRef- See Also:
-
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()Pointer to datatype that the constrained Role must take. This datatype MUST be a sub-type of the declared datatype of the constrained 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:
-
getSemanticconcept
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public SemanticConcept getSemanticconcept()Maybe the super type has not defined a semantic concept for the Role, but the subtype needs that. This attribute allows this assignment. But alse when the Role on the super-type already has a semanticconcept with a topConcept defined on it, the subtype may restrict the values to a narrower concept than that assigned to it on the super-type.- Returns:
- possible object is
SemanticConcept
-
setSemanticconcept
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public void setSemanticconcept(SemanticConcept value) Sets the value of the semanticconcept property.- Parameters:
value- allowed object isSemanticConcept- 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 classConstraint
-
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 classConstraint
-
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 classConstraint
-
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 classConstraint
-
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 classConstraint
-
withRole
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public SubsettedRole withRole(ElementRef value) -
withDatatype
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public SubsettedRole withDatatype(ElementRef value) -
withSemanticconcept
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public SubsettedRole withSemanticconcept(SemanticConcept value) -
withDescription
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public SubsettedRole withDescription(String value) - Overrides:
withDescriptionin classConstraint
-
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 classConstraint
-
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 classConstraint
-
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 classConstraint
-