Class RangeTablePeriodObjectModel

All Implemented Interfaces:
IPeriodObjectModel, ITagNameProvider, IXMLMarshallable, XMLMapping, XMLMarshallable

public class RangeTablePeriodObjectModel extends AbstractPeriodObjectModel implements XMLMapping
This Java class represents a version of a range table. It contains the rows or the range sets of the range table for a period of time.

XML API for HCI

The XML APIs specify the following XSD fragment:

XSD Fragment

<xs:complexType name="RangeTablePeriodObjectType">
   <xs:sequence>
     <xs:choice>
       <xs:element name="rangeTableRow" type="RangeTableRowType" minOccurs="1" maxOccurs="unbounded" />
       <xs:element name="rangeSet" type="RangeTableRangeSetType" minOccurs="1" maxOccurs="unbounded" />
     </xs:choice>
   </xs:sequence>
   <xs:attribute name="start" type="xs:dateTime"/>
   <xs:attribute name="end" type="xs:dateTime"/>
 </xs:complexType>

  • Constructor Details

    • RangeTablePeriodObjectModel

      public RangeTablePeriodObjectModel()
  • Method Details

    • getRangeTableRowList

      public List<RangeTableRowModel> getRangeTableRowList()
    • getRangeTableRangeSetList

      public List<RangeTableRangeSetModel> getRangeTableRangeSetList()
    • marshalChildren

      public void marshalChildren(XMLOutputter output)
      Description copied from interface: IXMLMarshallable
      Gives an XML representation of the child objects of an object.
      Specified by:
      marshalChildren in interface IXMLMarshallable
      Parameters:
      output - The XML output to marshal the child objects into
    • addChild

      public void addChild(String tagName, XMLMarshallable child)
      Description copied from interface: XMLMarshallable
      Adds a child to the object, the child representing the marshallable object which must be added to the element.
      Specified by:
      addChild in interface XMLMarshallable
      Parameters:
      tagName - The name of tag for the child
      child - The child to be added
    • addCharacterData

      public void addCharacterData(String cData)
      Description copied from interface: XMLMarshallable
      Adds character data to the content element.
      Specified by:
      addCharacterData in interface XMLMarshallable
      Parameters:
      cData - The character data to be added
    • getClass

      public Class<?> getClass(String nsUri, String tag, XMLAttributes atts)
      Description copied from interface: XMLMapping
      Returns the Java class for a specified XML tag and its attributes in a namespace.
      Specified by:
      getClass in interface XMLMapping
      Parameters:
      nsUri - The unique resource identifier of the namespace of the XML tag
      tag - The local part of the XML tag
      atts - The attributes of the XML tag
      Returns:
      A Java class with a default constructor