|
SAP Convergent Charging
Java and XML APIs (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.highdeal.rangetable.hci.RangeTableColumnModel
public class RangeTableColumnModel
This Java class is a generic range table column model used by RangeTableRowModel.
The XML APIs specify the following XSD fragment:
| Field Summary | |
|---|---|
static java.lang.String |
NAME_TAG_NAME
The XML tag name of the data model: "name" |
| Constructor Summary | |
|---|---|
RangeTableColumnModel()
|
|
| Method Summary | |
|---|---|
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. |
java.lang.String |
getName()
Gets the name of the column. |
java.math.BigDecimal |
getNumberValue()
Gets the value as a BigDecimal if the column type is Number. |
java.lang.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(java.lang.String name)
Sets the name of the column. |
void |
setNumberValue(java.math.BigDecimal value)
Sets a BigDecimal value and sets the type of the column to RangeTableClassOutColumnModel.OutRangeTableClassType.SINGLE_NUMBER. |
void |
setStringValue(java.lang.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String NAME_TAG_NAME
| Constructor Detail |
|---|
public RangeTableColumnModel()
| Method Detail |
|---|
public java.lang.String getName()
public void setName(java.lang.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 java.lang.String getStringValue()
String if the column type is String.
String value of the column if the type is String,
null otherwisepublic void setStringValue(java.lang.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 java.math.BigDecimal getNumberValue()
BigDecimal if the column type is Number.
BigDecimal value of the column if the type is Number,
null otherwisepublic void setNumberValue(java.math.BigDecimal value)
BigDecimal value and sets the type of the column to RangeTableClassOutColumnModel.OutRangeTableClassType.SINGLE_NUMBER.
value - The BigDecimal value to set in the column
public 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 setAttributes(XMLAttributes atts)
XMLMarshallable
setAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void addCharacterData(java.lang.String cData)
XMLMarshallable
addCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void marshalAttributes(XMLOutputter output)
IXMLMarshallable
marshalAttributes in interface IXMLMarshallableoutput - The XML output to marshal the object attributes intopublic void marshalChildren(XMLOutputter output)
IXMLMarshallable
marshalChildren in interface IXMLMarshallableoutput - The XML output to marshal the child objects into@Deprecated public void marshal(XMLOutputter output)
XMLMarshallable
marshal in interface IXMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object into
public 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 tag
Java class with a default constructor
|
Document Published: October 2015 (SAP CC 4.0 SP10 and Later) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||