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 aEPPRelatedDomainExtName
with the related domain name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
CloneEPPRelatedDomainExtName
.void
decode(org.w3c.dom.Element aElement)
Decode the EPPRelatedDomainExtName 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 EPPRelatedDomainExtName instance.boolean
equals(java.lang.Object aObject)
implements a deepEPPRelatedDomainExtName
compare.java.lang.String
getDomainName()
Returns the domainNamejava.lang.String
getNamespace()
Returns the XML namespace associated with theEPPCodecComponent
.void
setDomainName(java.lang.String domainName)
Sets domainName value to domainNamejava.lang.String
toString()
Implementation ofObject.toString
, which will result in an indented XMLString
representation of the concreteEPPCodecComponent
.
-
-
-
Method Detail
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
CloneEPPRelatedDomainExtName
.- Specified by:
clone
in interfaceEPPCodecComponent
- Overrides:
clone
in 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 EPPDecodeException
Decode the EPPRelatedDomainExtName attributes from the aElement DOM Element tree.- Specified by:
decode
in 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 EPPEncodeException
Encode a DOM Element tree from the attributes of the EPPRelatedDomainExtName instance.- Specified by:
encode
in 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 deepEPPRelatedDomainExtName
compare.- Overrides:
equals
in classjava.lang.Object
- Parameters:
aObject
-EPPRelatedDomainExtName
instance 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 XMLString
representation of the concreteEPPCodecComponent
.- Overrides:
toString
in classjava.lang.Object
- Returns:
- Indented XML
String
if successful;ERROR
otherwise.
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent
.- Specified by:
getNamespace
in interfaceEPPCodecComponent
- Returns:
- XML namespace for the
EPPCodecComponent
.
-
-