org.opennms.netmgt.trapd
Class EventConstants

java.lang.Object
  extended by org.opennms.netmgt.trapd.EventConstants

public class EventConstants
extends Object

EventConstants class.

Version:
$Id: $
Author:
ranger

Field Summary
static SnmpObjId OID_SNMP_IFINDEX
          Constant OID_SNMP_IFINDEX
static String TYPE_INT
          Constant TYPE_INT="int"
static String TYPE_SNMP_COUNTER32
          Constant TYPE_SNMP_COUNTER32="Counter32"
static String TYPE_SNMP_COUNTER64
          Constant TYPE_SNMP_COUNTER64="Counter64"
static String TYPE_SNMP_GAUGE32
          Constant TYPE_SNMP_GAUGE32="Gauge32"
static String TYPE_SNMP_INT32
          Constant TYPE_SNMP_INT32="Int32"
static String TYPE_SNMP_IPADDRESS
          Constant TYPE_SNMP_IPADDRESS="IpAddress"
static String TYPE_SNMP_NULL
          Constant TYPE_SNMP_NULL="Null"
static String TYPE_SNMP_OBJECT_IDENTIFIER
          Constant TYPE_SNMP_OBJECT_IDENTIFIER="ObjectIdentifier"
static String TYPE_SNMP_OCTET_STRING
          Constant TYPE_SNMP_OCTET_STRING="OctetString"
static String TYPE_SNMP_OPAQUE
          Constant TYPE_SNMP_OPAQUE="Opaque"
static String TYPE_SNMP_SEQUENCE
          Constant TYPE_SNMP_SEQUENCE="Sequence"
static String TYPE_SNMP_TIMETICKS
          Constant TYPE_SNMP_TIMETICKS="TimeTicks"
static String TYPE_STRING
          Constant TYPE_STRING="string"
static String XML_ENCODING_BASE64
          Constant XML_ENCODING_BASE64="base64"
static String XML_ENCODING_MAC_ADDRESS
          Constant XML_ENCODING_MAC_ADDRESS="macAddress"
static String XML_ENCODING_TEXT
          Constant XML_ENCODING_TEXT="text"
 
Method Summary
static String toString(String encoding, Object value)
          Converts the value of the instance to a string representation in the correct encoding system.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_STRING

public static final String TYPE_STRING
Constant TYPE_STRING="string"

See Also:
Constant Field Values

TYPE_INT

public static final String TYPE_INT
Constant TYPE_INT="int"

See Also:
Constant Field Values

TYPE_SNMP_OCTET_STRING

public static final String TYPE_SNMP_OCTET_STRING
Constant TYPE_SNMP_OCTET_STRING="OctetString"

See Also:
Constant Field Values

TYPE_SNMP_INT32

public static final String TYPE_SNMP_INT32
Constant TYPE_SNMP_INT32="Int32"

See Also:
Constant Field Values

TYPE_SNMP_NULL

public static final String TYPE_SNMP_NULL
Constant TYPE_SNMP_NULL="Null"

See Also:
Constant Field Values

TYPE_SNMP_OBJECT_IDENTIFIER

public static final String TYPE_SNMP_OBJECT_IDENTIFIER
Constant TYPE_SNMP_OBJECT_IDENTIFIER="ObjectIdentifier"

See Also:
Constant Field Values

TYPE_SNMP_IPADDRESS

public static final String TYPE_SNMP_IPADDRESS
Constant TYPE_SNMP_IPADDRESS="IpAddress"

See Also:
Constant Field Values

TYPE_SNMP_TIMETICKS

public static final String TYPE_SNMP_TIMETICKS
Constant TYPE_SNMP_TIMETICKS="TimeTicks"

See Also:
Constant Field Values

TYPE_SNMP_COUNTER32

public static final String TYPE_SNMP_COUNTER32
Constant TYPE_SNMP_COUNTER32="Counter32"

See Also:
Constant Field Values

TYPE_SNMP_GAUGE32

public static final String TYPE_SNMP_GAUGE32
Constant TYPE_SNMP_GAUGE32="Gauge32"

See Also:
Constant Field Values

TYPE_SNMP_OPAQUE

public static final String TYPE_SNMP_OPAQUE
Constant TYPE_SNMP_OPAQUE="Opaque"

See Also:
Constant Field Values

TYPE_SNMP_SEQUENCE

public static final String TYPE_SNMP_SEQUENCE
Constant TYPE_SNMP_SEQUENCE="Sequence"

See Also:
Constant Field Values

TYPE_SNMP_COUNTER64

public static final String TYPE_SNMP_COUNTER64
Constant TYPE_SNMP_COUNTER64="Counter64"

See Also:
Constant Field Values

XML_ENCODING_TEXT

public static final String XML_ENCODING_TEXT
Constant XML_ENCODING_TEXT="text"

See Also:
Constant Field Values

XML_ENCODING_BASE64

public static final String XML_ENCODING_BASE64
Constant XML_ENCODING_BASE64="base64"

See Also:
Constant Field Values

XML_ENCODING_MAC_ADDRESS

public static final String XML_ENCODING_MAC_ADDRESS
Constant XML_ENCODING_MAC_ADDRESS="macAddress"

See Also:
Constant Field Values

OID_SNMP_IFINDEX

public static final SnmpObjId OID_SNMP_IFINDEX
Constant OID_SNMP_IFINDEX

Method Detail

toString

public static String toString(String encoding,
                              Object value)
Converts the value of the instance to a string representation in the correct encoding system.

Parameters:
encoding - a String object.
value - a Object object.
Returns:
a String object.


Copyright © 2011. All Rights Reserved.