public class IltTrapObjectStateSAXInfo extends Object implements IlpSAXSerializable
XML serialization class for IltTrapObjectState
.
This class reads and writes an IltTrapObjectState
in the following
format:
[<traps> [<new type="TTT" [operation=""set"|add"|"remove"]>NNN</new>]* [<ack type="TTT" [operation=""set"|add"|"remove"]>NNN</ack>]* </traps>]
Where: NNN stands for an integer number and TTT stands for a trap type, such as LinkFailure.
The operation attribute is optional and indicates if the traps are being added, removed or set in the object state. By default, the traps are set to the object state. This attribute is used when the traps are set within an updateState element.
Modifier and Type | Field and Description |
---|---|
static String |
TRAPS_TAG |
EMPTY_ATTRS
Constructor and Description |
---|
IltTrapObjectStateSAXInfo() |
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 TRAPS_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 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.