|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.percederberg.mibble.MibTypeTag
A MIB type tag. The type tag consists of a category and value. Together these two numbers normally identifies a type uniquely, as all primitive and most (if not all) SNMP types (such as IpAddress and similar) have type tags assigned to them. Type tags may also be chained together in a list, in order to not loose information. Whether to replace or to chain a type tag is determined by the EXPLICIT or IMPLICIT keywords in the MIB file.
Field Summary | |
static int |
APPLICATION_CATEGORY
The application type tag category. |
static MibTypeTag |
BIT_STRING
The universal bit string type tag. |
static MibTypeTag |
BOOLEAN
The universal boolean type tag. |
static int |
CONTEXT_SPECIFIC_CATEGORY
The context specific type tag category. |
static MibTypeTag |
INTEGER
The universal integer type tag. |
static MibTypeTag |
NULL
The universal null type tag. |
static MibTypeTag |
OBJECT_IDENTIFIER
The universal object identifier type tag. |
static MibTypeTag |
OCTET_STRING
The universal octet string type tag. |
static int |
PRIVATE_CATEGORY
The private type tag category. |
static MibTypeTag |
REAL
The universal real type tag. |
static MibTypeTag |
SEQUENCE
The universal sequence and sequence of type tag. |
static MibTypeTag |
SET
The universal sequence and sequence of type tag. |
static int |
UNIVERSAL_CATEGORY
The universal type tag category. |
Constructor Summary | |
MibTypeTag(int category,
int value)
Creates a new MIB type tag. |
Method Summary | |
boolean |
equals(int category,
int value)
Checks if this type tag has the specified category and value numbers. |
boolean |
equals(java.lang.Object obj)
Checks if this type tag equals another object. |
int |
getCategory()
Returns the type tag category. |
MibTypeTag |
getNext()
Returns the next type tag in the tag chain. |
int |
getValue()
Returns the type tag value. |
void |
setNext(MibTypeTag next)
Sets the next type tag in the tag chain. |
java.lang.String |
toString()
Returns a string representation of this object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int UNIVERSAL_CATEGORY
public static final int APPLICATION_CATEGORY
public static final int CONTEXT_SPECIFIC_CATEGORY
public static final int PRIVATE_CATEGORY
public static final MibTypeTag BOOLEAN
public static final MibTypeTag INTEGER
public static final MibTypeTag BIT_STRING
public static final MibTypeTag OCTET_STRING
public static final MibTypeTag NULL
public static final MibTypeTag OBJECT_IDENTIFIER
public static final MibTypeTag REAL
public static final MibTypeTag SEQUENCE
public static final MibTypeTag SET
Constructor Detail |
public MibTypeTag(int category, int value)
category
- the type tag categoryvalue
- the type tag valueMethod Detail |
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object to compare to
public boolean equals(int category, int value)
category
- the category numbervalue
- the value number
public int getCategory()
UNIVERSAL_CATEGORY
,
APPLICATION_CATEGORY
,
CONTEXT_SPECIFIC_CATEGORY
,
PRIVATE_CATEGORY
public int getValue()
public MibTypeTag getNext()
public void setNext(MibTypeTag next)
NOTE: This is an internal method that should only be called by the MIB loader.
next
- the next type tagpublic java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |