org.opennms.netmgt.snmp
Enum SnmpValueType

java.lang.Object
  extended by java.lang.Enum<SnmpValueType>
      extended by org.opennms.netmgt.snmp.SnmpValueType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SnmpValueType>

public enum SnmpValueType
extends java.lang.Enum<SnmpValueType>


Enum Constant Summary
COUNTER32
           
COUNTER64
           
END_OF_MIB
           
GAUGE32
           
INT32
           
IPADDRESS
           
NO_SUCH_INSTANCE
           
NO_SUCH_OBJECT
           
NULL
           
OBJECT_IDENTIFIER
           
OCTET_STRING
           
OPAQUE
           
TIMETICKS
           
 
Method Summary
 java.lang.String getDisplayString()
           
 int getInt()
           
static SnmpValueType valueOf(int i)
           
static SnmpValueType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SnmpValueType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INT32

public static final SnmpValueType INT32

OCTET_STRING

public static final SnmpValueType OCTET_STRING

NULL

public static final SnmpValueType NULL

OBJECT_IDENTIFIER

public static final SnmpValueType OBJECT_IDENTIFIER

IPADDRESS

public static final SnmpValueType IPADDRESS

COUNTER32

public static final SnmpValueType COUNTER32

GAUGE32

public static final SnmpValueType GAUGE32

TIMETICKS

public static final SnmpValueType TIMETICKS

OPAQUE

public static final SnmpValueType OPAQUE

COUNTER64

public static final SnmpValueType COUNTER64

NO_SUCH_OBJECT

public static final SnmpValueType NO_SUCH_OBJECT

NO_SUCH_INSTANCE

public static final SnmpValueType NO_SUCH_INSTANCE

END_OF_MIB

public static final SnmpValueType END_OF_MIB
Method Detail

values

public static SnmpValueType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (SnmpValueType c : SnmpValueType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SnmpValueType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getInt

public int getInt()

getDisplayString

public java.lang.String getDisplayString()

valueOf

public static SnmpValueType valueOf(int i)


Copyright © 2010. All Rights Reserved.