public class PropertyEntryModel extends Object implements XMLMarshallable
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 and Description |
|---|
PropertyEntryModel()
Builds an empty
PropertyEntryModel. |
PropertyEntryModel(String name,
String chargeCond,
String propertyName)
Builds a complete
PropertyEntryModel. |
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(String cData)
Adds character data to the content element.
|
void |
addChild(String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
String |
getChargeCond()
Returns the charge condition code of this property.
|
String |
getName()
Returns the name of the property entry.
|
String |
getPropertyName()
Returns the name of the property mapped to this entry.
|
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 |
setChargeCond(String chargeCond)
Sets the charge condition code of this property.
|
void |
setName(String name)
Set the name of the property entry.
|
void |
setPropertyName(String propertyName)
Sets the property name of the property entry.
|
public PropertyEntryModel()
PropertyEntryModel.public PropertyEntryModel(String name, String chargeCond, String propertyName)
PropertyEntryModel.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).public String getName()
public void setName(String name)
name - the name of the property entry.public String getPropertyName()
public void setPropertyName(String propertyName)
propertyName - the name of the mapped property.public String getChargeCond()
public void setChargeCond(String chargeCond)
chargeCond - the charge condition code of the mapped property.public void addCharacterData(String cData)
XMLMarshallableaddCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void addChild(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 marshal(XMLOutputter output)
XMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object into