Package com.verisign.epp.codec.ttl.v1_0
Enum RRecType
- java.lang.Object
-
- java.lang.Enum<RRecType>
-
- com.verisign.epp.codec.ttl.v1_0.RRecType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<RRecType>
public enum RRecType extends java.lang.Enum<RRecType>
RRecTypespecifies the DNS resource record type to which the TTL value pertains. This attribute MUST have one of the following values: "NS", "DS", "DNAME", "A", "AAAA" or "custom" , which include the following possible resource record values:
NSDSDNAMEAAAAACUSTOM- Custom resource record that must be defined using a separate attribute
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RRecTypegetRRecType(java.lang.String aString)Gets theRRecTypeenumerated instance given the matching string.java.lang.StringtoString()Convert the enumeratedRRecTypeinstance value to aString.static RRecTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static RRecType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Method Detail
-
values
public static RRecType[] 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 (RRecType c : RRecType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RRecType 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
-
getRRecType
public static RRecType getRRecType(java.lang.String aString)
Gets theRRecTypeenumerated instance given the matching string.- Parameters:
aString-RRecTypeenumerated string to convert to an enumeratedRRecTypeinstance.- Returns:
- Enumerated
RRecTypevalue matching theString. - Throws:
java.security.InvalidParameterException- IfaStringdoes not match an enumeratedRRecTypestring value.
-
toString
public java.lang.String toString()
Convert the enumeratedRRecTypeinstance value to aString.- Overrides:
toStringin classjava.lang.Enum<RRecType>
-
-