Class EPPValidateCheckResult
- java.lang.Object
-
- com.verisign.epp.codec.validate.v02.EPPValidateCheckResult
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPValidateCheckResult extends java.lang.Object implements EPPCodecComponent
EPPValidateCheckResultrepresents the result of an individual contact validation. The attributes ofEPPValidateCheckResultinclude the contact identifier, the result code, and zero or more key value pairs.- See Also:
EPPValidateCheckResp, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEConstant for the result local namestatic java.lang.StringELM_NAMEConstant for the result tag
-
Constructor Summary
Constructors Constructor Description EPPValidateCheckResult()Default constructor forEPPValidateCheckResult.EPPValidateCheckResult(java.lang.String aId, int aCode)Constructor forEPPValidateCheckResultthat includes the required attributes of the contact identifier and the result code.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddKeyValue(EPPValidateKeyValue aKeyValue)Adds a key value pair to the list of key value pairs.java.lang.Objectclone()CloneEPPValidateCheckResult.voiddecode(org.w3c.dom.Element aElement)Decode theEPPValidateCheckResultattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPValidateCheckResultinstance.booleanequals(java.lang.Object aObject)Compare an instance ofEPPValidateCheckResultwith this instance.intgetCode()Gets the result code.java.lang.StringgetId()Gets the contact identifier.java.util.List<EPPValidateKeyValue>getKeyValues()Gets the full list of key value pairs.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.voidsetCode(int aCode)Sets the result code.voidsetId(java.lang.String aId)Sets the contact identifier.voidsetKeyValues(java.util.List<EPPValidateKeyValue> aKeyValues)Sets the full list of key value pairs.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 result tag- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPValidateCheckResult
public EPPValidateCheckResult()
Default constructor forEPPValidateCheckResult.
-
EPPValidateCheckResult
public EPPValidateCheckResult(java.lang.String aId, int aCode)Constructor forEPPValidateCheckResultthat includes the required attributes of the contact identifier and the result code.- Parameters:
aId- Contact identifieraCode- Must be one of theEPPResultresult code constant values.
-
-
Method Detail
-
getId
public java.lang.String getId()
Gets the contact identifier.- Returns:
- The contact identifier if defined;
nullotherwise.
-
setId
public void setId(java.lang.String aId)
Sets the contact identifier.- Parameters:
aId- The contact identifier
-
getCode
public int getCode()
Gets the result code.- Returns:
- Must be one of the
EPPResultresult code constant values if defined;-1otherwise.
-
setCode
public void setCode(int aCode)
Sets the result code.- Parameters:
aCode- Must be one of theEPPResultresult code constant values.
-
addKeyValue
public void addKeyValue(EPPValidateKeyValue aKeyValue)
Adds a key value pair to the list of key value pairs. The key value pair is used to defined specific validation errors.- Parameters:
aKeyValue- Key value pair to add to the list
-
setKeyValues
public void setKeyValues(java.util.List<EPPValidateKeyValue> aKeyValues)
Sets the full list of key value pairs. A key value pair is used to define specific validation errors.- Parameters:
aKeyValues- List ofEPPValidateKeyValueinstances.
-
getKeyValues
public java.util.List<EPPValidateKeyValue> getKeyValues()
Gets the full list of key value pairs. A key value pair is used to define specific validation errors.- Returns:
- List of
EPPValidateKeyValueinstances.
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPValidateCheckResultinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPValidateCheckResultinstance. - Throws:
EPPEncodeException- Unable to encodeEPPValidateCheckResultinstance.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPValidateCheckResultattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPValidateCheckResultfrom.- Throws:
EPPDecodeException- Unable to decode aElement.
-
equals
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPValidateCheckResultwith 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.CloneNotSupportedExceptionCloneEPPValidateCheckResult.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPValidateCheckResult - 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.
-
-