public class MibTypeTag
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
MibTypeTag(int category,
int value)
Creates a new MIB type tag.
|
Modifier and Type | Method and Description |
---|---|
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.
|
int |
hashCode()
Returns the hash code value for the object.
|
void |
setNext(MibTypeTag next)
Sets the next type tag in the tag chain.
|
java.lang.String |
toString()
Returns a string representation of this object.
|
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
public MibTypeTag(int category, int value)
category
- the type tag categoryvalue
- the type tag valuepublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object to compare topublic boolean equals(int category, int value)
category
- the category numbervalue
- the value numberpublic int hashCode()
hashCode
in class java.lang.Object
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