|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.verisign.epp.codec.registry.EPPRegistryPeriodType
com.verisign.epp.codec.registry.EPPRegistryGracePeriod
public class EPPRegistryGracePeriod
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.
EPPRegistryDomain,
Serialized Form| Field Summary | |
|---|---|
static java.lang.String |
ATTR_COMMAND
XML attribute name for the command attribute. |
protected java.lang.String |
command
EPP transform command to which this period applies |
static java.lang.String |
ELM_NAME
XML Element Name of EPPRegistryGracePeriod root 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 | |
|---|---|
EPPRegistryGracePeriod()
Default constructor. |
|
EPPRegistryGracePeriod(java.lang.String command,
java.lang.Integer number,
java.lang.String unit)
Constructs an instance of EPPRegistryGracePeriod with
command, number and unit. |
|
EPPRegistryGracePeriod(java.lang.String command,
int number,
java.lang.String unit)
Constructs an instance of EPPRegistryGracePeriod with
command, number and unit. |
|
| Method Summary | |
|---|---|
void |
decode(org.w3c.dom.Element aElement)
Decode the EPPRegistryGracePeriod attributes from the aElement
DOM Element tree. |
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
Encode a DOM Element tree from the attributes of the EPPRegistryGracePeriod instance. |
boolean |
equals(java.lang.Object aObject)
|
java.lang.String |
getCommand()
Get the EPP transform command to which this period applies. |
void |
setCommand(java.lang.String command)
Set the EPP transform command to which this period applies. |
| Methods inherited from class com.verisign.epp.codec.registry.EPPRegistryPeriodType |
|---|
clone, getNumber, getRootName, getUnit, setNumber, setUnit, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ELM_NAME
EPPRegistryGracePeriod root element.
public static final java.lang.String ATTR_COMMAND
command attribute.
protected java.lang.String command
| Constructor Detail |
|---|
public EPPRegistryGracePeriod()
EPPRegistryPeriodType.setNumber(Integer),
EPPRegistryPeriodType.setUnit(String) and setCommand(String) before calling
encode(Document) method.
public EPPRegistryGracePeriod(java.lang.String command,
java.lang.Integer number,
java.lang.String unit)
EPPRegistryGracePeriod with
command, number and unit.
command - EPP command to which this period appliesnumber - number must be > 0unit - unit must be one of "d", "h" or "m"
public EPPRegistryGracePeriod(java.lang.String command,
int number,
java.lang.String unit)
EPPRegistryGracePeriod with
command, number and unit.
command - EPP command to which this period appliesnumber - number must be > 0unit - unit must be one of "d", "h" or "m"| Method Detail |
|---|
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument)
throws EPPEncodeException
EPPRegistryGracePeriod instance.
encode in interface EPPCodecComponentencode in class EPPRegistryPeriodTypeaDocument - DOM Document that is being built. Used as an Element factory.
EPPRegistryGracePeriod instance.
EPPEncodeException - - Unable to encode EPPRegistryGracePeriod
instance.
public void decode(org.w3c.dom.Element aElement)
throws EPPDecodeException
EPPRegistryGracePeriod attributes from the aElement
DOM Element tree.
decode in interface EPPCodecComponentdecode in class EPPRegistryPeriodTypeaElement - Root DOM Element to decode EPPRegistryGracePeriod
from.
EPPDecodeException - Unable to decode aElementpublic boolean equals(java.lang.Object aObject)
equals in class EPPRegistryPeriodTypepublic java.lang.String getCommand()
public void setCommand(java.lang.String command)
command - EPP transform command to which this period applies
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||