Class EPPRegistryCustomData

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ELM_NAME
      XML Element Name of EPPRegistryCustomData root element.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addKeyValue​(EPPRegistryKeyValue keyValue)
      Add one key/value pair to existing key/value pairs.
      java.lang.Object clone()
      Clone EPPRegistryCustomData.
      void decode​(org.w3c.dom.Element aElement)
      Decode the EPPRegistryCustomData 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 EPPRegistryCustomData instance.
      boolean equals​(java.lang.Object aObject)
      implements a deep EPPRegistryCustomData compare.
      java.util.List getKeyValues()
      Get the custom key/value pairs.
      java.lang.String getNamespace()
      Returns the XML namespace associated with the EPPCodecComponent.
      void setKeyValues​(java.util.List keyValues)
      Set the custom key/value pairs.
      java.lang.String toString()
      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 Detail

      • ELM_NAME

        public static final java.lang.String ELM_NAME
        XML Element Name of EPPRegistryCustomData root element.
        See Also:
        Constant Field Values
    • Constructor Detail

      • EPPRegistryCustomData

        public EPPRegistryCustomData()
    • Method Detail

      • encode

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

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

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

        public boolean equals​(java.lang.Object aObject)
        implements a deep EPPRegistryCustomData compare.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        aObject - EPPRegistryCustomData instance to compare with
        Returns:
        true if this object is the same as the aObject argument; false otherwise
      • toString

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

        public java.util.List getKeyValues()
        Get the custom key/value pairs.
        Returns:
        List of key/value pair, instance of EPPRegistryKeyValue
      • setKeyValues

        public void setKeyValues​(java.util.List keyValues)
        Set the custom key/value pairs.
        Parameters:
        keyValues - List of key/value pair, instance of EPPRegistryKeyValue
      • addKeyValue

        public void addKeyValue​(EPPRegistryKeyValue keyValue)
        Add one key/value pair to existing key/value pairs.
        Parameters:
        keyValue - key/value pair
      • getNamespace

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