Package org.minidns.record
Enum Record.TYPE
- java.lang.Object
-
- java.lang.Enum<Record.TYPE>
-
- org.minidns.record.Record.TYPE
-
- All Implemented Interfaces:
Serializable
,Comparable<Record.TYPE>
public static enum Record.TYPE extends Enum<Record.TYPE>
The resource record type.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description A
A6
AAAA
AFSDB
ANY
APL
ATMA
AXFR
CAA
CDNSKEY
CDS
CERT
CNAME
CSYNC
DHCID
DLV
DNAME
DNSKEY
DS
EID
EUI48
EUI64
GID
GPOS
HINFO
HIP
IPSECKEY
ISDN
IXFR
KEY
KX
L32
L64
LOC
LP
MAILA
MAILB
MB
MD
MF
MG
MINFO
MR
MX
NAPTR
NID
NIMLOC
NINFO
NS
NSAP
NSAP_PTR
NSEC
NSEC3
NSEC3PARAM
NULL
NXT
OPENPGPKEY
OPT
PTR
PX
RKEY
RP
RRSIG
RT
SIG
SINK
SOA
SPF
SRV
SSHFP
TA
TALINK
TKEY
TLSA
TSIG
TXT
UID
UINFO
UNKNOWN
UNSPEC
URI
WKS
X25
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <D extends Data>
Class<D>getDataClass()
Get theData
class for this type.static Record.TYPE
getType(int value)
Retrieve the symbolic type of the binary value.static <D extends Data>
Record.TYPEgetType(Class<D> dataClass)
Retrieve the type for a givenData
class.int
getValue()
Retrieve the binary value of this type.static Record.TYPE
valueOf(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
-
UNKNOWN
public static final Record.TYPE UNKNOWN
-
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
-
TLSA
public static final Record.TYPE TLSA
-
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
-
CDS
public static final Record.TYPE CDS
-
CDNSKEY
public static final Record.TYPE CDNSKEY
-
OPENPGPKEY
public static final Record.TYPE OPENPGPKEY
-
CSYNC
public static final Record.TYPE CSYNC
-
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
-
UNSPEC
public static final Record.TYPE UNSPEC
-
NID
public static final Record.TYPE NID
-
L32
public static final Record.TYPE L32
-
L64
public static final Record.TYPE L64
-
LP
public static final Record.TYPE LP
-
EUI48
public static final Record.TYPE EUI48
-
EUI64
public static final Record.TYPE EUI64
-
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
-
URI
public static final Record.TYPE URI
-
CAA
public static final Record.TYPE CAA
-
TA
public static final Record.TYPE TA
-
DLV
public static final Record.TYPE DLV
-
-
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(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
-
getValue
public int getValue()
Retrieve the binary value of this type.- Returns:
- The binary value.
-
getDataClass
public <D extends Data> Class<D> getDataClass()
Get theData
class for this type.- Type Parameters:
D
- The class for this type.- Returns:
- the
Data
class for this type.
-
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.
-
getType
public static <D extends Data> Record.TYPE getType(Class<D> dataClass)
Retrieve the type for a givenData
class.- Type Parameters:
D
- The class for this type.- Parameters:
dataClass
- the class to lookup the type for.- Returns:
- the type for the given data class.
-
-