public class IltAlarmObjectStateSAXInfo extends Object implements IlpSAXSerializable
XML serialization class for IltAlarmObjectState
.
This class reads and writes an IltAlarmObjectState
in the following
format:
[<alarms [notReporting="true"|"false"] [lossOfConnectivity="true"|"false"]> [<new severity="SSS" [operation=""set"|add"|"remove"]>NNN</new>]* [<ack severity="SSS" [operation=""set"|add"|"remove">NNN</ack>]* </alarms>]where:
Raw.Warning
for the raw alarm severity Warning.Impact.MinorHigh
for the impact alarm severity
Minor High.severity="Warning"
is deprecated. Use
severity="Raw.Warning"
instead.
The operation attribute is optional and indicates if the alarms are being added, removed or set in the object state. By default, the alarms are set to the object state. This attribute is used when the alarms are set within an updateState element.
Modifier and Type | Field and Description |
---|---|
static String |
ALARMS_TAG |
EMPTY_ATTRS
Constructor and Description |
---|
IltAlarmObjectStateSAXInfo() |
Modifier and Type | Method and Description |
---|---|
IlpSAXAttributeValueHandler |
getSAXHandler()
Returns a SAX handler capable of reading the attribute.
|
void |
output(Object value,
IlpTypeConverter typeConverter,
ContentHandler outputHandler)
Outputs the
value to an SAX ContentHandler . |
public static final String ALARMS_TAG
public IlpSAXAttributeValueHandler getSAXHandler()
IlpSAXSerializable
getSAXHandler
in interface IlpSAXSerializable
public void output(Object value, IlpTypeConverter typeConverter, ContentHandler outputHandler) throws SAXException
IlpSAXSerializable
value
to an SAX ContentHandler
.
The method translates the object as SAX ContentHandler
method calls.output
in interface IlpSAXSerializable
value
- The object to outputtypeConverter
- The type converter that may be needed to translate
values to strings.outputHandler
- The SAX ContentHandler used by this method.SAXException
IlpTypeConverter.createStringValue(Class,Object)
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.