public abstract class IltObjectStateSAXInfo extends Object implements IlpSAXSerializable
XML serialization class for IltObjectState
.
This class does not allow you to load an IltObjectState
from XML as
this object state is abstract. However, it provides reading and writing support for
miscellaneous shared object state parts
(performance and alarms). It reads and writes the following format
(inside an object state attribute element):
[<performance state="PPP" [operation="add"|"remove"] [isArray="true"|"false"] [javaClass="Java class"]>XXX</performance>]* [<SAN state="QQQ" [operation="add"|"remove"] [isArray="true"|"false"] [javaClass="Java class"]>XXX</SAN>]* [<misc [operation="add"|"remove"]>MMM</misc>]* [<alarms [operation="set"|"add"|"remove"] [notReporting="true"|"false"] [lossOfConnectivity="true"|"false"]> [<new severity="SSS">NNN</new>]* [<ack severity="SSS">NNN</ack>]* </alarms>] [<traps [operation="set"|"add"|"remove"]> [<new type="TTT">NNN"</new>]* [<ack type="TTT">NNN"</ack>]* </traps>]
Where:
Input
.
For the list of possible states, see the section Icon-based Representation of Performance States in the User's Manual.
The performance state may be an array (isArray="true"
). It may
also be of any Java class, or even an array of an arbitrary Java class. By
default, its content XXX
is read as a float (not as an array). If it is an
array, XXX
follows the format described in IlpSAXArrayHandler
.
Note that in the array case only, the javaClass can be a Java type, such as int
.
Capacity
.
For the list of possible states, see the section Icon-based Representation of Storage Area Network States in the User's Manual.
The handling of arrays is the same as for performance states.
DoorAjar
.
For the list of possible states, see the section Icon-based Representation of Misc States in the User's Manual.
Critical
.LinkFailure
.
For the list of possible types, see the section Alarm Severity Coding in the User's Manual.
Modifier and Type | Field and Description |
---|---|
static String |
ALARMS_TAG |
static String |
MISC_TAG |
static String |
PERFORMANCE_TAG |
static String |
SAN_TAG |
static String |
TRAPS_TAG |
EMPTY_ATTRS
Constructor and Description |
---|
IltObjectStateSAXInfo() |
Modifier and Type | Method and Description |
---|---|
abstract 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 MISC_TAG
public static final String PERFORMANCE_TAG
public static final String SAN_TAG
public static final String ALARMS_TAG
public static final String TRAPS_TAG
public abstract IlpSAXAttributeValueHandler getSAXHandler()
java.lang.ThreadLocal
class to return a different instance for each thread.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.