Package com.verisign.epp.codec.nv
Class EPPNameVerificationDocument
- java.lang.Object
-
- com.verisign.epp.codec.nv.EPPNameVerificationDocument
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPNameVerificationDocument extends java.lang.Object implements EPPCodecComponent
EPPNameVerificationDocumentrepresents an individual verification document that includes a type and the "base64" content.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEPPNameVerificationDocument.FileTypeFile Type that include:
PDF- PDF file typeJPG- JPG file type.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEConstant for the result local namestatic java.lang.StringELM_NAMEConstant for the profile tag
-
Constructor Summary
Constructors Constructor Description EPPNameVerificationDocument()Default constructor forEPPNameVerificationDocument.EPPNameVerificationDocument(EPPNameVerificationDocument.FileType aFileType, java.lang.String aFileContent)Constructor forEPPNameVerificationDocumentthat two attributes of the document of the file type and file content.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPNameVerificationDocument.voiddecode(org.w3c.dom.Element aElement)Decode theEPPNameVerificationDocumentattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPNameVerificationDocumentinstance.booleanequals(java.lang.Object aObject)Compare an instance ofEPPNameVerificationDocumentwith this instance.java.lang.StringgetFileContent()Gets the "base64" file content.EPPNameVerificationDocument.FileTypegetFileType()Gets the type of the document file.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.voidsetFileContent(java.lang.String aFileContent)Sets the "base64" file content.voidsetFileType(EPPNameVerificationDocument.FileType aFileType)Sets the type of the document file.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Field Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
Constant for the result local name- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
Constant for the profile tag- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPNameVerificationDocument
public EPPNameVerificationDocument()
Default constructor forEPPNameVerificationDocument.
-
EPPNameVerificationDocument
public EPPNameVerificationDocument(EPPNameVerificationDocument.FileType aFileType, java.lang.String aFileContent)
Constructor forEPPNameVerificationDocumentthat two attributes of the document of the file type and file content.- Parameters:
aFileType- Type of the fileaFileContent- "base64" encoded content of the file
-
-
Method Detail
-
getFileType
public EPPNameVerificationDocument.FileType 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 java.lang.String getFileContent()
Gets the "base64" file content.- Returns:
- "base64" file content.
-
setFileContent
public void setFileContent(java.lang.String aFileContent)
Sets the "base64" file content.- Parameters:
aFileContent- the fileContent to set
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPNameVerificationDocumentinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPNameVerificationDocumentinstance. - Throws:
EPPEncodeException- Unable to encodeEPPNameVerificationDocumentinstance.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPNameVerificationDocumentattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPNameVerificationDocumentfrom.- Throws:
EPPDecodeException- Unable to decode aElement.
-
equals
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPNameVerificationDocumentwith this instance.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject- Object to compare with.- Returns:
trueif equal;falseotherwise.
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPNameVerificationDocument.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPNameVerificationDocument - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
toString
public java.lang.String toString()
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classjava.lang.Object- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-