Class EPPRegistryGracePeriod
- java.lang.Object
-
- com.verisign.epp.codec.registry.v02.EPPRegistryPeriodType
-
- com.verisign.epp.codec.registry.v02.EPPRegistryGracePeriod
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPRegistryGracePeriod extends EPPRegistryPeriodType
Defines the grace periods by operation type. The required "command" attribute defines the operation type with the sample values of "create", "renew", "transfer", and "autoRenew". The <registry:gracePeriod> element requires the "unit" attribute with the possible values of "d" for day, "h" for hour, and "m" for minute.- See Also:
EPPRegistryDomain, Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.verisign.epp.codec.registry.v02.EPPRegistryPeriodType
EPPRegistryPeriodType.Unit
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringATTR_COMMANDXML attribute name for thecommandattribute.protected java.lang.StringcommandEPP transform command to which this period appliesstatic java.lang.StringELM_LOCALNAMEXML local name forEPPRegistryGracePeriod.-
Fields inherited from class com.verisign.epp.codec.registry.v02.EPPRegistryPeriodType
ATTR_UNIT, number, unit
-
-
Constructor Summary
Constructors Constructor Description EPPRegistryGracePeriod()Default constructor.EPPRegistryGracePeriod(java.lang.String command, int number, EPPRegistryPeriodType.Unit unit)Constructs an instance ofEPPRegistryGracePeriodwithcommand,numberandunit.EPPRegistryGracePeriod(java.lang.String aCommand, java.lang.Integer aNumber, EPPRegistryPeriodType.Unit aUnit)Constructs an instance ofEPPRegistryGracePeriodwithcommand,numberandunit.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecode(org.w3c.dom.Element aElement)Decode theEPPRegistryGracePeriodattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPRegistryGracePeriodinstance.booleanequals(java.lang.Object aObject)implements a deepEPPRegistryGracePeriodcompare.java.lang.StringgetCommand()Get the EPP transform command to which this period applies.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.protected java.lang.StringgetRootName()Gets the root element local name.voidsetCommand(java.lang.String command)Set the EPP transform command to which this period applies.
-
-
-
Field Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
XML local name forEPPRegistryGracePeriod.- See Also:
- Constant Field Values
-
ATTR_COMMAND
public static final java.lang.String ATTR_COMMAND
XML attribute name for thecommandattribute.- See Also:
- Constant Field Values
-
command
protected java.lang.String command
EPP transform command to which this period applies
-
-
Constructor Detail
-
EPPRegistryGracePeriod
public EPPRegistryGracePeriod()
Default constructor. Must callEPPRegistryPeriodType.setNumber(Integer),EPPRegistryPeriodType.setUnit(EPPRegistryPeriodType.Unit)andsetCommand(String)before callingencode(Document)method.
-
EPPRegistryGracePeriod
public EPPRegistryGracePeriod(java.lang.String aCommand, java.lang.Integer aNumber, EPPRegistryPeriodType.Unit aUnit)Constructs an instance ofEPPRegistryGracePeriodwithcommand,numberandunit.- Parameters:
aCommand- EPP command to which this period appliesaNumber- number must be > 0aUnit- unit must be one ofUnit.d,Unit.h, orUnit.m.
-
EPPRegistryGracePeriod
public EPPRegistryGracePeriod(java.lang.String command, int number, EPPRegistryPeriodType.Unit unit)Constructs an instance ofEPPRegistryGracePeriodwithcommand,numberandunit.- Parameters:
command- EPP command to which this period appliesnumber- number must be > 0unit- unit must be one ofUnit.d,Unit.h, orUnit.m.
-
-
Method Detail
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPRegistryGracePeriodinstance.- Specified by:
encodein interfaceEPPCodecComponent- Overrides:
encodein classEPPRegistryPeriodType- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRegistryGracePeriodinstance. - Throws:
EPPEncodeException- - Unable to encodeEPPRegistryGracePeriodinstance.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPRegistryGracePeriodattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Overrides:
decodein classEPPRegistryPeriodType- Parameters:
aElement- Root DOM Element to decodeEPPRegistryGracePeriodfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPRegistryGracePeriodcompare.- Overrides:
equalsin classEPPRegistryPeriodType- Parameters:
aObject-EPPRegistryGracePeriodinstance to compare with- Returns:
trueif this object is the same as the aObject argument;falseotherwise
-
getCommand
public java.lang.String getCommand()
Get the EPP transform command to which this period applies.- Returns:
- EPP transform command to which this period applies
-
setCommand
public void setCommand(java.lang.String command)
Set the EPP transform command to which this period applies.- Parameters:
command- EPP transform command to which this period applies
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Returns:
- XML namespace for the
EPPCodecComponent.
-
getRootName
protected java.lang.String getRootName()
Gets the root element local name.- Overrides:
getRootNamein classEPPRegistryPeriodType- Returns:
- Root element local name.
-
-