Class Role

All Implemented Interfaces:
org.jvnet.jaxb.lang.MergeFrom, org.jvnet.jaxb.lang.ToString
Direct Known Subclasses:
Attribute, Relation

@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 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 datatype
      Reference 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 multiplicity
      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.
  • Constructor Details

  • 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 is ElementRef
      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 is Multiplicity
      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:
      equals in class ReferableElement
    • 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:
      hashCode in class ReferableElement
    • 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:
      toString in class ReferableElement
    • 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:
      append in interface org.jvnet.jaxb.lang.ToString
      Overrides:
      append in class ReferableElement
    • 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:
      appendFields in interface org.jvnet.jaxb.lang.ToString
      Overrides:
      appendFields in class ReferableElement
    • 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:
      withVodmlId in class ReferableElement
    • 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:
      withName in class ReferableElement
    • 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:
      withDescription in class ReferableElement
    • 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:
      withId in class ReferableElement
    • 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:
      mergeFrom in interface org.jvnet.jaxb.lang.MergeFrom
      Overrides:
      mergeFrom in class ReferableElement
    • 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:
      mergeFrom in interface org.jvnet.jaxb.lang.MergeFrom
      Overrides:
      mergeFrom in class ReferableElement