org.jsmiparser.smi
Enum SmiPrimitiveType
java.lang.Object
java.lang.Enum<SmiPrimitiveType>
org.jsmiparser.smi.SmiPrimitiveType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<SmiPrimitiveType>
public enum SmiPrimitiveType
- extends java.lang.Enum<SmiPrimitiveType>
This identifies each of the primitive types as defined in the SNMPv2-SMI module.
Each one of them is also mapped to the field that should be used to send/receive
values of this type.
There is no distinction made here between types such as Counter and Counter32.
That distinction can be made by comparing the SmiType definitions: they will have
the same SmiPrimitiveType, but they are different SmiTypes (they are also defined
in different modules, so that makes sense too).
- Author:
- davy
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
ENUM
public static final SmiPrimitiveType ENUM
INTEGER
public static final SmiPrimitiveType INTEGER
OCTET_STRING
public static final SmiPrimitiveType OCTET_STRING
OBJECT_IDENTIFIER
public static final SmiPrimitiveType OBJECT_IDENTIFIER
INTEGER_32
public static final SmiPrimitiveType INTEGER_32
IP_ADDRESS
public static final SmiPrimitiveType IP_ADDRESS
COUNTER_32
public static final SmiPrimitiveType COUNTER_32
GAUGE_32
public static final SmiPrimitiveType GAUGE_32
UNSIGNED_32
public static final SmiPrimitiveType UNSIGNED_32
TIME_TICKS
public static final SmiPrimitiveType TIME_TICKS
OPAQUE
public static final SmiPrimitiveType OPAQUE
COUNTER_64
public static final SmiPrimitiveType COUNTER_64
BITS
public static final SmiPrimitiveType BITS
values
public static final SmiPrimitiveType[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(SmiPrimitiveType c : SmiPrimitiveType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static SmiPrimitiveType 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
getVarBindField
public SmiVarBindField getVarBindField()
fromXmlValue
public SmiPrimitiveType fromXmlValue(java.lang.String xmlValue)
getXmlValue
public java.lang.String getXmlValue()
isNamedNumbersSupported
public boolean isNamedNumbersSupported()
isRangesSupported
public boolean isRangesSupported()
Copyright © 2005-2007 null. All Rights Reserved.