public class EPPNameVerificationDocument extends java.lang.Object implements EPPCodecComponent
EPPNameVerificationDocument represents an individual
verification document that includes a type and the "base64"
content.| Modifier and Type | Class and Description |
|---|---|
static class |
EPPNameVerificationDocument.FileType
File Type that include:
PDF - PDF file type
JPG - JPG file type.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELM_LOCALNAME
Constant for the result local name
|
static java.lang.String |
ELM_NAME
Constant for the profile tag
|
| Constructor and Description |
|---|
EPPNameVerificationDocument()
Default constructor for
EPPNameVerificationDocument. |
EPPNameVerificationDocument(EPPNameVerificationDocument.FileType aFileType,
java.lang.String aFileContent)
Constructor for
EPPNameVerificationDocument that two
attributes of the document of the file type and file content. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Clone
EPPNameVerificationDocument. |
void |
decode(org.w3c.dom.Element aElement)
Decode the
EPPNameVerificationDocument attributes from the
aElement DOM Element tree. |
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
Encode a DOM Element tree from the attributes of the
EPPNameVerificationDocument instance. |
boolean |
equals(java.lang.Object aObject)
Compare an instance of
EPPNameVerificationDocument with this
instance. |
java.lang.String |
getFileContent()
Gets the "base64" file content.
|
EPPNameVerificationDocument.FileType |
getFileType()
Gets the type of the document file.
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent. |
void |
setFileContent(java.lang.String aFileContent)
Sets the "base64" file content.
|
void |
setFileType(EPPNameVerificationDocument.FileType aFileType)
Sets the type of the document file.
|
java.lang.String |
toString()
Implementation of
Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent. |
public static final java.lang.String ELM_LOCALNAME
public static final java.lang.String ELM_NAME
public EPPNameVerificationDocument()
EPPNameVerificationDocument.public EPPNameVerificationDocument(EPPNameVerificationDocument.FileType aFileType, java.lang.String aFileContent)
EPPNameVerificationDocument that two
attributes of the document of the file type and file content.aFileType - Type of the fileaFileContent - "base64" encoded content of the filepublic EPPNameVerificationDocument.FileType getFileType()
public void setFileType(EPPNameVerificationDocument.FileType aFileType)
aFileType - Type of the document file.public java.lang.String getFileContent()
public void setFileContent(java.lang.String aFileContent)
aFileContent - the fileContent to setpublic org.w3c.dom.Element encode(org.w3c.dom.Document aDocument)
throws EPPEncodeException
EPPNameVerificationDocument instance.encode in interface EPPCodecComponentaDocument - DOM Document that is being built. Used as an Element factory.EPPNameVerificationDocument instance.EPPEncodeException - Unable to encode EPPNameVerificationDocument
instance.public void decode(org.w3c.dom.Element aElement)
throws EPPDecodeException
EPPNameVerificationDocument attributes from the
aElement DOM Element tree.decode in interface EPPCodecComponentaElement - Root DOM Element to decode
EPPNameVerificationDocument from.EPPDecodeException - Unable to decode aElement.public boolean equals(java.lang.Object aObject)
EPPNameVerificationDocument with this
instance.equals in class java.lang.ObjectaObject - Object to compare with.true if equal; false otherwise.public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPNameVerificationDocument.clone in interface EPPCodecComponentclone in class java.lang.ObjectEPPNameVerificationDocumentjava.lang.CloneNotSupportedException - standard Object.clone exceptionpublic java.lang.String toString()
Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent.toString in class java.lang.ObjectString if successful;
ERROR otherwise.public java.lang.String getNamespace()
EPPCodecComponent.getNamespace in interface EPPCodecComponentEPPCodecComponent.