|
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.pnr.hci.PropertyDescriptionModel
public class PropertyDescriptionModel
This class represents the description of a property as seen by a client application. Each property description specifies a type, a name and a description for the property.
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="prop">
<xs:complexType>
<xs:sequence>
<xs:element ref="additionalInformation" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="type" type="PropertyDescType" default="string"/>
<xs:attribute name="description" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:simpleType name="PropertyDescType">
<xs:restriction base="xs:string">
<xs:enumeration value="number"/>
<xs:enumeration value="string"/>
<xs:enumeration value="date"/>
</xs:restriction>
</xs:simpleType>
| Constructor Summary | |
|---|---|
PropertyDescriptionModel()
Builds an empty PropertyDescriptionModel. |
|
PropertyDescriptionModel(java.lang.String name,
java.lang.String description,
int type)
Builds a PropertyDescriptionModel. |
|
| Method Summary | ||
|---|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element. |
|
void |
addChild(java.lang.String name,
XMLMarshallable child)
Adds a child to the object, the child representing
the marshallable object which must be added to the element. |
|
boolean |
checkValidity()
Returns true if the property is valid. |
|
PropertyDescriptionModel |
duplicate()
Duplicates the property. |
|
AdditionalInfoModel |
getAdditionalInfo(java.lang.String name)
Returns an additional info depending on its name. |
|
|
getAdditionalInfo(java.lang.String name,
java.lang.Class<T> clazz,
T defaultValue)
Returns an additional info value depending on its name and type. |
|
java.util.List<AdditionalInfoModel> |
getAdditionalInfos()
Returns the additional info list. |
|
java.lang.String |
getDescription()
Returns the textual description of the property. |
|
java.lang.String |
getName()
Returns the name of the property. |
|
int |
getType()
Returns the property type of the property description. |
|
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children. |
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being processed. |
|
void |
setDescription(java.lang.String description)
Sets the textual description for the property. |
|
void |
setName(java.lang.String name)
Sets the name of the property. |
|
void |
setType(int t)
Sets the property description type. |
|
static boolean |
validatePropertyDescriptionModel(PropertyDescriptionModel pdm)
|
|
static boolean |
validatePropertyDescriptionModelType(PropertyDescriptionModel pdm)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyDescriptionModel()
public PropertyDescriptionModel(java.lang.String name,
java.lang.String description,
int type)
name - the name of the propertydescription - a textual description for the propertytype - the type of the property (see setType(int) for allowed values)| Method Detail |
|---|
public java.lang.String getName()
public void setName(java.lang.String name)
name - the name of the propertypublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - the associated textual description.public int getType()
public void setType(int t)
t - the property type.public java.util.List<AdditionalInfoModel> getAdditionalInfos()
public AdditionalInfoModel getAdditionalInfo(java.lang.String name)
name - The additional info name.
public <T> T getAdditionalInfo(java.lang.String name,
java.lang.Class<T> clazz,
T defaultValue)
name - The additional info name.clazz - The additional info type.defaultValue - The default value if there is no matching additional info.
public PropertyDescriptionModel duplicate()
public boolean checkValidity()
public static boolean validatePropertyDescriptionModel(PropertyDescriptionModel pdm)
public static boolean validatePropertyDescriptionModelType(PropertyDescriptionModel pdm)
public void setAttributes(XMLAttributes atts)
XMLMarshallable
setAttributes in interface XMLMarshallableatts - The XML attributes of the current element
public void addChild(java.lang.String name,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.
addChild in interface XMLMarshallablename - The name of tag for the childchild - The child to be addedpublic void addCharacterData(java.lang.String cData)
XMLMarshallable
addCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void marshal(XMLOutputter output)
XMLMarshallable
marshal in interface XMLMarshallableoutput - The XML output to marshal the object into
|
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 | ||||||||