org.jsmiparser.smi
Enum SmiVarBindField
java.lang.Object
java.lang.Enum<SmiVarBindField>
org.jsmiparser.smi.SmiVarBindField
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<SmiVarBindField>
public enum SmiVarBindField
- extends java.lang.Enum<SmiVarBindField>
This enum identifies the various fields in SimpleSyntax and ApplicationSyntax (together
these two form the ObjectSyntax choice) that can be used as the value of a VarBind.
-- syntax of objects
-- the "base types" defined here are:
-- 3 built-in ASN.1 types: INTEGER, OCTET STRING, OBJECT IDENTIFIER
-- 8 application-defined types: Integer32, IpAddress, Counter32,
-- Gauge32, Unsigned32, TimeTicks, Opaque, and Counter64
ObjectSyntax ::=
CHOICE {
simple
SimpleSyntax,
-- note that SEQUENCEs for conceptual tables and
-- rows are not mentioned here...
application-wide
ApplicationSyntax
}
-- built-in ASN.1 types
SimpleSyntax ::=
CHOICE {
-- INTEGERs with a more restrictive range
-- may also be used
integer-value -- includes Integer32
INTEGER (-2147483648..2147483647),
-- OCTET STRINGs with a more restrictive size
-- may also be used
string-value
OCTET STRING (SIZE (0..65535)),
objectID-value
OBJECT IDENTIFIER
}
-- application-wide types
ApplicationSyntax ::=
CHOICE {
ipAddress-value
IpAddress,
counter-value
Counter32,
timeticks-value
TimeTicks,
arbitrary-value
Opaque,
big-counter-value
Counter64,
unsigned-integer-value -- includes Gauge32
Unsigned32
}
-- in network-byte order
-- (this is a tagged type for historical reasons)
IpAddress ::=
[APPLICATION 0]
IMPLICIT OCTET STRING (SIZE (4))
-- this wraps
Counter32 ::=
[APPLICATION 1]
IMPLICIT INTEGER (0..4294967295)
-- this doesn't wrap
Gauge32 ::=
[APPLICATION 2]
IMPLICIT INTEGER (0..4294967295)
-- an unsigned 32-bit quantity
-- indistinguishable from Gauge32
Unsigned32 ::=
[APPLICATION 2]
IMPLICIT INTEGER (0..4294967295)
-- hundredths of seconds since an epoch
TimeTicks ::=
[APPLICATION 3]
IMPLICIT INTEGER (0..4294967295)
-- for backward-compatibility only
Opaque ::=
[APPLICATION 4]
IMPLICIT OCTET STRING
-- for counters that wrap in less than one hour with only 32 bits
Counter64 ::=
[APPLICATION 6]
IMPLICIT INTEGER (0..18446744073709551615)
- Author:
- davy
Method Summary |
static SmiVarBindField |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static SmiVarBindField[] |
values()
Returns an array containing the constants of this enum type, in
the order they're declared. |
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 |
INTEGER_VALUE
public static final SmiVarBindField INTEGER_VALUE
STRING_VALUE
public static final SmiVarBindField STRING_VALUE
OBJECTID_VALUE
public static final SmiVarBindField OBJECTID_VALUE
IPADDRESS_VALUE
public static final SmiVarBindField IPADDRESS_VALUE
COUNTER_VALUE
public static final SmiVarBindField COUNTER_VALUE
TIMETICKS_VALUE
public static final SmiVarBindField TIMETICKS_VALUE
ARBITRARY_VALUE
public static final SmiVarBindField ARBITRARY_VALUE
BIG_COUNTER_VALUE
public static final SmiVarBindField BIG_COUNTER_VALUE
UNSIGNED_INTEGER_VALUE
public static final SmiVarBindField UNSIGNED_INTEGER_VALUE
values
public static final SmiVarBindField[] 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(SmiVarBindField c : SmiVarBindField.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static SmiVarBindField 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
Copyright © 2005-2007 null. All Rights Reserved.