Class EPPServerValData

java.lang.Object
com.verisign.epp.codec.serverval.v01.EPPServerValData
All Implemented Interfaces:
EPPCodecComponent, Serializable, Cloneable

public class EPPServerValData extends Object implements EPPCodecComponent
The Server Validation extension used in multiple responses. The create, delete, renew, transfer, and update responses include the extension for synchrononous validation. The info response includes the extension upon request using the empty info command extension and in a poll message for asynchronous server validation.
See Also:
  • Field Details

    • ELM_LOCALNAME

      public static final String ELM_LOCALNAME
      Constant for the "validationData" local name
      See Also:
    • ELM_NAME

      public static String ELM_NAME
      XML root tag for EPPServerValData.
  • Constructor Details

    • EPPServerValData

      public EPPServerValData()
      Default constructor for EPPServerValExtension.
    • EPPServerValData

      public EPPServerValData(EPPServerValValidation aValidation)
      Constructor for EPPServerValExtension that takes a single validation.
      Parameters:
      aValidation - A single validation
    • EPPServerValData

      public EPPServerValData(List<EPPServerValValidation> aValidations)
      Constructor for EPPServerValExtension with a list of validations.
      Parameters:
      aValidations - A list of validations
  • Method Details

    • hasValidations

      public boolean hasValidations()
      Are the validations defined?
      Returns:
      true if the validations are defined; false otherwise.
    • getValidations

      public List<EPPServerValValidation> getValidations()
      Gets the list of validations if defined.
      Returns:
      List of validations if defined; empty list otherwise.
    • addValidation

      public void addValidation(EPPServerValValidation aValidation)
      Adds an validation to the list of validations.
      Parameters:
      aValidation - The validation to add.
    • setValidations

      public void setValidations(List<EPPServerValValidation> aValidations)
      Sets the list of validations.
      Parameters:
      aValidations - The validations to set.
    • encode

      public Element encode(Document aDocument) throws EPPEncodeException
      Encode instance into a DOM element tree. A DOM Document is passed as an argument and functions as a factory for DOM objects. The root element associated with the instance is created and each instance attribute is appended as a child node.
      Specified by:
      encode in interface EPPCodecComponent
      Parameters:
      aDocument - DOM Document, which acts is an Element factory
      Returns:
      Element Root element associated with the object
      Throws:
      EPPEncodeException - Error encoding EPPServerValExtension
    • decode

      public void decode(Element aElement) throws EPPDecodeException
      Decode a DOM element tree to initialize the instance attributes. The aElement argument represents the root DOM element and is used to traverse the DOM nodes for instance attribute values.
      Specified by:
      decode in interface EPPCodecComponent
      Parameters:
      aElement - Element to decode
      Throws:
      EPPDecodeException - Error decoding Element
    • clone

      public Object clone() throws CloneNotSupportedException
      clone an EPPCodecComponent.
      Specified by:
      clone in interface EPPCodecComponent
      Overrides:
      clone in class Object
      Returns:
      clone of concrete EPPServerValExtension
      Throws:
      CloneNotSupportedException - standard Object.clone exception
    • 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.
    • equals

      public boolean equals(Object aObject)
      Compare an instance of EPPServerValExtension with this instance.
      Overrides:
      equals in class Object
      Parameters:
      aObject - Object to compare with.
      Returns:
      true if equal; false 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.