public class PropertyEntryModel extends java.lang.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(java.lang.String name,
java.lang.String chargeCond,
java.lang.String propertyName)
Builds a complete
PropertyEntryModel. |
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element.
|
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
java.lang.String |
getChargeCond()
Returns the charge condition code of this property.
|
java.lang.String |
getName()
Returns the name of the property entry.
|
java.lang.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(java.lang.String chargeCond)
Sets the charge condition code of this property.
|
void |
setName(java.lang.String name)
Set the name of the property entry.
|
void |
setPropertyName(java.lang.String propertyName)
Sets the property name of the property entry.
|
public PropertyEntryModel()
PropertyEntryModel.public PropertyEntryModel(java.lang.String name,
java.lang.String chargeCond,
java.lang.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 java.lang.String getName()
public void setName(java.lang.String name)
name - the name of the property entry.public java.lang.String getPropertyName()
public void setPropertyName(java.lang.String propertyName)
propertyName - the name of the mapped property.public java.lang.String getChargeCond()
public void setChargeCond(java.lang.String chargeCond)
chargeCond - the charge condition code of the mapped property.public void addCharacterData(java.lang.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(java.lang.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