Package nl.sidnlabs.dnslib.types
Enum OpcodeType
- java.lang.Object
-
- java.lang.Enum<OpcodeType>
-
- nl.sidnlabs.dnslib.types.OpcodeType
-
- All Implemented Interfaces:
Serializable,Comparable<OpcodeType>
public enum OpcodeType extends Enum<OpcodeType>
DNS OpCodes Registration Procedures Standards Action as modified by [RFC4020] Reference [RFC-ietf-dnsext-rfc6195bis-05][RFC1035] OpCode Name Reference 0 Query [RFC1035] 1 IQuery (Inverse Query, OBSOLETE) [RFC3425] 2 Status [RFC1035] 3 Unassigned 4 Notify [RFC1996] 5 Update [RFC2136] 6-15 Unassigned
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INVERSENOTIFYSTANDARDSTATUSUNASSIGNEDUNASSIGNED_3UPPDATE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OpcodeTypefromString(String name)static OpcodeTypefromValue(int value)intgetValue()static OpcodeTypevalueOf(String name)Returns the enum constant of this type with the specified name.static OpcodeType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STANDARD
public static final OpcodeType STANDARD
-
INVERSE
public static final OpcodeType INVERSE
-
STATUS
public static final OpcodeType STATUS
-
UNASSIGNED_3
public static final OpcodeType UNASSIGNED_3
-
NOTIFY
public static final OpcodeType NOTIFY
-
UPPDATE
public static final OpcodeType UPPDATE
-
UNASSIGNED
public static final OpcodeType UNASSIGNED
-
-
Method Detail
-
values
public static OpcodeType[] 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 (OpcodeType c : OpcodeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OpcodeType 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 nameNullPointerException- if the argument is null
-
fromString
public static OpcodeType fromString(String name)
-
fromValue
public static OpcodeType fromValue(int value)
-
getValue
public int getValue()
-
-