Package net.aifusion.asn
Enum TagClass
- All Implemented Interfaces:
Serializable
,Comparable<TagClass>
,java.lang.constant.Constable
Enumeration to handle Tag Classes
- Author:
- Sharad Singhal
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionApplication Tag ClassContext-specific Tag ClassPrivate Tag ClassUniversal Tag Class -
Method Summary
Modifier and TypeMethodDescriptionlong
Get the flag associated with this tagClassstatic TagClass
getTagClass
(byte tagIdentifier) Get the tagClass associated with a tag valuestatic TagClass
Returns the enum constant of this type with the specified name.static TagClass[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
UNIVERSAL
Universal Tag Class -
APPLICATION
Application Tag Class -
CONTEXT_SPECIFIC
Context-specific Tag Class -
PRIVATE
Private Tag Class
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getTagClass
public long getTagClass()Get the flag associated with this tagClass- Returns:
- - flag associated with this class
-
getTagClass
Get the tagClass associated with a tag value- Parameters:
tagIdentifier
- - tag identifier (containing tag number/Class/Encoding)- Returns:
- - associated tag class
-