Package com.highdeal.rangetable.hci
Class RangeTableRowModel
java.lang.Object
com.highdeal.rangetable.hci.RangeTableRowModel
- All Implemented Interfaces:
IXMLMarshallable,XMLMapping,XMLMarshallable
This
Java class represents a row in a range table or
in a subscriber range table; A row includes a set of business data items
as declared in the related range table class.
The upper bound is a number strictly positive. When the upper bound is not set, it is considered as unbounded.
- See Also:
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:complexType name="RangeTableRowType">
<xs:sequence>
<xs:element name="column" type="RangeTableColumnType" minOccurs="1" maxOccurs="20" /> <!-- input/output data values in the row -->
</xs:sequence>
<xs:attribute name="upperBound" type="xs:decimal" use="optional" />
</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.getColumnByName(String targetedName) Deprecated.Gets all thecolumnscontained in the row.Gets the upper bound of the row.booleanChecks if this row is unbounded.voidmarshal(XMLOutputter output) Deprecated.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.voidSets this row as unbounded.voidsetUpperBound(BigDecimal upperBound) Sets the upper bound of the row.
-
Field Details
-
RANGE_TABLE_COLUMN_TAG_NAME
The XML attribute name of the column- See Also:
-
UPPER_BOUND__TAG_NAME
The XML attribute name of the upper bound- See Also:
-
-
Constructor Details
-
RangeTableRowModel
public RangeTableRowModel()Default range table row model.
-
-
Method Details
-
getUpperBound
Gets the upper bound of the row.- Returns:
- The upper bound of the row
-
setUpperBound
Sets the upper bound of the row.- Parameters:
upperBound- The upper bound of the row
-
isUnbounded
public boolean isUnbounded()Checks if this row is unbounded.- Returns:
trueif row is unbounded,falseotherwise
-
setUnbounded
public void setUnbounded()Sets this row as unbounded. -
getColumns
Gets all thecolumnscontained in the row.- Returns:
- A list that contains all the column values of the row
-
getColumnByName
Deprecated.Gets the column that has the specified name.- Parameters:
targetedName- name of the column to retrieve- Returns:
- the requested column (or
nullif it is not present)
-
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
Deprecated.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
-