Class EPPRelatedDomainExtName

java.lang.Object
com.verisign.epp.codec.relateddomainext.EPPRelatedDomainExtName
All Implemented Interfaces:
EPPCodecComponent, Serializable, Cloneable

public class EPPRelatedDomainExtName extends Object implements EPPCodecComponent
EPPCodecComponent that encodes and decodes a <relDom:name> tag

Title: 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:
  • Constructor Details

    • EPPRelatedDomainExtName

      public EPPRelatedDomainExtName()
      Default constructor
    • EPPRelatedDomainExtName

      public EPPRelatedDomainExtName(String aDomainName)
      Creates a EPPRelatedDomainExtName with the related domain name.
      Parameters:
      aDomainName - Domain name
  • Method Details

    • clone

      public Object clone() throws CloneNotSupportedException
      Clone EPPRelatedDomainExtName.
      Specified by:
      clone in interface EPPCodecComponent
      Overrides:
      clone in class Object
      Returns:
      clone of EPPRelatedDomainExtName
      Throws:
      CloneNotSupportedException - standard Object.clone exception
    • decode

      public void decode(Element aElement) throws EPPDecodeException
      Decode the EPPRelatedDomainExtName attributes from the aElement DOM Element tree.
      Specified by:
      decode in interface EPPCodecComponent
      Parameters:
      aElement - - Root DOM Element to decode EPPRelatedDomainExtName from.
      Throws:
      EPPDecodeException - Unable to decode aElement
    • encode

      public Element encode(Document aDocument) throws EPPEncodeException
      Encode a DOM Element tree from the attributes of the EPPRelatedDomainExtName instance.
      Specified by:
      encode in interface EPPCodecComponent
      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(Object aObject)
      implements a deep EPPRelatedDomainExtName compare.
      Overrides:
      equals in class Object
      Parameters:
      aObject - EPPRelatedDomainExtName instance to compare with
      Returns:
      true if both instances of the EPPRelatedDomainExtName are equal.
    • getDomainName

      public String getDomainName()
      Returns the domainName
      Returns:
      the domainName
    • setDomainName

      public void setDomainName(String domainName)
      Sets domainName value to domainName
      Parameters:
      domainName - the domainName to set
    • toString

      public String toString()
      Implementation of Object.toString, which will result in an indented XML String representation of the concrete EPPCodecComponent.
      Overrides:
      toString in class Object
      Returns:
      Indented XML String if successful; ERROR otherwise.
    • getNamespace

      public String getNamespace()
      Returns the XML namespace associated with the EPPCodecComponent.
      Specified by:
      getNamespace in interface EPPCodecComponent
      Returns:
      XML namespace for the EPPCodecComponent.