Enum Class HeaderRequestType

java.lang.Object
java.lang.Enum<HeaderRequestType>
net.messagevortex.asn1.HeaderRequestType
All Implemented Interfaces:
Serializable, Comparable<HeaderRequestType>, Constable

public enum HeaderRequestType extends Enum<HeaderRequestType>

Type of header requests

  • Enum Constant Details

  • Method Details

    • values

      public static HeaderRequestType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static HeaderRequestType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getId

      public int getId()

      obtain the ASN.1 ID of the header request.

      Returns:
      the requested ID
    • getTemplateClass

      public Class getTemplateClass()

      Returns a class representing the respective header request.

      Returns:
      the template class
    • getByClass

      public static HeaderRequestType getByClass(Class c)

      Obtain the respective header request type by using the template class.

      Parameters:
      c - the template class to be identified
      Returns:
      the respective constant