public class EPPRelatedDomainExtDomain extends java.lang.Object implements EPPCodecComponent
Title: EPP 1.0 Related Domain - domain tag
Description: The EPPRelatedDomainExtDomain object represents the collection of domains that must be processed atomically. As XML, it is represented by a <relDom:domain> element.
| Constructor and Description |
|---|
EPPRelatedDomainExtDomain()
EPPRelatedDomainExtDomain default constructor. |
EPPRelatedDomainExtDomain(java.lang.String aName)
Constructor which takes the name of domain.
|
EPPRelatedDomainExtDomain(java.lang.String name,
java.util.Date currentExpirationDate,
EPPRelatedDomainExtPeriod period)
Constructor which takes the name of domain, current expiration date and
registration period.
|
EPPRelatedDomainExtDomain(java.lang.String name,
EPPRelatedDomainExtAuthInfo authInfo)
Constructor which takes the name of domain and authInfo
|
EPPRelatedDomainExtDomain(java.lang.String name,
EPPRelatedDomainExtAuthInfo authInfo,
EPPRelatedDomainExtPeriod period)
Constructor which takes the name of domain, authInfo and registration
period.
|
EPPRelatedDomainExtDomain(java.lang.String name,
EPPRelatedDomainExtAuthInfo authInfo,
EPPRelatedDomainExtPeriod period,
java.lang.String aLanguage)
Constructor which takes the name of domain, authInfo, registration period
and a language.
|
EPPRelatedDomainExtDomain(java.lang.String name,
EPPRelatedDomainExtAuthInfo authInfo,
java.lang.String aLanguage)
Constructor which takes the name of domain, authInfo and a language.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Clone
EPPRelatedDomainExtDomain. |
void |
decode(org.w3c.dom.Element aElement)
Decode the
EPPRelatedDomainExtDomain 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
EPPRelatedDomainExtDomain instance. |
boolean |
equals(java.lang.Object aObject)
Compare an instance of
EPPRelatedDomainExtDomain with this
instance. |
EPPRelatedDomainExtAuthInfo |
getAuthInfo()
Returns the authInfo
|
java.util.Date |
getCurrentExpirationDate()
Returns the currentExpirationDate
|
java.lang.String |
getLanguage()
Returns the language
|
java.lang.String |
getName()
Gets the domain name
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent. |
EPPRelatedDomainExtPeriod |
getPeriod()
Returns the period
|
boolean |
hasAuthInfo() |
boolean |
hasCurrentExpirationDate() |
boolean |
hasLanguage() |
boolean |
hasName() |
boolean |
hasPeriod() |
void |
setAuthInfo(EPPRelatedDomainExtAuthInfo aAuthInfo)
Sets authInfo value to authInfo
|
void |
setCurrentExpirationDate(java.util.Date aCurrentExpirationDate)
Sets currentExpirationDate value to currentExpirationDate
|
void |
setLanguage(java.lang.String aLanguage)
Sets language value to language
|
void |
setName(java.lang.String aName)
Sets the domain name.
|
void |
setPeriod(EPPRelatedDomainExtPeriod aPeriod)
Sets period value to period
|
java.lang.String |
toString()
Implementation of
Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent. |
public EPPRelatedDomainExtDomain()
EPPRelatedDomainExtDomain default constructor. Must call required
setter methods before invoking encode, which may
include:setNamesetAuthInfosetPeriodsetCurrentExpirationDatesetLanguagepublic EPPRelatedDomainExtDomain(java.lang.String aName)
aName - Domain namepublic EPPRelatedDomainExtDomain(java.lang.String name,
EPPRelatedDomainExtAuthInfo authInfo)
name - Domain nameauthInfo - Authorization informationpublic EPPRelatedDomainExtDomain(java.lang.String name,
EPPRelatedDomainExtAuthInfo authInfo,
java.lang.String aLanguage)
name - Domain nameauthInfo - Authorization informationaLanguage - languagepublic EPPRelatedDomainExtDomain(java.lang.String name,
EPPRelatedDomainExtAuthInfo authInfo,
EPPRelatedDomainExtPeriod period)
name - Domain nameauthInfo - Authorization informationperiod - Registration periodpublic EPPRelatedDomainExtDomain(java.lang.String name,
EPPRelatedDomainExtAuthInfo authInfo,
EPPRelatedDomainExtPeriod period,
java.lang.String aLanguage)
name - Domain nameauthInfo - Authorization informationperiod - Registration periodaLanguage - languagepublic EPPRelatedDomainExtDomain(java.lang.String name,
java.util.Date currentExpirationDate,
EPPRelatedDomainExtPeriod period)
name - Domain nameperiod - Registration periodcurrentExpirationDate - Current expiration datepublic org.w3c.dom.Element encode(org.w3c.dom.Document aDocument)
throws EPPEncodeException
EPPRelatedDomainExtDomain instance.encode in interface EPPCodecComponentaDocument - DOM Document that is being built. Used as an Element factory.EPPRelatedDomainExtDomain instance.EPPEncodeException - Unable to encode EPPRelatedDomainExtDomain instance.public void decode(org.w3c.dom.Element aElement)
throws EPPDecodeException
EPPRelatedDomainExtDomain attributes from the aElement
DOM Element tree.decode in interface EPPCodecComponentaElement - Root DOM Element to decode EPPRelatedDomainExtDomain
from.EPPDecodeException - Unable to decode aElementpublic boolean equals(java.lang.Object aObject)
EPPRelatedDomainExtDomain with this
instance.equals in class java.lang.ObjectaObject - Object to compare with.public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPRelatedDomainExtDomain.clone in interface EPPCodecComponentclone in class java.lang.ObjectEPPRelatedDomainExtDomainjava.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.String getName()
null otherwise.public void setName(java.lang.String aName)
aName - Domain Namepublic EPPRelatedDomainExtAuthInfo getAuthInfo()
public void setAuthInfo(EPPRelatedDomainExtAuthInfo aAuthInfo)
aAuthInfo - the authInfo to setpublic EPPRelatedDomainExtPeriod getPeriod()
public void setPeriod(EPPRelatedDomainExtPeriod aPeriod)
aPeriod - the period to setpublic java.util.Date getCurrentExpirationDate()
public void setCurrentExpirationDate(java.util.Date aCurrentExpirationDate)
aCurrentExpirationDate - the currentExpirationDate to setpublic java.lang.String getLanguage()
public void setLanguage(java.lang.String aLanguage)
aLanguage - the language to setpublic boolean hasName()
true if name is not null.public boolean hasAuthInfo()
true if authInfo is not null.public boolean hasPeriod()
true if period is not null.public boolean hasCurrentExpirationDate()
true if currentExpirationDate is not null.public boolean hasLanguage()
true if language is not null.public java.lang.String getNamespace()
EPPCodecComponent.getNamespace in interface EPPCodecComponentEPPCodecComponent.