Class EPPCoaExtValue

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

public class EPPCoaExtValue extends Object implements EPPCodecComponent
EPPCodecComponent that encodes and decodes a COA Value Tag.

Title: EPP 1.0 Client Object Attribute - Value

Description: The Value tag represents the value of a Client Object Attribute. It contains simply the Client Object Attribute value as text, and is only used in the company of a Key tag which identifies it.

Copyright: Copyright (c) 2011

Company: VeriSign

See Also:
  • Field Details

  • Constructor Details

    • EPPCoaExtValue

      public EPPCoaExtValue()
      Create an EPPCoaExtValue instance
    • EPPCoaExtValue

      public EPPCoaExtValue(String aValue)
      Create a EPPCoaExtValue intance with the given value
      Parameters:
      aValue - the value
  • Method Details

    • clone

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

      public Element encode(Document aDocument) throws EPPEncodeException
      Sets all this instance's data in the given XML document
      Specified by:
      encode in interface EPPCodecComponent
      Parameters:
      aDocument - a DOM Document to attach data to.
      Returns:
      The root element of this component.
      Throws:
      EPPEncodeException - Thrown if any errors prevent encoding.
    • decode

      public void decode(Element aElement) throws EPPDecodeException
      Decode the EPPCoaExtValue component
      Specified by:
      decode in interface EPPCodecComponent
      Parameters:
      aElement - DOM Element to decode
      Throws:
      EPPDecodeException - On decoding error
    • equals

      public boolean equals(Object aObject)
      implements a deep EPPCoaExtValue compare.
      Overrides:
      equals in class Object
      Parameters:
      aObject - EPPCoaExtValue instance to compare with
      Returns:
      true if equal false otherwise
    • getValue

      public String getValue()
      Returns the value to a key/value pair.
      Returns:
      the value
    • setValue

      public void setValue(String aValue)
      Sets the Value
      Parameters:
      aValue - - The value to a key/value pair
    • getNamespace

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