Enum TagClass

java.lang.Object
java.lang.Enum<TagClass>
net.aifusion.asn.TagClass
All Implemented Interfaces:
Serializable, Comparable<TagClass>, java.lang.constant.Constable

public enum TagClass extends Enum<TagClass>
Enumeration to handle Tag Classes
Author:
Sharad Singhal
  • Enum Constant Details

    • UNIVERSAL

      public static final TagClass UNIVERSAL
      Universal Tag Class
    • APPLICATION

      public static final TagClass APPLICATION
      Application Tag Class
    • CONTEXT_SPECIFIC

      public static final TagClass CONTEXT_SPECIFIC
      Context-specific Tag Class
    • PRIVATE

      public static final TagClass PRIVATE
      Private Tag Class
  • Method Details

    • values

      public static TagClass[] 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

      public static TagClass valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getTagClass

      public long getTagClass()
      Get the flag associated with this tagClass
      Returns:
      - flag associated with this class
    • getTagClass

      public static TagClass getTagClass(byte tagIdentifier)
      Get the tagClass associated with a tag value
      Parameters:
      tagIdentifier - - tag identifier (containing tag number/Class/Encoding)
      Returns:
      - associated tag class