Package com.highdeal.rangetable.hci
Class RangeTableRangeSetModel
java.lang.Object
com.highdeal.rangetable.hci.RangeTableRangeSetModel
- All Implemented Interfaces:
IXMLMarshallable,XMLMapping,XMLMarshallable
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCharacterData(String cData) Adds character data to the content element.voidaddChild(String tagName, XMLMarshallable child) Adds a child to the object, thechildrepresenting the marshallable object which must be added to the element.Class<?>getClass(String nsUri, String tag, XMLAttributes atts) Returns theJava classfor a specifiedXML tagand its attributes in a namespace.Gets all therangescontained in the range set.voidmarshal(XMLOutputter output) Gives an XML representation of this object, including its children.voidmarshalAttributes(XMLOutputter output) Gives an XML representation of the attributes of an object.voidmarshalChildren(XMLOutputter output) Gives an XML representation of the child objects of an object.voidsetAttributes(XMLAttributes atts) Sets the attributes of the XML representation of the element being processed.voidsetRangeSetKey(RangeTableRangeSetKeyModel rangeSetKey)
-
Field Details
-
TAG_NAME
The tag name of the range set of a range table- See Also:
-
-
Constructor Details
-
RangeTableRangeSetModel
public RangeTableRangeSetModel()Default range table range set model.
-
-
Method Details
-
getRangeSetKey
- Returns:
- the rangeSetKey
-
setRangeSetKey
- Parameters:
rangeSetKey- the rangeSetKey to set
-
getRanges
Gets all therangescontained in the range set.- Returns:
- A list that contains all the ranges of the range set
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Specified by:
addCharacterDatain interfaceXMLMarshallable- Parameters:
cData- The character data to be added
-
setAttributes
Description copied from interface:XMLMarshallableSets the attributes of the XML representation of the element being processed.- Specified by:
setAttributesin interfaceXMLMarshallable- Parameters:
atts- TheXML attributesof the current element
-
marshalAttributes
Description copied from interface:IXMLMarshallableGives an XML representation of the attributes of an object.- Specified by:
marshalAttributesin interfaceIXMLMarshallable- Parameters:
output- TheXML outputto marshal the object attributes into
-
addChild
Description copied from interface:XMLMarshallableAdds a child to the object, thechildrepresenting the marshallable object which must be added to the element.- Specified by:
addChildin interfaceXMLMarshallable- Parameters:
tagName- The name of tag for the childchild- The child to be added
-
marshalChildren
Description copied from interface:IXMLMarshallableGives an XML representation of the child objects of an object.- Specified by:
marshalChildrenin interfaceIXMLMarshallable- Parameters:
output- TheXML outputto marshal the child objects into
-
marshal
Description copied from interface:XMLMarshallableGives an XML representation of this object, including its children.- Specified by:
marshalin interfaceIXMLMarshallable- Specified by:
marshalin interfaceXMLMarshallable- Parameters:
output- TheXML outputto marshal the object into
-
getClass
Description copied from interface:XMLMappingReturns theJava classfor a specifiedXML tagand its attributes in a namespace.- Specified by:
getClassin interfaceXMLMapping- Parameters:
nsUri- The unique resource identifier of the namespace of the XML tagtag- The local part of the XML tagatts- The attributes of the XML tag- Returns:
- A
Java classwith a default constructor
-