public abstract class EPPRegistryPeriodType extends java.lang.Object implements EPPCodecComponent
| Modifier and Type | Class and Description |
|---|---|
static class |
EPPRegistryPeriodType.Unit
Possible values for the
unit attribute. |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ATTR_UNIT
Attribute name for the
unit attribute. |
static java.lang.String |
ELM_LOCALNAME
Default root element local name
|
protected java.lang.Integer |
number
Number of the period
|
protected EPPRegistryPeriodType.Unit |
unit
Unit of the period
|
| Constructor and Description |
|---|
EPPRegistryPeriodType()
Default constructor for
EPPRegistryPeriodType. |
EPPRegistryPeriodType(java.lang.Integer aNumber,
EPPRegistryPeriodType.Unit aUnit)
EPPRegistryPeriodType constructor that takes both the period
number as an Integer and unit. |
EPPRegistryPeriodType(int aNumber,
EPPRegistryPeriodType.Unit aUnit)
EPPRegistryPeriodType constructor that takes both the period
number as an int and unit. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Clone
EPPRegistryPeriodType. |
void |
decode(org.w3c.dom.Element aElement)
Decode the
EPPRegistryPeriodType 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
EPPRegistryPeriodType instance. |
boolean |
equals(java.lang.Object aObject)
implements a deep
EPPRegistryPeriodType compare. |
java.lang.Integer |
getNumber()
Gets the period number.
|
protected java.lang.String |
getRootName()
Gets the root element local name.
|
EPPRegistryPeriodType.Unit |
getUnit()
Gets the period unit.
|
void |
setNumber(java.lang.Integer aNumber)
Sets the period number.
|
void |
setUnit(EPPRegistryPeriodType.Unit aUnit)
Sets the period unit.
|
java.lang.String |
toString()
Implementation of
Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent. |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNamespacepublic static final java.lang.String ELM_LOCALNAME
public static final java.lang.String ATTR_UNIT
unit attribute.protected java.lang.Integer number
protected EPPRegistryPeriodType.Unit unit
public EPPRegistryPeriodType()
EPPRegistryPeriodType. The number
and unit attributes must be set.public EPPRegistryPeriodType(java.lang.Integer aNumber,
EPPRegistryPeriodType.Unit aUnit)
EPPRegistryPeriodType constructor that takes both the period
number as an Integer and unit.aNumber - Period numberaUnit - Period unitpublic EPPRegistryPeriodType(int aNumber,
EPPRegistryPeriodType.Unit aUnit)
EPPRegistryPeriodType constructor that takes both the period
number as an int and unit.aNumber - Period numberaUnit - Period unitprotected java.lang.String getRootName()
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument)
throws EPPEncodeException
EPPRegistryPeriodType instance.encode in interface EPPCodecComponentaDocument - DOM Document that is being built. Used as an Element factory.EPPRegistryPeriodType instance.EPPEncodeException - - Unable to encode EPPRegistryPeriodType instance.public void decode(org.w3c.dom.Element aElement)
throws EPPDecodeException
EPPRegistryPeriodType attributes from the aElement DOM
Element tree.decode in interface EPPCodecComponentaElement - Root DOM Element to decode EPPRegistryPeriodType from.EPPDecodeException - Unable to decode aElementpublic boolean equals(java.lang.Object aObject)
EPPRegistryPeriodType compare.equals in class java.lang.ObjectaObject - EPPRegistryPeriodType instance to compare withtrue if this object is the same as the aObject argument;
false otherwisepublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPRegistryPeriodType.clone in interface EPPCodecComponentclone in class java.lang.ObjectEPPRegistryPeriodTypejava.lang.CloneNotSupportedException - standard Object.clone exceptionpublic java.lang.String toString()
Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent.toString in class java.lang.ObjectString if successful; ERROR
otherwise.public java.lang.Integer getNumber()
null otherwise.public void setNumber(java.lang.Integer aNumber)
aNumber - Period numberpublic EPPRegistryPeriodType.Unit getUnit()
null otherwise.public void setUnit(EPPRegistryPeriodType.Unit aUnit)
aUnit - Period unit