Package com.highdeal.admin.hci
Class StandbyInstance
java.lang.Object
com.highdeal.admin.hci.StandbyInstance
- All Implemented Interfaces:
XMLMarshallable
This model represents an instance identifier and the related standby status.
XML API for HCI
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>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a model.StandbyInstance(String instanceId, boolean isStandby) Creates a model. -
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.Gets the instance identifier.booleanGets the standby status.static final voidmarshal(StandbyInstance standbyInstance, com.highdeal.hmi.DataBuffer buffer) Writes a model into adata buffer.svoidmarshal(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.voidsetInstanceId(String instanceId) Sets the instance identifier.voidsetStandby(boolean isStandby) Sets the standby status.toString()static final StandbyInstanceunmarshal(com.highdeal.hmi.IDataBuffer buffer) Reads a model from adata buffer.
-
Field Details
-
TAG_NAME
The XML element name of the model.- See Also:
-
INSTANCE_ID
The XML attribute name of the instance identifier.- See Also:
-
IS_STANDBY
The XML attribute name of the standy status.- See Also:
-
-
Constructor Details
-
StandbyInstance
public StandbyInstance()Creates a model. -
StandbyInstance
Creates a model.- Parameters:
instanceId- the instance identifierisStandby- the standby status
-
-
Method Details
-
getInstanceId
Gets the instance identifier.- Returns:
- the instance identifier
-
setInstanceId
Sets the instance identifier.- Parameters:
instanceId- the instance identifier
-
isStandby
public boolean isStandby()Gets the standby status.- Returns:
- the standby status
-
setStandby
public void setStandby(boolean isStandby) Sets the standby status.- Parameters:
isStandby- the standby status
-
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
-
toString
-
unmarshal
public static final StandbyInstance unmarshal(com.highdeal.hmi.IDataBuffer buffer) throws BufferUnderflowException, MalformedInputException Reads a model from adata buffer.- Parameters:
buffer- thedata bufferto read from- Returns:
- the model read from the buffer
- Throws:
BufferUnderflowException- if the value cannot be read from the data buffer specifiedMalformedInputException- if the value cannot be read from the data buffer specified
-
marshal
public static final void marshal(StandbyInstance standbyInstance, com.highdeal.hmi.DataBuffer buffer) throws com.highdeal.util.NullArgumentException, BufferOverflowException Writes a model into adata buffer.s- Parameters:
standbyInstance- the model to write into the bufferbuffer- thedata bufferto write into- Throws:
com.highdeal.util.NullArgumentExceptionBufferOverflowException- if the value cannot be written to the data buffer specified
-