Package google.registry.model.domain.rgp
Enum GracePeriodStatus
- java.lang.Object
-
- java.lang.Enum<GracePeriodStatus>
-
- google.registry.model.domain.rgp.GracePeriodStatus
-
- All Implemented Interfaces:
EnumToAttributeAdapter.EppEnum
,java.io.Serializable
,java.lang.Comparable<GracePeriodStatus>
public enum GracePeriodStatus extends java.lang.Enum<GracePeriodStatus> implements EnumToAttributeAdapter.EppEnum
Represents a Registry Grace Period status, as defined by RFC 3915.- See Also:
- EPP Status Codes
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADD
This grace period is provided after the initial registration of a domain name.AUTO_RENEW
This grace period is provided after a domain name registration period expires and is extended (renewed) automatically by the registry.PENDING_DELETE
This status value is used to describe a domain that has entered the purge processing state after completing the redemptionPeriod state.PENDING_RESTORE
This status value is used to describe a domain that is in the process of being restored after being in the redemptionPeriod state.REDEMPTION
This status value is used to describe a domain for which a <delete> command has been received, but the domain has not yet been purged because an opportunity exists to restore the domain and abort the deletion process.RENEW
This grace period is provided after a domain name registration period is explicitly extended (renewed) by the registrar.TRANSFER
This grace period is provided after the successful transfer of domain name registration sponsorship from one registrar to another registrar.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GracePeriodStatus
fromXmlName(java.lang.String xmlName)
Maps from xmlName toGracePeriodStatus
.java.lang.String
getXmlName()
static GracePeriodStatus
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static GracePeriodStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ADD
public static final GracePeriodStatus ADD
This grace period is provided after the initial registration of a domain name. If the domain name is deleted by the registrar during this period, the registry provides a credit to the registrar for the cost of the registration.
-
AUTO_RENEW
public static final GracePeriodStatus AUTO_RENEW
This grace period is provided after a domain name registration period expires and is extended (renewed) automatically by the registry. If the domain name is deleted by the registrar during this period, the registry provides a credit to the registrar for the cost of the renewal.
-
REDEMPTION
public static final GracePeriodStatus REDEMPTION
This status value is used to describe a domain for which a <delete> command has been received, but the domain has not yet been purged because an opportunity exists to restore the domain and abort the deletion process.
-
RENEW
public static final GracePeriodStatus RENEW
This grace period is provided after a domain name registration period is explicitly extended (renewed) by the registrar. If the domain name is deleted by the registrar during this period, the registry provides a credit to the registrar for the cost of the renewal.
-
PENDING_DELETE
public static final GracePeriodStatus PENDING_DELETE
This status value is used to describe a domain that has entered the purge processing state after completing the redemptionPeriod state. A domain in this status MUST also have the EPP pendingDelete status.
-
PENDING_RESTORE
public static final GracePeriodStatus PENDING_RESTORE
This status value is used to describe a domain that is in the process of being restored after being in the redemptionPeriod state.
-
TRANSFER
public static final GracePeriodStatus TRANSFER
This grace period is provided after the successful transfer of domain name registration sponsorship from one registrar to another registrar. If the domain name is deleted by the new sponsoring registrar during this period, the registry provides a credit to the registrar for the cost of the transfer.
-
-
Method Detail
-
values
public static GracePeriodStatus[] 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 (GracePeriodStatus c : GracePeriodStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GracePeriodStatus 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
-
getXmlName
public java.lang.String getXmlName()
- Specified by:
getXmlName
in interfaceEnumToAttributeAdapter.EppEnum
-
fromXmlName
@Nullable public static GracePeriodStatus fromXmlName(java.lang.String xmlName)
Maps from xmlName toGracePeriodStatus
. If no match is found for xmlName, null is returned.
-
-