Class EPPNameVerificationDocument

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

public class EPPNameVerificationDocument extends Object implements EPPCodecComponent
EPPNameVerificationDocument represents an individual verification document that includes a type and the "base64" content.
See Also:
  • Field Details

  • Constructor Details

    • EPPNameVerificationDocument

      public EPPNameVerificationDocument()
      Default constructor for EPPNameVerificationDocument.
    • EPPNameVerificationDocument

      public EPPNameVerificationDocument(EPPNameVerificationDocument.FileType aFileType, String aFileContent)
      Constructor for EPPNameVerificationDocument that two attributes of the document of the file type and file content.
      Parameters:
      aFileType - Type of the file
      aFileContent - "base64" encoded content of the file
  • Method Details

    • getFileType

      Gets the type of the document file.
      Returns:
      Type of the document file.
    • setFileType

      public void setFileType(EPPNameVerificationDocument.FileType aFileType)
      Sets the type of the document file.
      Parameters:
      aFileType - Type of the document file.
    • getFileContent

      public String getFileContent()
      Gets the "base64" file content.
      Returns:
      "base64" file content.
    • setFileContent

      public void setFileContent(String aFileContent)
      Sets the "base64" file content.
      Parameters:
      aFileContent - the fileContent to set
    • encode

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

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

      public boolean equals(Object aObject)
      Compare an instance of EPPNameVerificationDocument with this instance.
      Overrides:
      equals in class Object
      Parameters:
      aObject - Object to compare with.
      Returns:
      true if equal; false otherwise.
    • clone

      public Object clone() throws CloneNotSupportedException
      Clone EPPNameVerificationDocument.
      Specified by:
      clone in interface EPPCodecComponent
      Overrides:
      clone in class Object
      Returns:
      clone of EPPNameVerificationDocument
      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.
    • getNamespace

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