|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.asn1.ber.TypeClass
public class TypeClass
Type safe enum for an ASN.1 type class. This can be take one of the following four values:
Field Summary | |
---|---|
static TypeClass |
APPLICATION
enum for the application type class |
static int |
APPLICATION_VAL
value for the application type class |
static TypeClass |
CONTEXT_SPECIFIC
enum for the context specific type class |
static int |
CONTEXT_SPECIFIC_VAL
value for the context specific type class |
private java.lang.String |
name
the name of this enumeration element |
static TypeClass |
PRIVATE
enum for the private type class |
static int |
PRIVATE_VAL
value for the private type class |
static TypeClass |
UNIVERSAL
enum for the universal type class |
static int |
UNIVERSAL_VAL
value for the universal type class |
private int |
value
the value of this enumeration element |
Constructor Summary | |
---|---|
private |
TypeClass(java.lang.String name,
int value)
Private constructor so no other instances can be created other than the public static constants in this class. |
Method Summary | |
---|---|
java.lang.String |
getName()
Get's the name of this enumeration element. |
static TypeClass |
getTypeClass(int octet)
Gets the ASN.1 type's class using a TLV tag. |
static TypeClass |
getTypeClass(java.lang.String className)
Gets the enumeration type for the type class regardless of case. |
int |
getValue()
Get's the value of this enumeration element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int UNIVERSAL_VAL
public static final int APPLICATION_VAL
public static final int CONTEXT_SPECIFIC_VAL
public static final int PRIVATE_VAL
public static final TypeClass UNIVERSAL
public static final TypeClass APPLICATION
public static final TypeClass CONTEXT_SPECIFIC
public static final TypeClass PRIVATE
private final java.lang.String name
private final int value
Constructor Detail |
---|
private TypeClass(java.lang.String name, int value)
name
- a string name for the enumeration value.value
- the integer value of the enumeration.Method Detail |
---|
public final java.lang.String getName()
public final int getValue()
public static TypeClass getTypeClass(java.lang.String className)
className
- the type class name
public static TypeClass getTypeClass(int octet)
octet
- the first octet of the TLV
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |