|
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.AdditionalInfoModel
public class AdditionalInfoModel
The AdditionalInfoModel represents an information used as search criteria to find Data.
AdditionalInfoModel is an element of the Data.
It is unique by its name in the Data.
The content of the information is set in the value of the AdditionalInfoModel.
The value can be a string, a date or a number.
The main goal of this element inside the Data is to be used as a search criteria in the Search Operations.
to find Data in the system.
A search criteria is applicable on the name and the value of the AdditionInfoModel.
That's useful for external system.
The AdditionalInfoModel is composed of:
name which identifies an unique additional information inside the Data.description allowing a better understanding about the presence of this additional information inside the Data.
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:complexType name="AdditionalInfoType">
<xs:sequence>
<xs:element name="description" type="DescriptionType" minOccurs="0" maxOccurs="1" />
<xs:choice>
<xs:element ref="string" />
<xs:element ref="date" />
<xs:element ref="number" />
</xs:choice>
</xs:sequence>
<xs:attribute name="name" type="xs:string" />
</xs:complexType>
| Field Summary | |
|---|---|
static java.lang.String |
TAG_NAME
The value of that constant is the XML tag name of the AdditionalInfoModel. |
| Constructor Summary | |
|---|---|
AdditionalInfoModel()
|
|
| 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.util.Date |
getDateValue()
Gets the value as a Date if the type is ValueType.DATE. |
java.lang.String |
getDescription()
Gets the description of the additional information. |
java.lang.String |
getName()
Gets the name of the additional information defined by the user. |
java.math.BigDecimal |
getNumberValue()
Gets the value as a BigDecimal if the type is ValueType.NUMBER. |
java.lang.String |
getStringValue()
Gets the value as a String if the type is ValueType.STRING. |
java.lang.String |
getTagName()
Gets the XML tag name of the HCI model. |
ValueType |
getType()
Gets the type of the value. |
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 |
setDateValue(java.util.Date value)
Sets the Date value and set the type to ValueType.DATE. |
void |
setDescription(java.lang.String description)
Sets the description of the additional information. |
void |
setName(java.lang.String name)
Sets the name of the additional information defined by the user. |
void |
setNumberValue(java.math.BigDecimal value)
Sets the BigDecimal value and set the type to ValueType.NUMBER. |
void |
setStringValue(java.lang.String value)
Sets a String value and set the type to ValueType.STRING. |
void |
setType(ValueType type)
Sets the type of the value. |
| 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
AdditionalInfoModel.
| Constructor Detail |
|---|
public AdditionalInfoModel()
| Method Detail |
|---|
public java.lang.String getName()
name of the additional information defined by the user.
The name is unique within the ChargePlanModel.
public void setName(java.lang.String name)
name of the additional information defined by the user.
The name is unique within the ChargePlanModel.
name - the name of the additional information defined by the user.public java.lang.String getDescription()
ChargePlanModel.
public void setDescription(java.lang.String description)
ChargePlanModel.
description - the description of the additional information.public ValueType getType()
null, then the value is null.
When the value is null, then the type isn't necessary null.
public void setType(ValueType type)
type,
then the value is set to null.
type - the type of the value.public java.lang.String getStringValue()
String if the type is ValueType.STRING.
String if the type is ValueType.STRING, null otherwise.public void setStringValue(java.lang.String value)
String value and set the type to ValueType.STRING.
value - the String valuepublic java.util.Date getDateValue()
Date if the type is ValueType.DATE.
Date if the type is ValueType.DATE, null otherwise.public void setDateValue(java.util.Date value)
Date value and set the type to ValueType.DATE.
value - the Date valuepublic java.math.BigDecimal getNumberValue()
BigDecimal if the type is ValueType.NUMBER.
BigDecimal if the type is ValueType.NUMBER, null otherwise.public void setNumberValue(java.math.BigDecimal value)
BigDecimal value and set the type to ValueType.NUMBER.
value - the BigDecimal valuepublic void addCharacterData(java.lang.String cData)
XMLMarshallable
addCharacterData in interface XMLMarshallablecData - 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.
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 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 intopublic java.lang.String getTagName()
ITagNameProvider
getTagName in interface ITagNameProvider
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 | ||||||||