public class EPPRegistryGracePeriod extends EPPRegistryPeriodType
EPPRegistryDomain,
Serialized FormEPPRegistryPeriodType.Unit| Modifier and Type | Field and Description |
|---|---|
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_LOCALNAME
XML local name for
EPPRegistryGracePeriod. |
ATTR_UNIT, number, unit| Constructor and Description |
|---|
EPPRegistryGracePeriod()
Default constructor.
|
EPPRegistryGracePeriod(java.lang.String aCommand,
java.lang.Integer aNumber,
EPPRegistryPeriodType.Unit aUnit)
Constructs an instance of
EPPRegistryGracePeriod with
command, number and unit. |
EPPRegistryGracePeriod(java.lang.String command,
int number,
EPPRegistryPeriodType.Unit unit)
Constructs an instance of
EPPRegistryGracePeriod with
command, number and unit. |
| Modifier and Type | Method and Description |
|---|---|
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)
implements a deep
EPPRegistryGracePeriod compare. |
java.lang.String |
getCommand()
Get the EPP transform command to which this period applies.
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent. |
protected java.lang.String |
getRootName()
Gets the root element local name.
|
void |
setCommand(java.lang.String command)
Set the EPP transform command to which this period applies.
|
public static final java.lang.String ELM_LOCALNAME
EPPRegistryGracePeriod.public static final java.lang.String ATTR_COMMAND
command attribute.protected java.lang.String command
public EPPRegistryGracePeriod()
EPPRegistryPeriodType.setNumber(Integer),
#setUnit(String) and setCommand(String) before calling
encode(Document) method.public EPPRegistryGracePeriod(java.lang.String aCommand,
java.lang.Integer aNumber,
EPPRegistryPeriodType.Unit aUnit)
EPPRegistryGracePeriod with
command, number and unit.aCommand - EPP command to which this period appliesaNumber - number must be > 0aUnit - unit must be one of Unit#d, Unit#h, or
Unit#m.public EPPRegistryGracePeriod(java.lang.String command,
int number,
EPPRegistryPeriodType.Unit unit)
EPPRegistryGracePeriod with
command, number and unit.command - EPP command to which this period appliesnumber - number must be > 0unit - unit must be one of Unit#d, Unit#h, or
Unit#m.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)
EPPRegistryGracePeriod compare.equals in class EPPRegistryPeriodTypeaObject - EPPRegistryGracePeriod instance to compare withtrue if this object is the same as the aObject argument;
false otherwisepublic java.lang.String getCommand()
public void setCommand(java.lang.String command)
command - EPP transform command to which this period appliespublic java.lang.String getNamespace()
EPPCodecComponent.EPPCodecComponent.protected java.lang.String getRootName()
getRootName in class EPPRegistryPeriodTypeCopyright © VeriSign Inc. All Rights Reserved.