Package com.verisign.epp.codec.registry
Class EPPRegistryRGP
- java.lang.Object
-
- com.verisign.epp.codec.registry.EPPRegistryRGP
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPRegistryRGP extends java.lang.Object implements EPPCodecComponent
Defined the Registry Grace Period (RGP) status periods. The <registry:rgp> element contains the following child elements, where each child element supports the "unit" attribute with the possible values of "y" for year, "m" for month, "d" for day, and "h" for hour:
- <registry:redemptionPeriod> - The length of time that a domain
object will remain in the redemptionPeriod status unless the restore request
command is received. Use
getRedemptionPeriod()andsetRedemptionPeriod(EPPRegistryRedemptionPeriodType)to get and set the element. - <registry:pendingRestore> - The length of time that the domain
object will remain in the pendingRestore status unless the restore report
command is received. Use
getPendingRestorePeriod()andsetPendingRestorePeriod(EPPRegistryPendingRestorePeriodType)to get and set the element. - <registry:pendingDelete> - The length of time that the domain
object will remain in the pendingDelete status prior to be purged. Use
getPendingDeletePeriod()andsetPendingDeletePeriod(EPPRegistryPendingDeletePeriodType)to get and set the element.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_NAMEXML Element Name ofEPPRegistryRGProot element.
-
Constructor Summary
Constructors Constructor Description EPPRegistryRGP()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPRegistryRGP.voiddecode(org.w3c.dom.Element aElement)Decode theEPPRegistryRGPattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPRegistryRGPinstance.booleanequals(java.lang.Object aObject)implements a deepEPPRegistryRGPcompare.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.EPPRegistryPendingDeletePeriodTypegetPendingDeletePeriod()Get pending delete period.EPPRegistryPendingRestorePeriodTypegetPendingRestorePeriod()Get pending restore period.EPPRegistryRedemptionPeriodTypegetRedemptionPeriod()Get redemption period.voidsetPendingDeletePeriod(EPPRegistryPendingDeletePeriodType pendingDeletePeriod)Set pending delete period.voidsetPendingRestorePeriod(EPPRegistryPendingRestorePeriodType pendingRestorePeriod)Set pending restore period.voidsetRedemptionPeriod(EPPRegistryRedemptionPeriodType redemptionPeriod)Set redemption period.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Field Detail
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML Element Name ofEPPRegistryRGProot element.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPRegistryRGP
public EPPRegistryRGP()
Default constructor. All attributes are initialized tonull. Must callsetRedemptionPeriod(EPPRegistryRedemptionPeriodType),setPendingRestorePeriod(EPPRegistryPendingRestorePeriodType)andsetPendingDeletePeriod(EPPRegistryPendingDeletePeriodType)before callingencode(Document)method.
-
-
Method Detail
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPRegistryRGPinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRegistryRGPinstance. - Throws:
EPPEncodeException- - Unable to encodeEPPRegistryRGPinstance.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPRegistryRGPattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPRegistryRGPfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPRegistryRGP.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPRegistryRGP - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPRegistryRGPcompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPRegistryRGPinstance to compare with- Returns:
trueif this object is the same as the aObject argument;falseotherwise
-
toString
public java.lang.String toString()
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classjava.lang.Object- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
getRedemptionPeriod
public EPPRegistryRedemptionPeriodType getRedemptionPeriod()
Get redemption period.- Returns:
- instance of
EPPRegistryRedemptionPeriodTypethat defines redemption period attributes.
-
setRedemptionPeriod
public void setRedemptionPeriod(EPPRegistryRedemptionPeriodType redemptionPeriod)
Set redemption period.- Parameters:
redemptionPeriod- instance ofEPPRegistryRedemptionPeriodTypethat defines redemption period attributes.
-
getPendingDeletePeriod
public EPPRegistryPendingDeletePeriodType getPendingDeletePeriod()
Get pending delete period.- Returns:
- instance of
EPPRegistryPendingDeletePeriodTypethat defines pending delete period attributes.
-
setPendingDeletePeriod
public void setPendingDeletePeriod(EPPRegistryPendingDeletePeriodType pendingDeletePeriod)
Set pending delete period.- Parameters:
pendingDeletePeriod- instance ofEPPRegistryPendingDeletePeriodTypethat defines pending delete period attributes.
-
getPendingRestorePeriod
public EPPRegistryPendingRestorePeriodType getPendingRestorePeriod()
Get pending restore period.- Returns:
- instance of
EPPRegistryPendingRestorePeriodTypethat defines pending restore period attributes.
-
setPendingRestorePeriod
public void setPendingRestorePeriod(EPPRegistryPendingRestorePeriodType pendingRestorePeriod)
Set pending restore period.- Parameters:
pendingRestorePeriod- instance ofEPPRegistryPendingRestorePeriodTypethat defines pending restore period attributes.
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-