Package com.verisign.epp.codec.emailFwd
Class EPPEmailFwdCheckResult
- java.lang.Object
-
- com.verisign.epp.codec.emailFwd.EPPEmailFwdCheckResult
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPEmailFwdCheckResult extends java.lang.Object implements EPPCodecComponent
EPPEmailFwdCheckResultrepresents the result of an individual emailFwd name ping. The attributes ofEPPEmailFwdCheckResultinclude the emailFwd name and a boolean value indicating if the emailFwd name is already available.emailFwd reasonmust be set before invokingencodeif the available flag is set tofalse.- See Also:
EPPEmailFwdCheckResp, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EPPEmailFwdCheckResult()Default constructor forEPPEmailFwdCheckResult.EPPEmailFwdCheckResult(java.lang.String aName, boolean aIsAvailable)Constructor forEPPEmailFwdCheckResultthat includes the emailFwd name and the is available flag.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPEmailFwdCheckResult.voiddecode(org.w3c.dom.Element aElement)Decode theEPPEmailFwdCheckResultattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPEmailFwdCheckResultinstance.booleanequals(java.lang.Object aObject)Compare an instance ofEPPEmailFwdPingRespwith this instance.java.lang.StringgetEmailFwdReason()Gets emailFwd reason.java.lang.StringgetLanguage()Sets emailFwd reason to check.java.lang.StringgetName()Gets the emailFwd name associated with the result.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.booleanisAvailable()Gets if the emailFwd associated withEPPEmailFwdCheckResultis available.voidsetEmailFwdReason(java.lang.String aReason)Sets emailFwd reason.voidsetIsAvailable(boolean aIsAvailable)Sets if the emailFwd associated withEPPEmailFwdCheckResultis available.voidsetLanguage(java.lang.String aLang)Sets language attribute.voidsetName(java.lang.String aName)Sets the emailFwd name associated with the result.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Constructor Detail
-
EPPEmailFwdCheckResult
public EPPEmailFwdCheckResult()
Default constructor forEPPEmailFwdCheckResult. the defaults include the following:
- name is set to
null - available is set to
true
The name must be set before invokingencode. - name is set to
-
EPPEmailFwdCheckResult
public EPPEmailFwdCheckResult(java.lang.String aName, boolean aIsAvailable)Constructor forEPPEmailFwdCheckResultthat includes the emailFwd name and the is available flag.- Parameters:
aName- EmailFwd name associated with resultaIsAvailable- Is the emailFwd name available?
-
-
Method Detail
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPEmailFwdCheckResult.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPEmailFwdCheckResult - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPEmailFwdCheckResultattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPEmailFwdCheckResultfrom.- Throws:
EPPDecodeException- Unable to decode aElement.
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPEmailFwdCheckResultinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPEmailFwdCheckResultinstance. - Throws:
EPPEncodeException- Unable to encodeEPPEmailFwdCheckResultinstance.
-
equals
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPEmailFwdPingRespwith this instance.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject- Object to compare with.- Returns:
trueif the objects are equal;falseotherwise.
-
getEmailFwdReason
public java.lang.String getEmailFwdReason()
Gets emailFwd reason.- Returns:
- String of emailFwd reason if defined;
nullotherwise.
-
getLanguage
public java.lang.String getLanguage()
Sets emailFwd reason to check.- Returns:
- String of emailFwd reason language if defined;
nuillotherwise.
-
getName
public java.lang.String getName()
Gets the emailFwd name associated with the result.- Returns:
- EmailFwd name associated with the result if defined;
nullotherwise.
-
isAvailable
public boolean isAvailable()
Gets if the emailFwd associated withEPPEmailFwdCheckResultis available.- Returns:
- Is the emailFwd available?
-
setEmailFwdReason
public void setEmailFwdReason(java.lang.String aReason)
Sets emailFwd reason.- Parameters:
aReason- EmailFwd Reason.
-
setIsAvailable
public void setIsAvailable(boolean aIsAvailable)
Sets if the emailFwd associated withEPPEmailFwdCheckResultis available.- Parameters:
aIsAvailable- Is the emailFwd available?
-
setLanguage
public void setLanguage(java.lang.String aLang)
Sets language attribute.- Parameters:
aLang- Sets emailFwd reason language attribute.
-
setName
public void setName(java.lang.String aName)
Sets the emailFwd name associated with the result.- Parameters:
aName- EmailFwd Name associated with the result.
-
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.
-
-