Package com.verisign.epp.codec.registry
Class EPPRegistryRGP
java.lang.Object
com.verisign.epp.codec.registry.EPPRegistryRGP
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
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.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPRegistryRGP.voidDecode theEPPRegistryRGPattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPRegistryRGPinstance.booleanimplements a deepEPPRegistryRGPcompare.Returns the XML namespace associated with theEPPCodecComponent.Get pending delete period.Get pending restore period.Get redemption period.voidsetPendingDeletePeriod(EPPRegistryPendingDeletePeriodType pendingDeletePeriod) Set pending delete period.voidsetPendingRestorePeriod(EPPRegistryPendingRestorePeriodType pendingRestorePeriod) Set pending restore period.voidsetRedemptionPeriod(EPPRegistryRedemptionPeriodType redemptionPeriod) Set redemption period.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_NAME
XML Element Name ofEPPRegistryRGProot element.- See Also:
-
-
Constructor Details
-
EPPRegistryRGP
public EPPRegistryRGP()Default constructor. All attributes are initialized tonull. Must callsetRedemptionPeriod(EPPRegistryRedemptionPeriodType),setPendingRestorePeriod(EPPRegistryPendingRestorePeriodType)andsetPendingDeletePeriod(EPPRegistryPendingDeletePeriodType)before callingencode(Document)method.
-
-
Method Details
-
encode
Encode 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
Decode 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
CloneEPPRegistryRGP.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPRegistryRGP - Throws:
CloneNotSupportedException- standard Object.clone exception
-
equals
implements a deepEPPRegistryRGPcompare. -
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getRedemptionPeriod
Get redemption period.- Returns:
- instance of
EPPRegistryRedemptionPeriodTypethat defines redemption period attributes.
-
setRedemptionPeriod
Set redemption period.- Parameters:
redemptionPeriod- instance ofEPPRegistryRedemptionPeriodTypethat defines redemption period attributes.
-
getPendingDeletePeriod
Get pending delete period.- Returns:
- instance of
EPPRegistryPendingDeletePeriodTypethat defines pending delete period attributes.
-
setPendingDeletePeriod
Set pending delete period.- Parameters:
pendingDeletePeriod- instance ofEPPRegistryPendingDeletePeriodTypethat defines pending delete period attributes.
-
getPendingRestorePeriod
Get pending restore period.- Returns:
- instance of
EPPRegistryPendingRestorePeriodTypethat defines pending restore period attributes.
-
setPendingRestorePeriod
Set pending restore period.- Parameters:
pendingRestorePeriod- instance ofEPPRegistryPendingRestorePeriodTypethat defines pending restore period attributes.
-
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-