jp.bitmeister.asn1.type
Enum ASN1TagClass

java.lang.Object
  extended by java.lang.Enum<ASN1TagClass>
      extended by jp.bitmeister.asn1.type.ASN1TagClass
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ASN1TagClass>

public enum ASN1TagClass
extends java.lang.Enum<ASN1TagClass>

Enumeration of ASN.1 tag classes.

Author:
WATANABE, Jun.
See Also:
ASN1Tag

Enum Constant Summary
APPLICATION
          Represents application class.
CONTEXT_SPECIFIC
          Represents context-specific class.
PRIVATE
          Represents private class.
UNIVERSAL
          Represents universal class.
 
Method Summary
static ASN1TagClass valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ASN1TagClass[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNIVERSAL

public static final ASN1TagClass UNIVERSAL
Represents universal class.


APPLICATION

public static final ASN1TagClass APPLICATION
Represents application class.


CONTEXT_SPECIFIC

public static final ASN1TagClass CONTEXT_SPECIFIC
Represents context-specific class.


PRIVATE

public static final ASN1TagClass PRIVATE
Represents private class.

Method Detail

values

public static ASN1TagClass[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ASN1TagClass c : ASN1TagClass.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ASN1TagClass valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


Copyright © 2012 BitMeister Inc. All Rights Reserved.