|
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.hci.HCIModelAdapter
com.highdeal.hci.DescriptionModel
public class DescriptionModel
This class is a description container.
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:simpleType name="DescriptionType"> <xs:restriction base="xs:string" /> </xs:simpleType>
| Field Summary | |
|---|---|
static java.lang.String |
TAG_NAME
The value of that constant is the XML tag name of the Description. |
| Constructor Summary | |
|---|---|
DescriptionModel()
Constructs a DescriptionModel with a null description |
|
DescriptionModel(java.lang.String description)
Constructs a DescriptionModel with a given String description |
|
| 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.String |
getDescription()
Gets the String text of the description |
static java.lang.String |
getDescriptionFromModel(DescriptionModel model)
Gets the String description coming from a DescriptionModel. |
java.lang.String |
getTagName()
Gets the XML tag name of the HCI model. |
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 |
setDescription(java.lang.String description)
Sets the String description |
static DescriptionModel |
setDescriptionIntoModel(DescriptionModel model,
java.lang.String description)
Sets a String description text into a DescriptionModel object |
| Methods inherited from class com.highdeal.hci.HCIModelAdapter |
|---|
marshal |
| 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 TAG_NAME
Description.
| Constructor Detail |
|---|
public DescriptionModel()
DescriptionModel with a null description
public DescriptionModel(java.lang.String description)
DescriptionModel with a given String description
description - The String description of the DescriptionModel| Method Detail |
|---|
public java.lang.String getDescription()
String text of the description
String descriptionpublic void setDescription(java.lang.String description)
String description
description - the String descriptionpublic void addCharacterData(java.lang.String cData)
XMLMarshallable
cData - The character data to be added
public void addChild(java.lang.String tagName,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.
tagName - The name of tag for the childchild - The child to be addedpublic void setAttributes(XMLAttributes atts)
XMLMarshallable
atts - The XML attributes of the current elementpublic void marshalAttributes(XMLOutputter output)
IXMLMarshallable
output - The XML output to marshal the object attributes intopublic void marshalChildren(XMLOutputter output)
IXMLMarshallable
output - The XML output to marshal the child objects intopublic java.lang.String getTagName()
ITagNameProvider
public static final java.lang.String getDescriptionFromModel(DescriptionModel model)
String description coming from a DescriptionModel.
model - The DescriptionModel which we want to exact the String description
String description text coming from the DescriptionModel
and returns null if the model is null
public static final DescriptionModel setDescriptionIntoModel(DescriptionModel model,
java.lang.String description)
String description text into a DescriptionModel object
model - DescriptionModel which you want to set the String descriptiondescription - The String description to be set into the DescriptionModel
DescriptionModel including the String description
Returns a new DescriptionModel if the DescriptionModel given in parameter is null.
Returns null if the String description null
|
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 | ||||||||