public abstract class EPPRegistryPeriodType extends java.lang.Object implements EPPCodecComponent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELM_NAME |
protected java.lang.Integer |
number |
static java.lang.String |
PERIOD_UNIT_DAY
Period in Unit Day
|
static java.lang.String |
PERIOD_UNIT_HOUR
Period in Unit Hour
|
static java.lang.String |
PERIOD_UNIT_MONTH
Period in Unit Month
|
static java.lang.String |
PERIOD_UNIT_YEAR
Period in Unit Year
|
protected java.lang.String |
rootName |
protected java.lang.String |
unit |
static java.util.Set |
VALID_UNITS |
Constructor and Description |
---|
EPPRegistryPeriodType() |
EPPRegistryPeriodType(java.lang.Integer number,
java.lang.String unit) |
EPPRegistryPeriodType(int number,
java.lang.String unit) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
clone an
EPPCodecComponent . |
void |
decode(org.w3c.dom.Element aElement)
decode a DOM element tree to initialize the instance attributes.
|
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
encode instance into a DOM element tree.
|
boolean |
equals(java.lang.Object aObject) |
java.lang.Integer |
getNumber() |
java.lang.String |
getRootName() |
java.lang.String |
getUnit() |
void |
setNumber(java.lang.Integer number) |
void |
setUnit(java.lang.String unit) |
java.lang.String |
toString() |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getNamespace
public static final java.lang.String PERIOD_UNIT_MONTH
public static final java.lang.String PERIOD_UNIT_YEAR
public static final java.lang.String PERIOD_UNIT_DAY
public static final java.lang.String PERIOD_UNIT_HOUR
public static final java.util.Set VALID_UNITS
protected java.lang.String rootName
public static final java.lang.String ELM_NAME
protected java.lang.Integer number
protected java.lang.String unit
public EPPRegistryPeriodType()
public EPPRegistryPeriodType(java.lang.Integer number, java.lang.String unit)
public EPPRegistryPeriodType(int number, java.lang.String unit)
public java.lang.String getRootName()
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
EPPCodecComponent
EPPCommand
is
created and is used to append the attribute nodes of
EPPCommand
.encode
in interface EPPCodecComponent
aDocument
- DOM document used as a factory of DOM objects.EPPEncodeException
- Error encoding the DOM element tree.public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
EPPCodecComponent
aElement
argument represents the root DOM element and is
used to traverse the DOM nodes for instance attribute values. EPPCommand
is
passed into decode
of EPPCommand to be decoded and
used to set the instance attributes.decode
in interface EPPCodecComponent
aElement
- root DOM element associated with instanceEPPDecodeException
- Error decoding the DOM element tree.public boolean equals(java.lang.Object aObject)
equals
in class java.lang.Object
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPCodecComponent
EPPCodecComponent
.clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPCodecComponent
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Integer getNumber()
public void setNumber(java.lang.Integer number)
public java.lang.String getUnit()
public void setUnit(java.lang.String unit)
Copyright © VeriSign Inc. All Rights Reserved.