public enum SmiVarBindField extends java.lang.Enum<SmiVarBindField>
-- 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)
| Enum Constant and Description |
|---|
ARBITRARY_VALUE |
BIG_COUNTER_VALUE |
COUNTER_VALUE |
INTEGER_VALUE |
IPADDRESS_VALUE |
OBJECTID_VALUE |
STRING_VALUE |
TIMETICKS_VALUE |
UNSIGNED_INTEGER_VALUE |
| Modifier and Type | Method and Description |
|---|---|
byte |
getBerTagValue() |
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 are declared.
|
public static final SmiVarBindField INTEGER_VALUE
public static final SmiVarBindField STRING_VALUE
public static final SmiVarBindField OBJECTID_VALUE
public static final SmiVarBindField IPADDRESS_VALUE
public static final SmiVarBindField COUNTER_VALUE
public static final SmiVarBindField TIMETICKS_VALUE
public static final SmiVarBindField ARBITRARY_VALUE
public static final SmiVarBindField BIG_COUNTER_VALUE
public static final SmiVarBindField UNSIGNED_INTEGER_VALUE
public static SmiVarBindField[] values()
for (SmiVarBindField c : SmiVarBindField.values()) System.out.println(c);
public static SmiVarBindField valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namejava.lang.NullPointerException - if the argument is nullpublic byte getBerTagValue()