Class EPPRegistryServicesExt

java.lang.Object
com.verisign.epp.codec.registry.v02.EPPRegistryServicesExt
All Implemented Interfaces:
EPPCodecComponent, Serializable, Cloneable

public class EPPRegistryServicesExt extends Object implements EPPCodecComponent
Class that represents the "registry:svcExtension" element that contains a list of extension namespace URIs.
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Extension service URI that includes the URI value and a "required" attribute that indicates whether use of the extension service is required.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    XML local name for EPPRegistryServicesExt.
    static final String
    XML root tag for EPPRegistryServicesExt.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Adds an extension namespace URI to the list.
    Clone EPPRegistryServicesExt.
    void
    decode(Element aElement)
    Decode the EPPRegistryServicesExt attributes from the aElement DOM Element tree.
    encode(Document aDocument)
    Encode a DOM Element tree from the attributes of the EPPRegistryServicesExt instance.
    boolean
    equals(Object aObject)
    implements a deep EPPRegistryServicesExt compare.
    Gets the extension namespace URIs.
    Returns the XML namespace associated with the EPPCodecComponent.
    void
    setExtURIs(List aExtURIs)
    Sets the extension namespace URIs.
    Implementation of Object.toString, which will result in an indented XML String representation of the concrete EPPCodecComponent.

    Methods inherited from class java.lang.Object

    finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • EPPRegistryServicesExt

      public EPPRegistryServicesExt()
      Default constructor. At least one extension namespace URI must be defined prior to calling encode(Document).
  • Method Details

    • encode

      public Element encode(Document aDocument) throws EPPEncodeException
      Encode a DOM Element tree from the attributes of the EPPRegistryServicesExt 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 EPPRegistryServicesExt instance.
      Throws:
      EPPEncodeException - - Unable to encode EPPRegistryServices instance.
    • decode

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

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

      public boolean equals(Object aObject)
      implements a deep EPPRegistryServicesExt compare.
      Overrides:
      equals in class Object
      Parameters:
      aObject - EPPRegistryServicesExt instance to compare with
      Returns:
      true if this object is the same as the aObject argument; false otherwise
    • 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.
    • getExtURIs

      public List getExtURIs()
      Gets the extension namespace URIs.
      Returns:
      List of EPPRegistryServicesExt.EPPRegistryExtURI instances containing the extension namespace URIs.
    • setExtURIs

      public void setExtURIs(List aExtURIs)
      Sets the extension namespace URIs.
      Parameters:
      aExtURIs - List of EPPRegistryServicesExt.EPPRegistryExtURI instances containing the extension namespace URIs.
    • addExtURI

      public void addExtURI(EPPRegistryServicesExt.EPPRegistryExtURI aURI)
      Adds an extension namespace URI to the list.
      Parameters:
      aURI - Extension namespace URI to add to the list.
    • getNamespace

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