Package com.highdeal.pnr.hci
Class PropertyEntryModel
java.lang.Object
com.highdeal.pnr.hci.PropertyEntryModel
- All Implemented Interfaces:
XMLMarshallable
This class represents a property entry.
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="propertyEntry">
<xs:complexType>
<xs:attribute name="name" type="xs:string"/>
<xs:attribute name="chargeCond" type="xs:string"/>
<xs:attribute name="propertyName" type="xs:string"/>
</xs:complexType>
</xs:element>
-
Constructor Summary
ConstructorsConstructorDescriptionBuilds an emptyPropertyEntryModel.PropertyEntryModel(String name, String chargeCond, String propertyName) Builds a completePropertyEntryModel. -
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.Returns the charge condition code of this property.getName()Returns the name of the property entry.Returns the name of the property mapped to this entry.voidmarshal(XMLOutputter output) Gives an XML representation of this object, including its children.voidsetAttributes(XMLAttributes atts) Sets the attributes of the XML representation of the element being processed.voidsetChargeCond(String chargeCond) Sets the charge condition code of this property.voidSet the name of the property entry.voidsetPropertyName(String propertyName) Sets the property name of the property entry.
-
Constructor Details
-
PropertyEntryModel
public PropertyEntryModel()Builds an emptyPropertyEntryModel. -
PropertyEntryModel
Builds a completePropertyEntryModel.- Parameters:
name- the name of the detail.chargeCond- the charge condition code or null if the property is a subscription property.propertyName- the mapped property name (cannot be null).
-
-
Method Details
-
getName
Returns the name of the property entry.- Returns:
- the property entry name.
-
setName
Set the name of the property entry.- Parameters:
name- the name of the property entry.
-
getPropertyName
Returns the name of the property mapped to this entry.- Returns:
- the property name.
-
setPropertyName
Sets the property name of the property entry.- Parameters:
propertyName- the name of the mapped property.
-
getChargeCond
Returns the charge condition code of this property. Null if it's an offer level property entry.- Returns:
- the charge condition code of this property.
-
setChargeCond
Sets the charge condition code of this property. Null is it's an offer level property entry.- Parameters:
chargeCond- the charge condition code of the mapped property.
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Specified by:
addCharacterDatain interfaceXMLMarshallable- Parameters:
cData- The character data to be added
-
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
-
marshal
Description copied from interface:XMLMarshallableGives an XML representation of this object, including its children.- Specified by:
marshalin interfaceXMLMarshallable- Parameters:
output- TheXML outputto marshal the object into
-