Class EPPRelatedDomainExtAvailable

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

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

Title: EPP 1.0 Related Domain - available tag

Description: The EPPRelatedDomainExtAvailable object represents the collection of domains that are available for registration in a family of related domains. As such it is composed of a collection of EPPRelatedDomainExtName objects.
As XML, it is represented by a <relDom:available> element containing a number of <relDom:name> elements.

See Also:
  • Field Details

  • Constructor Details

    • EPPRelatedDomainExtAvailable

      public EPPRelatedDomainExtAvailable()
      Default constructor
    • EPPRelatedDomainExtAvailable

      public EPPRelatedDomainExtAvailable(List<EPPRelatedDomainExtName> aAvailableDomains)
      Constructor with a list of available domain names.
      Parameters:
      aAvailableDomains - List of available domain names
  • Method Details

    • clone

      public Object clone() throws CloneNotSupportedException
      A deep clone of the EPPRelatedDomainAvailable
      Specified by:
      clone in interface EPPCodecComponent
      Overrides:
      clone in class Object
      Returns:
      clone of concrete EPPCodecComponent
      Throws:
      CloneNotSupportedException - standard Object.clone exception
      See Also:
    • decode

      public void decode(Element aElement) throws EPPDecodeException
      Populate the data of this instance with the data stored in the given Element of the DOM tree
      Specified by:
      decode in interface EPPCodecComponent
      Parameters:
      aElement - The root element of the report fragment of XML
      Throws:
      EPPDecodeException - Thrown if any errors occur during decoding.
    • encode

      public Element encode(Document aDocument) throws EPPEncodeException
      Append all data from the list of the list of available related domain names represented by EPPRelatedDomainExtName to given DOM Document
      Specified by:
      encode in interface EPPCodecComponent
      Parameters:
      aDocument - The DOM Document to append data to
      Returns:
      Encoded DOM Element
      Throws:
      EPPEncodeException - Thrown when errors occur during the encode attempt or if the instance is invalid.
    • equals

      public boolean equals(Object aObj)
      A deep comparison of this with another EPPRelatedDomainExtAvailable.
      Overrides:
      equals in class Object
      See Also:
    • addAvailableDomain

      public void addAvailableDomain(EPPRelatedDomainExtName aAvailableDomain)
      Adds a available domain represented by EPPRelatedDomainExtName to the list of available domains.
      Parameters:
      aAvailableDomain - Available domain to add to the list.
    • hasAvailableDomains

      public boolean hasAvailableDomains()
      Are there any available domains included in the list of available domains?
      Returns:
      true if the available domain list is not null and there is at least one available domain in the list; false otherwise.
    • getAvailableDomains

      public List<EPPRelatedDomainExtName> getAvailableDomains()
      Returns the list of available related domain names represented by EPPRelatedDomainExtName
      Returns:
      the relatedDomains
    • setAvailableDomains

      public void setAvailableDomains(List<EPPRelatedDomainExtName> relatedDomains)
      Sets the list of available related domain names represented by EPPRelatedDomainExtName
      Parameters:
      relatedDomains - the relatedDomains 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.