Class RangeTableRangeSetModel

java.lang.Object
com.highdeal.rangetable.hci.RangeTableRangeSetModel
All Implemented Interfaces:
IXMLMarshallable, XMLMapping, XMLMarshallable

public class RangeTableRangeSetModel extends Object implements IXMLMarshallable, XMLMapping
This Java class represents a range set in a range table. The range set is composed of a range set key and one or several ranges. The range set key is not mandatory. It must not be set for range tables without input columns.
See Also:

XML API for HCI

The XML APIs specify the following XSD fragment:

XSD Fragment

<xs:complexType name="RangeTableRangeSetType">
   <xs:sequence>
     <xs:element name="rangeSetKey" type="RangeTableRangeSetKeyType" minOccurs="0" maxOccurs="1" />
     <xs:element name="range" type="RangeTableRangeType" minOccurs="1" maxOccurs="unbounded" />
   </xs:sequence>
 </xs:complexType>

  • Field Details

  • Constructor Details

    • RangeTableRangeSetModel

      public RangeTableRangeSetModel()
      Default range table range set model.
  • Method Details

    • getRangeSetKey

      public RangeTableRangeSetKeyModel getRangeSetKey()
      Returns:
      the rangeSetKey
    • setRangeSetKey

      public void setRangeSetKey(RangeTableRangeSetKeyModel rangeSetKey)
      Parameters:
      rangeSetKey - the rangeSetKey to set
    • getRanges

      public List<RangeTableRangeModel> getRanges()
      Gets all the ranges contained in the range set.
      Returns:
      A list that contains all the ranges of the range set
    • 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
    • setAttributes

      public void setAttributes(XMLAttributes atts)
      Description copied from interface: XMLMarshallable
      Sets the attributes of the XML representation of the element being processed.
      Specified by:
      setAttributes in interface XMLMarshallable
      Parameters:
      atts - The XML attributes of the current element
    • marshalAttributes

      public void marshalAttributes(XMLOutputter output)
      Description copied from interface: IXMLMarshallable
      Gives an XML representation of the attributes of an object.
      Specified by:
      marshalAttributes in interface IXMLMarshallable
      Parameters:
      output - The XML output to marshal the object attributes 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
    • 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
    • marshal

      public void marshal(XMLOutputter output)
      Description copied from interface: XMLMarshallable
      Gives an XML representation of this object, including its children.
      Specified by:
      marshal in interface IXMLMarshallable
      Specified by:
      marshal in interface XMLMarshallable
      Parameters:
      output - The XML output to marshal the object into
    • 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