public class IltSNMPObjectStateSAXInfo extends IltObjectStateSAXInfo
This class defines the XML Serialization for IltSNMPObjectState
.
It allows you to read and write an IltSNMPObjectState
in the following
format:
[<state>SSS</state>] [<interface state="sss" [isArray="true"|"false"] [javaClass="Java class"] [operation="add"|"remove"]>XXX</interface>]* [<ip state="sss" [isArray="true"|"false"] [javaClass="Java class"] [operation="add"|"remove"]>XXX</ip>]* [<icmp state="sss" [isArray="true"|"false"] [javaClass="Java class"] [operation="add"|"remove"]>XXX</icmp>]* [<tcp state="sss" [isArray="true"|"false"] [javaClass="Java class"] [operation="add"|"remove"]>XXX</tcp>]* [<udp state="sss" [isArray="true"|"false"] [javaClass="Java class"] [operation="add"|"remove"]>XXX</udp>]* [<egp state="sss" [isArray="true"|"false"] [javaClass="Java class"] [operation="add"|"remove"]>XXX</egp>]* [<snmp state="sss" [isArray="true"|"false"] [javaClass="Java class"] [operation="add"|"remove"]>XXX</snmp>]* [<system> [<attribute name="attr" [null="true"|"false"] [javaClass="XXX"]>XXX</attribute>]* </system>]
Where:
Up
.
The operation attribute is optional and indicates if the state is being added or removed from the object state. By default, the states are added to the object state. This attribute is used when the states are set within an updateState element.
For the list of possible states, read the section Graphical Representation of
SNMP Primary States in the User's Manual or the IltSNMP.State
class.
Forwarding
for the IP group (see IltSNMP.Interface
,
IltSNMP.IP
, IltSNMP.ICMP
, IltSNMP.TCP
, IltSNMP.UDP
,
IltSNMP.EGP
, IltSNMP.SNMP
).
Each state value 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 an array).
If it is an array, XXX
follows the format described in
IlpSAXArrayHandler
.
Note that in the array case only, the Java class can be a Java type,
such as int
.
For the list of possible states, read section Graphical Representation of SNMP Secondary States in the User's Manual.
IltSNMP.System
).
The syntax for an attribute value is the same as for a "regular" attribute.
The format may also contain the elements described in the common object
state format (IltObjectStateSAXInfo
).
Modifier and Type | Field and Description |
---|---|
static String |
ATTRIBUTE_TAG |
static String |
EGP_TAG |
static String |
ICMP_TAG |
static String |
INTERFACE_TAG |
static String |
IP_TAG |
static String |
SNMP_TAG |
static String |
SYSTEM_TAG |
static Map |
Tag2PathMap |
static String |
TCP_TAG |
static String |
UDP_TAG |
ALARMS_TAG, MISC_TAG, PERFORMANCE_TAG, SAN_TAG, TRAPS_TAG
EMPTY_ATTRS
Constructor and Description |
---|
IltSNMPObjectStateSAXInfo() |
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 INTERFACE_TAG
public static final String IP_TAG
public static final String ICMP_TAG
public static final String TCP_TAG
public static final String UDP_TAG
public static final String EGP_TAG
public static final String SNMP_TAG
public static final String SYSTEM_TAG
public static final String ATTRIBUTE_TAG
public static final Map Tag2PathMap
public IlpSAXAttributeValueHandler getSAXHandler()
IltObjectStateSAXInfo
java.lang.ThreadLocal
class to return a different instance for each thread.getSAXHandler
in interface IlpSAXSerializable
getSAXHandler
in class IltObjectStateSAXInfo
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
output
in class IltObjectStateSAXInfo
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.