Package de.measite.minidns
Enum Record.TYPE
- java.lang.Object
-
- java.lang.Enum<Record.TYPE>
-
- de.measite.minidns.Record.TYPE
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Record.TYPE>
- Enclosing class:
- Record
public static enum Record.TYPE extends java.lang.Enum<Record.TYPE>
The record type.- See Also:
- IANA DNS Parameters
-
-
Enum Constant Summary
Enum Constants Enum Constant Description A
A6
AAAA
AFSDB
ANY
APL
ATMA
AXFR
CERT
CNAME
DHCID
DLV
DNAME
DNSKEY
DS
EID
GID
GPOS
HINFO
HIP
IPSECKEY
ISDN
IXFR
KEY
KX
LOC
MAILA
MAILB
MB
MD
MF
MG
MINFO
MR
MX
NAPTR
NIMLOC
NINFO
NS
NSAP
NSAP_PTR
NSEC
NSEC3
NSEC3PARAM
NULL
NXT
OPT
PTR
PX
RKEY
RP
RRSIG
RT
SIG
SINK
SOA
SPF
SRV
SSHFP
TA
TALINK
TKEY
TSIG
TXT
UID
UINFO
WKS
X25
-
Field Summary
Fields Modifier and Type Field Description private static java.util.HashMap<java.lang.Integer,Record.TYPE>
INVERSE_LUT
Internal lookup table to map values to types.private int
value
The value of this DNS record type.
-
Constructor Summary
Constructors Modifier Constructor Description private
TYPE(int value)
Create a new record type.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Record.TYPE
getType(int value)
Retrieve the symbolic type of the binary value.int
getValue()
Retrieve the binary value of this type.static Record.TYPE
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Record.TYPE[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
A
public static final Record.TYPE A
-
NS
public static final Record.TYPE NS
-
MD
public static final Record.TYPE MD
-
MF
public static final Record.TYPE MF
-
CNAME
public static final Record.TYPE CNAME
-
SOA
public static final Record.TYPE SOA
-
MB
public static final Record.TYPE MB
-
MG
public static final Record.TYPE MG
-
MR
public static final Record.TYPE MR
-
NULL
public static final Record.TYPE NULL
-
WKS
public static final Record.TYPE WKS
-
PTR
public static final Record.TYPE PTR
-
HINFO
public static final Record.TYPE HINFO
-
MINFO
public static final Record.TYPE MINFO
-
MX
public static final Record.TYPE MX
-
TXT
public static final Record.TYPE TXT
-
RP
public static final Record.TYPE RP
-
AFSDB
public static final Record.TYPE AFSDB
-
X25
public static final Record.TYPE X25
-
ISDN
public static final Record.TYPE ISDN
-
RT
public static final Record.TYPE RT
-
NSAP
public static final Record.TYPE NSAP
-
NSAP_PTR
public static final Record.TYPE NSAP_PTR
-
SIG
public static final Record.TYPE SIG
-
KEY
public static final Record.TYPE KEY
-
PX
public static final Record.TYPE PX
-
GPOS
public static final Record.TYPE GPOS
-
AAAA
public static final Record.TYPE AAAA
-
LOC
public static final Record.TYPE LOC
-
NXT
public static final Record.TYPE NXT
-
EID
public static final Record.TYPE EID
-
NIMLOC
public static final Record.TYPE NIMLOC
-
SRV
public static final Record.TYPE SRV
-
ATMA
public static final Record.TYPE ATMA
-
NAPTR
public static final Record.TYPE NAPTR
-
KX
public static final Record.TYPE KX
-
CERT
public static final Record.TYPE CERT
-
A6
public static final Record.TYPE A6
-
DNAME
public static final Record.TYPE DNAME
-
SINK
public static final Record.TYPE SINK
-
OPT
public static final Record.TYPE OPT
-
APL
public static final Record.TYPE APL
-
DS
public static final Record.TYPE DS
-
SSHFP
public static final Record.TYPE SSHFP
-
IPSECKEY
public static final Record.TYPE IPSECKEY
-
RRSIG
public static final Record.TYPE RRSIG
-
NSEC
public static final Record.TYPE NSEC
-
DNSKEY
public static final Record.TYPE DNSKEY
-
DHCID
public static final Record.TYPE DHCID
-
NSEC3
public static final Record.TYPE NSEC3
-
NSEC3PARAM
public static final Record.TYPE NSEC3PARAM
-
HIP
public static final Record.TYPE HIP
-
NINFO
public static final Record.TYPE NINFO
-
RKEY
public static final Record.TYPE RKEY
-
TALINK
public static final Record.TYPE TALINK
-
SPF
public static final Record.TYPE SPF
-
UINFO
public static final Record.TYPE UINFO
-
UID
public static final Record.TYPE UID
-
GID
public static final Record.TYPE GID
-
TKEY
public static final Record.TYPE TKEY
-
TSIG
public static final Record.TYPE TSIG
-
IXFR
public static final Record.TYPE IXFR
-
AXFR
public static final Record.TYPE AXFR
-
MAILB
public static final Record.TYPE MAILB
-
MAILA
public static final Record.TYPE MAILA
-
ANY
public static final Record.TYPE ANY
-
TA
public static final Record.TYPE TA
-
DLV
public static final Record.TYPE DLV
-
-
Field Detail
-
value
private final int value
The value of this DNS record type.
-
INVERSE_LUT
private static final java.util.HashMap<java.lang.Integer,Record.TYPE> INVERSE_LUT
Internal lookup table to map values to types.
-
-
Method Detail
-
values
public static Record.TYPE[] 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 (Record.TYPE c : Record.TYPE.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Record.TYPE 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 namejava.lang.NullPointerException
- if the argument is null
-
getValue
public int getValue()
Retrieve the binary value of this type.- Returns:
- The binary value.
-
getType
public static Record.TYPE getType(int value)
Retrieve the symbolic type of the binary value.- Parameters:
value
- The binary type value.- Returns:
- The symbolic tpye.
-
-