public class StandbyInstance extends java.lang.Object implements XMLMarshallable
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="standbyInstance">
<xs:complexType>
<xs:attribute name="instanceId" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="((rater|guider)#\d+)"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="isStandby" type="xs:boolean" use="required"/>
</xs:complexType>
</xs:element>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
INSTANCE_ID
The XML attribute name of the instance identifier.
|
static java.lang.String |
IS_STANDBY
The XML attribute name of the standy status.
|
static java.lang.String |
TAG_NAME
The XML element name of the model.
|
| Constructor and Description |
|---|
StandbyInstance()
Creates a model.
|
StandbyInstance(java.lang.String instanceId,
boolean isStandby)
Creates a model.
|
| 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 |
getInstanceId()
Gets the instance identifier.
|
boolean |
isStandby()
Gets the standby status.
|
static void |
marshal(StandbyInstance standbyInstance,
com.highdeal.hmi.DataBuffer buffer)
Writes a model into a
data buffer.s |
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 |
setInstanceId(java.lang.String instanceId)
Sets the instance identifier.
|
void |
setStandby(boolean isStandby)
Sets the standby status.
|
java.lang.String |
toString() |
static StandbyInstance |
unmarshal(com.highdeal.hmi.IDataBuffer buffer)
Reads a model from a
data buffer. |
public static final java.lang.String TAG_NAME
public static final java.lang.String INSTANCE_ID
public static final java.lang.String IS_STANDBY
public StandbyInstance()
public StandbyInstance(java.lang.String instanceId,
boolean isStandby)
instanceId - the instance identifierisStandby - the standby statuspublic java.lang.String getInstanceId()
public void setInstanceId(java.lang.String instanceId)
instanceId - the instance identifierpublic boolean isStandby()
public void setStandby(boolean isStandby)
isStandby - the standby statuspublic 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 intopublic java.lang.String toString()
toString in class java.lang.Objectpublic static final StandbyInstance unmarshal(com.highdeal.hmi.IDataBuffer buffer) throws java.nio.BufferUnderflowException, java.nio.charset.MalformedInputException
data buffer.buffer - the data buffer to read fromjava.nio.BufferUnderflowException - if the value cannot be read from the data buffer specifiedjava.nio.charset.MalformedInputException - if the value cannot be read from the data buffer specifiedpublic static final void marshal(StandbyInstance standbyInstance, com.highdeal.hmi.DataBuffer buffer) throws com.highdeal.util.NullArgumentException, java.nio.BufferOverflowException
data buffer.sstandbyInstance - the model to write into the bufferbuffer - the data buffer to write intocom.highdeal.util.NullArgumentExceptionjava.nio.BufferOverflowException - if the value cannot be written to the data buffer specified