public class RangeTableRangeModel extends java.lang.Object implements IXMLMarshallable, XMLMapping
Java class represents a range in a range set.
It contains an upper bound and output columns.
The upper bound is a number strictly positive. When the upper bound is not set, it is considered as unbounded.
RangeTableRangeSetModel,
RangeTableColumnModelThe XML APIs specify the following XSD fragment:
XSD Fragment
<xs:complexType name="RangeTableRangeType">
<xs:sequence>
<xs:element name="outColumn" type="RangeTableColumnType" minOccurs="1" maxOccurs="15" /> <!-- output data values in the range -->
</xs:sequence>
<xs:attribute name="upperBound" type="xs:decimal" use="optional" />
</xs:complexType>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
RANGE_TABLE_OUTPUT_COLUMN_TAG_NAME
The tag name of the range table output column
|
static java.lang.String |
RANGE_TABLE_UPPER_BOUND_ATTRIBUTE_NAME
The attribute name of the upper bound
|
static java.lang.String |
TAG_NAME
The tag name of the range of a range set
|
| Constructor and Description |
|---|
RangeTableRangeModel()
Default range table range model.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element.
|
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
java.lang.Class<?> |
getClass(java.lang.String nsUri,
java.lang.String tag,
XMLAttributes atts)
Returns the
Java class for a specified XML tag and its attributes in a namespace. |
RangeTableColumnModel |
getOutColumnByName(java.lang.String targetedName)
Gets the output column that has the specified name.
|
java.util.List<RangeTableColumnModel> |
getOutColumns()
Gets all the
output columns contained in the range. |
java.math.BigDecimal |
getUpperBound()
Gets the upper bound of the range.
|
boolean |
isUnbounded()
Checks if the range is unbounded.
|
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children.
|
void |
marshalAttributes(XMLOutputter output)
Gives an XML representation of the attributes of an object.
|
void |
marshalChildren(XMLOutputter output)
Gives an XML representation of the child objects of an object.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
void |
setUnbounded()
Sets the range as unbounded.
|
void |
setUpperBound(java.math.BigDecimal upperBound)
Sets the upper bound of the range.
|
public static final java.lang.String TAG_NAME
public static final java.lang.String RANGE_TABLE_OUTPUT_COLUMN_TAG_NAME
public static final java.lang.String RANGE_TABLE_UPPER_BOUND_ATTRIBUTE_NAME
public RangeTableRangeModel()
public java.math.BigDecimal getUpperBound()
public void setUpperBound(java.math.BigDecimal upperBound)
upperBound - The upper bound of the rangepublic boolean isUnbounded()
true if the range is unbounded, false otherwisepublic void setUnbounded()
public java.util.List<RangeTableColumnModel> getOutColumns()
output columns contained in the range.public RangeTableColumnModel getOutColumnByName(java.lang.String targetedName)
targetedName - name of the output column to retrievenull if it is not present)public void addCharacterData(java.lang.String cData)
XMLMarshallableaddCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void marshalAttributes(XMLOutputter output)
IXMLMarshallablemarshalAttributes in interface IXMLMarshallableoutput - The XML output to marshal the object attributes intopublic void addChild(java.lang.String tagName,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.addChild in interface XMLMarshallabletagName - The name of tag for the childchild - The child to be addedpublic void marshalChildren(XMLOutputter output)
IXMLMarshallablemarshalChildren in interface IXMLMarshallableoutput - The XML output to marshal the child objects intopublic void marshal(XMLOutputter output)
XMLMarshallablemarshal in interface IXMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object intopublic java.lang.Class<?> getClass(java.lang.String nsUri,
java.lang.String tag,
XMLAttributes atts)
XMLMappingJava class for a specified XML tag and its attributes in a namespace.getClass in interface XMLMappingnsUri - The unique resource identifier of the namespace of the XML tagtag - The local part of the XML tagatts - The attributes of the XML tagJava class with a default constructor