Package com.verisign.epp.codec.registry
Class EPPRegistryRedemptionPeriodType
java.lang.Object
com.verisign.epp.codec.registry.EPPRegistryPeriodType
com.verisign.epp.codec.registry.EPPRegistryRedemptionPeriodType
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Defines the length of time that a domain object will remain in the
redemptionPeriod status unless the restore request command is received.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringXML Element Name ofEPPRegistryRedemptionPeriodTyperoot element.Fields inherited from class com.verisign.epp.codec.registry.EPPRegistryPeriodType
number, PERIOD_UNIT_DAY, PERIOD_UNIT_HOUR, PERIOD_UNIT_MONTH, PERIOD_UNIT_YEAR, rootName, unit, VALID_UNITS -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.EPPRegistryRedemptionPeriodType(int number, String unit) Constructs an instance ofEPPRegistryRedemptionPeriodTypewithnumberandunit.EPPRegistryRedemptionPeriodType(Integer number, String unit) Constructs an instance ofEPPRegistryRedemptionPeriodTypewithnumberandunit. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare an instance ofEPPRegistryRedemptionPeriodTypewith this instance.Returns the XML namespace associated with theEPPCodecComponent.Methods inherited from class com.verisign.epp.codec.registry.EPPRegistryPeriodType
clone, decode, encode, getNumber, getRootName, getUnit, setNumber, setUnit, toString
-
Field Details
-
ELM_NAME
XML Element Name ofEPPRegistryRedemptionPeriodTyperoot element.- See Also:
-
-
Constructor Details
-
EPPRegistryRedemptionPeriodType
public EPPRegistryRedemptionPeriodType()Default constructor. Must callEPPRegistryPeriodType.setNumber(Integer)andEPPRegistryPeriodType.setUnit(String)before callingEPPRegistryPeriodType.encode(org.w3c.dom.Document)method. -
EPPRegistryRedemptionPeriodType
Constructs an instance ofEPPRegistryRedemptionPeriodTypewithnumberandunit.- Parameters:
number- number must be > 0unit- unit must be one of "y", "m", "d", or "h"
-
EPPRegistryRedemptionPeriodType
Constructs an instance ofEPPRegistryRedemptionPeriodTypewithnumberandunit.- Parameters:
number- number must be > 0unit- unit must be one of "y", "m", "d", or "h"
-
-
Method Details
-
equals
Compare an instance ofEPPRegistryRedemptionPeriodTypewith this instance.- Overrides:
equalsin classEPPRegistryPeriodType- Parameters:
aObject- Object to compare with.- Returns:
trueif equal;falseotherwise.
-
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Returns:
- XML namespace for the
EPPCodecComponent.
-