net.sf.snmpadaptor4j.object
Enum SnmpDataType

java.lang.Object
  extended by java.lang.Enum<SnmpDataType>
      extended by net.sf.snmpadaptor4j.object.SnmpDataType
All Implemented Interfaces:
Serializable, Comparable<SnmpDataType>

public enum SnmpDataType
extends Enum<SnmpDataType>

Enumeration of SNMP data type.

Author:
Jean-Philippe MINETTI

Enum Constant Summary
counter32
          Non-negative, non-decreasing and not-writable 32-bit integer for a counter.
counter64
          Non-negative, non-decreasing and not-writable 64-bit integer for a counter.
gauge32
          Non-negative 32-bit gauge.
integer32
          Signed 32-bit integer.
ipAddress
          Internet address.
objectIdentifier
          OID of SNMP Management Information Base (MIB).
octetString
          Array of ASCII code.
opaque
          Any data type.
timeTicks
          Non-negative and non-decreasing 32-bit integer for an elapsed time in hundredths of a second between two epochs.
unsigned32
          Non-negative 32-bit integer.
 
Method Summary
static SnmpDataType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SnmpDataType[] 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

integer32

public static final SnmpDataType integer32
Signed 32-bit integer.


unsigned32

public static final SnmpDataType unsigned32
Non-negative 32-bit integer.


gauge32

public static final SnmpDataType gauge32
Non-negative 32-bit gauge.


counter32

public static final SnmpDataType counter32
Non-negative, non-decreasing and not-writable 32-bit integer for a counter.


counter64

public static final SnmpDataType counter64
Non-negative, non-decreasing and not-writable 64-bit integer for a counter.


timeTicks

public static final SnmpDataType timeTicks
Non-negative and non-decreasing 32-bit integer for an elapsed time in hundredths of a second between two epochs.


octetString

public static final SnmpDataType octetString
Array of ASCII code.


ipAddress

public static final SnmpDataType ipAddress
Internet address.


objectIdentifier

public static final SnmpDataType objectIdentifier
OID of SNMP Management Information Base (MIB).


opaque

public static final SnmpDataType opaque
Any data type.

Method Detail

values

public static SnmpDataType[] 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 (SnmpDataType c : SnmpDataType.values())
    System.out.println(c);

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

valueOf

public static SnmpDataType valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2012-2013 snmpAdaptor4j. All Rights Reserved.