Class EPPRelatedDomainExtDomain
- java.lang.Object
-
- com.verisign.epp.codec.relateddomainext.EPPRelatedDomainExtDomain
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPRelatedDomainExtDomain extends java.lang.Object implements EPPCodecComponent
EPPCodecComponent that encodes and decodes a <relDom:domain> tag sent in a command. This element contains a number of child elements. Not all of them are required for all the commands listed below in which this element is used.- Domain Create
- Domain Delete
- Domain Renew
- Domain Transfer
- Domain Update
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.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EPPRelatedDomainExtDomain()EPPRelatedDomainExtDomaindefault constructor.EPPRelatedDomainExtDomain(java.lang.String aName)Constructor which takes the name of domain.EPPRelatedDomainExtDomain(java.lang.String name, EPPRelatedDomainExtAuthInfo authInfo)Constructor which takes the name of domain and authInfoEPPRelatedDomainExtDomain(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.EPPRelatedDomainExtDomain(java.lang.String name, java.util.Date currentExpirationDate, EPPRelatedDomainExtPeriod period)Constructor which takes the name of domain, current expiration date and registration period.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPRelatedDomainExtDomain.voiddecode(org.w3c.dom.Element aElement)Decode theEPPRelatedDomainExtDomainattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPRelatedDomainExtDomaininstance.booleanequals(java.lang.Object aObject)Compare an instance ofEPPRelatedDomainExtDomainwith this instance.EPPRelatedDomainExtAuthInfogetAuthInfo()Returns the authInfojava.util.DategetCurrentExpirationDate()Returns the currentExpirationDatejava.lang.StringgetLanguage()Returns the languagejava.lang.StringgetName()Gets the domain namejava.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.EPPRelatedDomainExtPeriodgetPeriod()Returns the periodbooleanhasAuthInfo()booleanhasCurrentExpirationDate()booleanhasLanguage()booleanhasName()booleanhasPeriod()voidsetAuthInfo(EPPRelatedDomainExtAuthInfo aAuthInfo)Sets authInfo value to authInfovoidsetCurrentExpirationDate(java.util.Date aCurrentExpirationDate)Sets currentExpirationDate value to currentExpirationDatevoidsetLanguage(java.lang.String aLanguage)Sets language value to languagevoidsetName(java.lang.String aName)Sets the domain name.voidsetPeriod(EPPRelatedDomainExtPeriod aPeriod)Sets period value to periodjava.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Constructor Detail
-
EPPRelatedDomainExtDomain
public EPPRelatedDomainExtDomain()
EPPRelatedDomainExtDomaindefault constructor. Must call required setter methods before invokingencode, which may include:
- name -
setName - auth info -
setAuthInfo - period -
setPeriod - current expiration date -
setCurrentExpirationDate - language -
setLanguage
- name -
-
EPPRelatedDomainExtDomain
public EPPRelatedDomainExtDomain(java.lang.String aName)
Constructor which takes the name of domain.- Parameters:
aName- Domain name
-
EPPRelatedDomainExtDomain
public EPPRelatedDomainExtDomain(java.lang.String name, EPPRelatedDomainExtAuthInfo authInfo)Constructor which takes the name of domain and authInfo- Parameters:
name- Domain nameauthInfo- Authorization information
-
EPPRelatedDomainExtDomain
public EPPRelatedDomainExtDomain(java.lang.String name, EPPRelatedDomainExtAuthInfo authInfo, java.lang.String aLanguage)Constructor which takes the name of domain, authInfo and a language.- Parameters:
name- Domain nameauthInfo- Authorization informationaLanguage- language
-
EPPRelatedDomainExtDomain
public EPPRelatedDomainExtDomain(java.lang.String name, EPPRelatedDomainExtAuthInfo authInfo, EPPRelatedDomainExtPeriod period)Constructor which takes the name of domain, authInfo and registration period.- Parameters:
name- Domain nameauthInfo- Authorization informationperiod- Registration period
-
EPPRelatedDomainExtDomain
public 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.- Parameters:
name- Domain nameauthInfo- Authorization informationperiod- Registration periodaLanguage- language
-
EPPRelatedDomainExtDomain
public EPPRelatedDomainExtDomain(java.lang.String name, java.util.Date currentExpirationDate, EPPRelatedDomainExtPeriod period)Constructor which takes the name of domain, current expiration date and registration period.- Parameters:
name- Domain nameperiod- Registration periodcurrentExpirationDate- Current expiration date
-
-
Method Detail
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPRelatedDomainExtDomaininstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Root DOM Element representing the
EPPRelatedDomainExtDomaininstance. - Throws:
EPPEncodeException- Unable to encodeEPPRelatedDomainExtDomaininstance.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPRelatedDomainExtDomainattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPRelatedDomainExtDomainfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
equals
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPRelatedDomainExtDomainwith this instance.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject- Object to compare with.- Returns:
- DOCUMENT ME!
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPRelatedDomainExtDomain.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPRelatedDomainExtDomain - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
toString
public java.lang.String toString()
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classjava.lang.Object- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
getName
public java.lang.String getName()
Gets the domain name- Returns:
- Domain Name if set;
nullotherwise.
-
setName
public void setName(java.lang.String aName)
Sets the domain name.- Parameters:
aName- Domain Name
-
getAuthInfo
public EPPRelatedDomainExtAuthInfo getAuthInfo()
Returns the authInfo- Returns:
- the authInfo
-
setAuthInfo
public void setAuthInfo(EPPRelatedDomainExtAuthInfo aAuthInfo)
Sets authInfo value to authInfo- Parameters:
aAuthInfo- the authInfo to set
-
getPeriod
public EPPRelatedDomainExtPeriod getPeriod()
Returns the period- Returns:
- the period
-
setPeriod
public void setPeriod(EPPRelatedDomainExtPeriod aPeriod)
Sets period value to period- Parameters:
aPeriod- the period to set
-
getCurrentExpirationDate
public java.util.Date getCurrentExpirationDate()
Returns the currentExpirationDate- Returns:
- the currentExpirationDate
-
setCurrentExpirationDate
public void setCurrentExpirationDate(java.util.Date aCurrentExpirationDate)
Sets currentExpirationDate value to currentExpirationDate- Parameters:
aCurrentExpirationDate- the currentExpirationDate to set
-
getLanguage
public java.lang.String getLanguage()
Returns the language- Returns:
- the language
-
setLanguage
public void setLanguage(java.lang.String aLanguage)
Sets language value to language- Parameters:
aLanguage- the language to set
-
hasName
public boolean hasName()
- Returns:
trueif name is not null.
-
hasAuthInfo
public boolean hasAuthInfo()
- Returns:
trueif authInfo is not null.
-
hasPeriod
public boolean hasPeriod()
- Returns:
trueif period is not null.
-
hasCurrentExpirationDate
public boolean hasCurrentExpirationDate()
- Returns:
trueif currentExpirationDate is not null.
-
hasLanguage
public boolean hasLanguage()
- Returns:
trueif language is not null.
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-