Package com.highdeal.pnr.hci
Class AdditionalInfoModel
java.lang.Object
com.highdeal.pnr.hci.AdditionalInfo
com.highdeal.pnr.hci.AdditionalInfoModel
- All Implemented Interfaces:
IXMLMarshallable,XMLMarshallable
This
Java class represents an additional information that you can marshal;
You use this typical object to customize information in your data.
The AdditionalInfoModel is composed of:
- A name which identifies an unique additional information inside the data object.
- A description allowing a better understanding about the presence of this additional information inside the data object.
- A value (string, date, or number)
Note
You can add additional information to many data objects managed by SAP CC.
For example, you can add such elements to the subscriptions in customer master data owned by a service provider.
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="additionalInformation">
<xs:complexType>
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="type" type="TypeTypeAI" default="string"/>
<xs:attribute name="value" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
<xs:simpleType name="TypeTypeAI">
<xs:restriction base="xs:string">
<xs:enumeration value="string"/>
<xs:enumeration value="number"/>
<xs:enumeration value="date"/>
</xs:restriction>
</xs:simpleType>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe XML tag name of this data model: "additionalInformation" -
Constructor Summary
ConstructorsConstructorDescriptionBuilds an empty additional information.AdditionalInfoModel(String name, int type, Object value) Builds an additional information. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCharacterData(String cData) Adds character data to the content element.voidaddChild(String tagName, XMLMarshallable child) Adds a child to the object, thechildrepresenting the marshallable object which must be added to the element.voidmarshal(XMLOutputter output) Deprecated.voidmarshalAttributes(XMLOutputter output) Gives an XML representation of the attributes of an object.voidmarshalChildren(XMLOutputter output) Gives an XML representation of the child objects of an object.voidsetAttributes(XMLAttributes atts) Sets the attributes of the XML representation of the element being processed.Methods inherited from class com.highdeal.pnr.hci.AdditionalInfo
checkValidity, equals, getName, getType, getValue, setName, setType, setValue
-
Field Details
-
MODEL_NAME
The XML tag name of this data model: "additionalInformation"- See Also:
-
-
Constructor Details
-
AdditionalInfoModel
public AdditionalInfoModel()Builds an empty additional information. -
AdditionalInfoModel
Builds an additional information.- Parameters:
name- The name of the additional informationtype- The type of the additional informationvalue- The value of the additional information
-
-
Method Details
-
setAttributes
Description copied from interface:XMLMarshallableSets the attributes of the XML representation of the element being processed.- Specified by:
setAttributesin interfaceXMLMarshallable- Parameters:
atts- TheXML attributesof the current element
-
addChild
Description copied from interface:XMLMarshallableAdds a child to the object, thechildrepresenting the marshallable object which must be added to the element.- Specified by:
addChildin interfaceXMLMarshallable- Parameters:
tagName- The name of tag for the childchild- The child to be added
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Specified by:
addCharacterDatain interfaceXMLMarshallable- Parameters:
cData- The character data to be added
-
marshalAttributes
Description copied from interface:IXMLMarshallableGives an XML representation of the attributes of an object.- Specified by:
marshalAttributesin interfaceIXMLMarshallable- Parameters:
output- TheXML outputto marshal the object attributes into
-
marshalChildren
Description copied from interface:IXMLMarshallableGives an XML representation of the child objects of an object.- Specified by:
marshalChildrenin interfaceIXMLMarshallable- Parameters:
output- TheXML outputto marshal the child objects into
-
marshal
Deprecated.Description copied from interface:XMLMarshallableGives an XML representation of this object, including its children.- Specified by:
marshalin interfaceIXMLMarshallable- Specified by:
marshalin interfaceXMLMarshallable- Parameters:
output- TheXML outputto marshal the object into
-
duplicate
-