public class InstanceProperty extends java.lang.Object implements XMLMarshallable
InstanceStatusThe 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>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TAG_NAME
The XML tag name of this class: "instanceProperty"
|
| Constructor and Description |
|---|
InstanceProperty()
InstanceProperty default constructor
|
InstanceProperty(java.lang.String name,
java.lang.String value)
Builds a new
InstanceProperty from a name and a string value |
| 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 |
getName()
Get the instance property name
|
java.lang.String |
getValue()
Get the instance property value
|
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.
|
public static final java.lang.String TAG_NAME
public InstanceProperty()
public InstanceProperty(java.lang.String name,
java.lang.String value)
InstanceProperty from a name and a string valuename - The property namevalue - The property valuepublic java.lang.String getName()
public java.lang.String getValue()
public 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 addCharacterData(java.lang.String cData)
XMLMarshallableaddCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void marshal(XMLOutputter output)
XMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object into