Package google.registry.model.tld
Enum Registry.TldType
- java.lang.Object
-
- java.lang.Enum<Registry.TldType>
-
- google.registry.model.tld.Registry.TldType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Registry.TldType>
- Enclosing class:
- Registry
public static enum Registry.TldType extends java.lang.Enum<Registry.TldType>
The type of TLD, which determines things like backups and escrow policy.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Registry.TldType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Registry.TldType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REAL
public static final Registry.TldType REAL
A real, official TLD (but not necessarily only on production).Note that, to avoid unnecessary costly DB writes,
DomainTransactionRecord
s are only written out for REAL TLDs (these transaction records are only used for ICANN reporting purposes).
-
TEST
public static final Registry.TldType TEST
A test TLD, for the prober, OT&E, and other testing purposes.
-
-
Method Detail
-
values
public static Registry.TldType[] 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 (Registry.TldType c : Registry.TldType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Registry.TldType 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
-
-