Class EPPRelatedDomainExtName
- java.lang.Object
-
- com.verisign.epp.codec.relateddomainext.EPPRelatedDomainExtName
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPRelatedDomainExtName extends java.lang.Object implements EPPCodecComponent
EPPCodecComponent that encodes and decodes a <relDom:name> tagTitle: EPP 1.0 Related Domain - name tag
Description: The EPPRelatedDomainExtName object represents the domain name. As XML, it is represented by a <relDom:name> element.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EPPRelatedDomainExtName()Default constructorEPPRelatedDomainExtName(java.lang.String aDomainName)Creates aEPPRelatedDomainExtNamewith the related domain name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPRelatedDomainExtName.voiddecode(org.w3c.dom.Element aElement)Decode the EPPRelatedDomainExtName attributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of the EPPRelatedDomainExtName instance.booleanequals(java.lang.Object aObject)implements a deepEPPRelatedDomainExtNamecompare.java.lang.StringgetDomainName()Returns the domainNamejava.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.voidsetDomainName(java.lang.String domainName)Sets domainName value to domainNamejava.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Method Detail
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPRelatedDomainExtName.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPRelatedDomainExtName - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode the EPPRelatedDomainExtName attributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- - Root DOM Element to decode EPPRelatedDomainExtName from.- Throws:
EPPDecodeException- Unable to decode aElement
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of the EPPRelatedDomainExtName instance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- - DOM Document that is being built. Used as an Element factory.- Returns:
- Element - Root DOM Element representing the EPPRelatedDomainExtName instance.
- Throws:
EPPEncodeException- - Unable to encode EPPRelatedDomainExtName instance.
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPRelatedDomainExtNamecompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPRelatedDomainExtNameinstance to compare with- Returns:
- true if both instances of the EPPRelatedDomainExtName are equal.
-
getDomainName
public java.lang.String getDomainName()
Returns the domainName- Returns:
- the domainName
-
setDomainName
public void setDomainName(java.lang.String domainName)
Sets domainName value to domainName- Parameters:
domainName- the domainName to set
-
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.
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-