Class EPPValidateCheckResult
java.lang.Object
com.verisign.epp.codec.validate.v02.EPPValidateCheckResult
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
EPPValidateCheckResult represents the result of an individual contact
validation. The attributes of EPPValidateCheckResult include the
contact identifier, the result code, and zero or more key value pairs.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPValidateCheckResult.EPPValidateCheckResult(String aId, int aCode) Constructor forEPPValidateCheckResultthat includes the required attributes of the contact identifier and the result code. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddKeyValue(EPPValidateKeyValue aKeyValue) Adds a key value pair to the list of key value pairs.clone()CloneEPPValidateCheckResult.voidDecode theEPPValidateCheckResultattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPValidateCheckResultinstance.booleanCompare an instance ofEPPValidateCheckResultwith this instance.intgetCode()Gets the result code.getId()Gets the contact identifier.Gets the full list of key value pairs.Returns the XML namespace associated with theEPPCodecComponent.voidsetCode(int aCode) Sets the result code.voidSets the contact identifier.voidsetKeyValues(List<EPPValidateKeyValue> aKeyValues) Sets the full list of key value pairs.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 result tag- See Also:
-
-
Constructor Details
-
EPPValidateCheckResult
public EPPValidateCheckResult()Default constructor forEPPValidateCheckResult. -
EPPValidateCheckResult
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 Details
-
getId
Gets the contact identifier.- Returns:
- The contact identifier if defined;
nullotherwise.
-
setId
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
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
Sets the full list of key value pairs. A key value pair is used to define specific validation errors.- Parameters:
aKeyValues- List ofEPPValidateKeyValueinstances.
-
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
Encode 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
Decode 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
Compare an instance ofEPPValidateCheckResultwith this instance. -
clone
CloneEPPValidateCheckResult.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPValidateCheckResult - 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.
-