|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.verisign.epp.codec.relateddomainext.EPPRelatedDomainExtPeriod
public class EPPRelatedDomainExtPeriod
Represents a domain Period. A domain name object MAY have a specified
validity period. If server policy supports domain object validity periods,
the validity period is defined when a domain object is created, and it MAY be
extended by the EPP <renew> or <transfer> commands. As a matter
of server policy, this specification does not define actions to be taken upon
expiration of a domain object's validity period.
Validity periods are measured in years or months with the appropriate units
specified using the unit attribute. Valid values for the
unit attribute are y for years and m
for months.
| Field Summary | |
|---|---|
static java.lang.String |
PERIOD_UNIT_MONTH
Period in Unit Month |
static java.lang.String |
PERIOD_UNIT_YEAR
Period in Unit Year |
| Constructor Summary | |
|---|---|
EPPRelatedDomainExtPeriod()
EPPRelatedDomainExtPeriod default constructor. |
|
EPPRelatedDomainExtPeriod(int aPeriod)
EPPRelatedDomainExtPeriod constructor that takes the domain
period (in unit of year) as an argument |
|
EPPRelatedDomainExtPeriod(java.lang.String aPUnit,
int aPeriod)
EPPRelatedDomainExtPeriod constructor that takes the domain
period and period unit as an arguments |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Clone EPPRelatedDomainExtPeriod. |
void |
decode(org.w3c.dom.Element aElement)
Decode the EPPRelatedDomainExtPeriod 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 EPPRelatedDomainExtPeriod instance. |
boolean |
equals(java.lang.Object aObject)
implements a deep EPPRelatedDomainExtPeriod compare. |
int |
getPeriod()
Get domain period. |
java.lang.String |
getPUnit()
Get domain period unit. |
boolean |
isPeriodUnspec()
Test whether the period has been specfied: true is unspecified
and false is specified. |
void |
setPeriod(int newPeriod)
Set domain period. |
void |
setPUnit(java.lang.String newPUnit)
Set domain period of un. |
java.lang.String |
toString()
Implementation of Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PERIOD_UNIT_MONTH
public static final java.lang.String PERIOD_UNIT_YEAR
| Constructor Detail |
|---|
public EPPRelatedDomainExtPeriod()
EPPRelatedDomainExtPeriod default constructor. The period is
initialized to unspecified. The period must be set before
invoking encode.
public EPPRelatedDomainExtPeriod(int aPeriod)
EPPRelatedDomainExtPeriod constructor that takes the domain
period (in unit of year) as an argument
aPeriod - int
public EPPRelatedDomainExtPeriod(java.lang.String aPUnit,
int aPeriod)
EPPRelatedDomainExtPeriod constructor that takes the domain
period and period unit as an arguments
aPUnit - StringaPeriod - int| Method Detail |
|---|
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPRelatedDomainExtPeriod.
clone in interface EPPCodecComponentclone in class java.lang.ObjectEPPRelatedDomainExtPeriod
java.lang.CloneNotSupportedException - standard Object.clone exception
public void decode(org.w3c.dom.Element aElement)
throws EPPDecodeException
decode in interface EPPCodecComponentaElement - - Root DOM Element to decode EPPRelatedDomainExtPeriod from.
EPPDecodeException - Unable to decode aElement
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument)
throws EPPEncodeException
encode in interface EPPCodecComponentaDocument - - DOM Document that is being built. Used as an Element factory.
EPPEncodeException - - Unable to encode EPPRelatedDomainExtPeriod instance.public boolean equals(java.lang.Object aObject)
EPPRelatedDomainExtPeriod compare.
equals in class java.lang.ObjectaObject - EPPRelatedDomainExtPeriod instance to compare with
public int getPeriod()
public java.lang.String getPUnit()
public boolean isPeriodUnspec()
true is unspecified
and false is specified.
public void setPeriod(int newPeriod)
throws EPPCodecException
newPeriod - int
EPPCodecException - DOCUMENT ME!public void setPUnit(java.lang.String newPUnit)
newPUnit - java.lang.Stringpublic 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||