Package com.verisign.epp.codec.nv
Class EPPNameVerificationDocument
java.lang.Object
com.verisign.epp.codec.nv.EPPNameVerificationDocument
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
EPPNameVerificationDocument represents an individual
verification document that includes a type and the "base64"
content.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumFile Type that include:
PDF- PDF file typeJPG- JPG file type. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPNameVerificationDocument.EPPNameVerificationDocument(EPPNameVerificationDocument.FileType aFileType, String aFileContent) Constructor forEPPNameVerificationDocumentthat two attributes of the document of the file type and file content. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPNameVerificationDocument.voidDecode theEPPNameVerificationDocumentattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPNameVerificationDocumentinstance.booleanCompare an instance ofEPPNameVerificationDocumentwith this instance.Gets the "base64" file content.Gets the type of the document file.Returns the XML namespace associated with theEPPCodecComponent.voidsetFileContent(String aFileContent) Sets the "base64" file content.voidsetFileType(EPPNameVerificationDocument.FileType aFileType) Sets the type of the document file.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
Constant for the result local name- See Also:
-
ELM_NAME
Constant for the profile tag- See Also:
-
-
Constructor Details
-
EPPNameVerificationDocument
public EPPNameVerificationDocument()Default constructor forEPPNameVerificationDocument. -
EPPNameVerificationDocument
public EPPNameVerificationDocument(EPPNameVerificationDocument.FileType aFileType, 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 Details
-
getFileType
Gets the type of the document file.- Returns:
- Type of the document file.
-
setFileType
Sets the type of the document file.- Parameters:
aFileType- Type of the document file.
-
getFileContent
Gets the "base64" file content.- Returns:
- "base64" file content.
-
setFileContent
Sets the "base64" file content.- Parameters:
aFileContent- the fileContent to set
-
encode
Encode 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
Decode 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
Compare an instance ofEPPNameVerificationDocumentwith this instance. -
clone
CloneEPPNameVerificationDocument.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPNameVerificationDocument - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-