Class EPPRelatedDomainExtDomain
java.lang.Object
com.verisign.epp.codec.relateddomainext.EPPRelatedDomainExtDomain
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
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:
-
Constructor Summary
ConstructorsConstructorDescriptionEPPRelatedDomainExtDomaindefault constructor.EPPRelatedDomainExtDomain(String aName) Constructor which takes the name of domain.EPPRelatedDomainExtDomain(String name, EPPRelatedDomainExtAuthInfo authInfo) Constructor which takes the name of domain and authInfoEPPRelatedDomainExtDomain(String name, EPPRelatedDomainExtAuthInfo authInfo, EPPRelatedDomainExtPeriod period) Constructor which takes the name of domain, authInfo and registration period.EPPRelatedDomainExtDomain(String name, EPPRelatedDomainExtAuthInfo authInfo, EPPRelatedDomainExtPeriod period, String aLanguage) Constructor which takes the name of domain, authInfo, registration period and a language.EPPRelatedDomainExtDomain(String name, EPPRelatedDomainExtAuthInfo authInfo, String aLanguage) Constructor which takes the name of domain, authInfo and a language.EPPRelatedDomainExtDomain(String name, Date currentExpirationDate, EPPRelatedDomainExtPeriod period) Constructor which takes the name of domain, current expiration date and registration period. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPRelatedDomainExtDomain.voidDecode theEPPRelatedDomainExtDomainattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPRelatedDomainExtDomaininstance.booleanCompare an instance ofEPPRelatedDomainExtDomainwith this instance.Returns the authInfoReturns the currentExpirationDateReturns the languagegetName()Gets the domain nameReturns the XML namespace associated with theEPPCodecComponent.Returns the periodbooleanbooleanbooleanbooleanhasName()booleanvoidsetAuthInfo(EPPRelatedDomainExtAuthInfo aAuthInfo) Sets authInfo value to authInfovoidsetCurrentExpirationDate(Date aCurrentExpirationDate) Sets currentExpirationDate value to currentExpirationDatevoidsetLanguage(String aLanguage) Sets language value to languagevoidSets the domain name.voidsetPeriod(EPPRelatedDomainExtPeriod aPeriod) Sets period value to periodtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Constructor Details
-
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
Constructor which takes the name of domain.- Parameters:
aName- Domain name
-
-
Method Details
-
encode
Encode 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
Decode 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
Compare an instance ofEPPRelatedDomainExtDomainwith this instance. -
clone
CloneEPPRelatedDomainExtDomain.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPRelatedDomainExtDomain - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getName
Gets the domain name- Returns:
- Domain Name if set;
nullotherwise.
-
setName
Sets the domain name.- Parameters:
aName- Domain Name
-
getAuthInfo
Returns the authInfo- Returns:
- the authInfo
-
getPeriod
Returns the period- Returns:
- the period
-
getCurrentExpirationDate
Returns the currentExpirationDate- Returns:
- the currentExpirationDate
-
setCurrentExpirationDate
Sets currentExpirationDate value to currentExpirationDate- Parameters:
aCurrentExpirationDate- the currentExpirationDate to set
-
getLanguage
Returns the language- Returns:
- the language
-
setLanguage
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
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-