Package com.highdeal.admin.hci
Class InstanceProperty
java.lang.Object
com.highdeal.admin.hci.InstanceProperty
- All Implemented Interfaces:
XMLMarshallable
This class represents an instance property that is the between a key instance property and its value.
- See Also:
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="instanceProperty">
<xs:complexType>
<xs:attribute name="name" use="required"/>
<xs:attribute name="value" use="required"/>
</xs:complexType>
</xs:element>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInstanceProperty default constructorInstanceProperty(String name, String value) Builds a newInstancePropertyfrom a name and a string value -
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.getName()Get the instance property namegetValue()Get the instance property valuevoidmarshal(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.
-
Field Details
-
TAG_NAME
The XML tag name of this class: "instanceProperty"- See Also:
-
-
Constructor Details
-
InstanceProperty
public InstanceProperty()InstanceProperty default constructor -
InstanceProperty
Builds a newInstancePropertyfrom a name and a string value- Parameters:
name- The property namevalue- The property value
-
-
Method Details
-
getName
Get the instance property name- Returns:
- The instance property name
-
getValue
Get the instance property value- Returns:
- The instance property value
-
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
-
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
-