public class RangeTableColumnModel extends Object implements IXMLMarshallable, XMLMapping
Java class is a generic range table column model used by RangeTableRowModel.The XML APIs specify the following XSD fragment:
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME_TAG_NAME
The XML tag name of the data model: "name"
|
| Constructor and Description |
|---|
RangeTableColumnModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(String cData)
Adds character data to the content element.
|
void |
addChild(String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
Class<?> |
getClass(String nsUri,
String tag,
XMLAttributes atts)
Returns the
Java class for a specified XML tag and its attributes in a namespace. |
String |
getName()
Gets the name of the column.
|
BigDecimal |
getNumberValue()
Gets the value as a
BigDecimal if the column type is Number. |
String |
getStringValue()
Gets the value as a
String if the column type is String. |
RangeTableColumnType |
getType()
Gets the column type.
|
void |
marshal(XMLOutputter output)
Deprecated.
|
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 |
setName(String name)
Sets the name of the column.
|
void |
setNumberValue(BigDecimal value)
Sets a
BigDecimal value and sets the type of the column to RangeTableClassOutColumnModel.OutRangeTableClassType.SINGLE_NUMBER. |
void |
setStringValue(String value)
Sets a
String value and sets the type of the column to RangeTableClassOutColumnModel.OutRangeTableClassType.STRING. |
void |
setType(RangeTableColumnType newType)
Sets the type of the column.
|
public static final String NAME_TAG_NAME
public String getName()
public void setName(String name)
name - The name of the column to setpublic RangeTableColumnType getType()
RangeTableClassOutColumnModel.OutRangeTableClassTypepublic void setType(RangeTableColumnType newType)
type specified in parameter does not match with the internal type,
then the value is set to null.newType - The type of the column to setRangeTableColumnTypepublic String getStringValue()
String if the column type is String.String value of the column if the type is String,
null otherwisepublic void setStringValue(String value)
String value and sets the type of the column to RangeTableClassOutColumnModel.OutRangeTableClassType.STRING.value - The String value to set in the column.public BigDecimal getNumberValue()
BigDecimal if the column type is Number.BigDecimal value of the column if the type is Number,
null otherwisepublic void setNumberValue(BigDecimal value)
BigDecimal value and sets the type of the column to RangeTableClassOutColumnModel.OutRangeTableClassType.SINGLE_NUMBER.value - The BigDecimal value to set in the columnpublic void addChild(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 setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void addCharacterData(String cData)
XMLMarshallableaddCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void marshalAttributes(XMLOutputter output)
IXMLMarshallablemarshalAttributes in interface IXMLMarshallableoutput - The XML output to marshal the object attributes intopublic void marshalChildren(XMLOutputter output)
IXMLMarshallablemarshalChildren in interface IXMLMarshallableoutput - The XML output to marshal the child objects into@Deprecated public void marshal(XMLOutputter output)
XMLMarshallablemarshal in interface IXMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object intopublic Class<?> getClass(String nsUri, 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