Package com.highdeal.pnr.hci
Class ChargedItemClassModel
java.lang.Object
com.highdeal.util.map.PropertyListDescription<T>
com.highdeal.item.common.ItemClass<T,ChargedItemFieldType>
com.highdeal.pnr.hci.ChargedItemClass<ChargedItemClassFieldModel>
com.highdeal.pnr.hci.ChargedItemClassModel
- All Implemented Interfaces:
ITagNameProvider,XMLMarshallable,ICatalogObject,com.highdeal.util.map.IPropertyListDescription<ChargedItemClassFieldModel>
public class ChargedItemClassModel
extends ChargedItemClass<ChargedItemClassFieldModel>
implements XMLMarshallable, ICatalogObject, ITagNameProvider
This class improves the
ChargedItemClass adding XML marshalling.XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="chargedItemClass">
<xs:complexType>
<xs:sequence>
<xs:element ref="chargedItemClassField" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="code" type="xs:string" use="required" />
<xs:attribute name="description" type="xs:string" />
<xs:attribute name="reference" type="xs:decimal" />
<xs:attribute name="owner" type="xs:string" use="required" />
</xs:complexType>
</xs:element>
-
Field Summary
Fields -
Constructor Summary
Constructors -
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.Gets the XML tag name of the HCI model.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.Methods inherited from class com.highdeal.item.common.ItemClass
getCode, getDescription, getOwner, getReference, setCode, setDescription, setOwner, setReferenceMethods inherited from class com.highdeal.util.map.PropertyListDescription
addPropertyDescription, getProperties, getPropertiesAsList, getPropertiesSize, getPropertyByName, removePropertyDescription, setWithCheck, withCheckMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.highdeal.pnr.hci.ICatalogObject
getOwner
-
Field Details
-
MODEL_NAME
- See Also:
-
-
Constructor Details
-
ChargedItemClassModel
public ChargedItemClassModel() -
ChargedItemClassModel
-
-
Method Details
-
getTagName
Description copied from interface:ITagNameProviderGets the XML tag name of the HCI model.- Specified by:
getTagNamein interfaceITagNameProvider- Returns:
- The XML tag name
-
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
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Specified by:
addCharacterDatain interfaceXMLMarshallable- Parameters:
cData- The character data to be added
-
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
-
duplicate
-
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
-