Class EPPServerValValidation
java.lang.Object
com.verisign.epp.codec.serverval.v01.EPPServerValValidation
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
EPPServerValValidation represents the result of an individual server
validation.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumValidation status enumeration with the values:
SUCCESS- Successful validationFAILED- Failed validation -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstant for the "validationData" local name -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPServerValValidation.EPPServerValValidation(String aType, EPPServerValValidation.Status aStatus) Constructor forEPPServerValValidationthat takes the required attributes.EPPServerValValidation(String aType, EPPServerValValidation.Status aStatus, Date aDate, EPPServerValValidationOperation aOperation, Date aLastSuccess, Date aFirstFailed, Date aLastFailed, String aReason) Constructor forEPPServerValValidationthat takes all attributes. -
Method Summary
Modifier and TypeMethodDescriptionclone()clone anEPPCodecComponent.voidDecode a DOM element tree to initialize the instance attributes.Encode instance into a DOM element tree.booleanCompare an instance ofEPPServerValValidationwith this instance.getDate()Gets the date and time when the server validation was executed.Gets the date and time when the server validation first failed.Gets the date and time when the server validation last failed.Gets the date and time when the server validation was last successful.Returns the XML namespace associated with theEPPCodecComponent.Gets the transform operation that triggered the server validationGets the reason for the server validation failure.Gets the validation status.getType()Gets the validation type.booleanhasDate()Is the validation date defined?booleanIs the first failed validation date defined?booleanIs the last failed validation date defined?booleanIs the last success validation date defined?booleanIs the operation defined?booleanIs the reason defined?voidSets the validation date.voidsetFirstFailed(Date aFirstFailed) Sets the first failed validation datevoidsetLastFailed(Date aLastFailed) Sets the last failed validation datevoidsetLastSuccess(Date aLastSuccess) Sets the last successful validation date.voidsetOperation(EPPServerValValidationOperation aOperation) Sets the transform operation that triggered the server validationvoidSets the reasonvoidsetStatus(EPPServerValValidation.Status aStatus) Sets the validation status.voidSets the validation type.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
Constant for the "validationData" local name- See Also:
-
-
Constructor Details
-
EPPServerValValidation
public EPPServerValValidation()Default constructor forEPPServerValValidation. -
EPPServerValValidation
Constructor forEPPServerValValidationthat takes the required attributes.- Parameters:
aType- Validation typeaStatus- Validation status
-
EPPServerValValidation
public EPPServerValValidation(String aType, EPPServerValValidation.Status aStatus, Date aDate, EPPServerValValidationOperation aOperation, Date aLastSuccess, Date aFirstFailed, Date aLastFailed, String aReason) Constructor forEPPServerValValidationthat takes all attributes.- Parameters:
aType- Validation typeaStatus- Validation statusaDate- Date and time when the server validation was executedaOperation- Operation that triggered validationaLastSuccess- Date and time when the server validation was last successfulaFirstFailed- Date and time when the server validation first failedaLastFailed- Date and time when the server validation last failedaReason- Reason for server validation failure
-
-
Method Details
-
getType
Gets the validation type.- Returns:
- Validation type if defined;
nullotherwise.
-
setType
Sets the validation type.- Parameters:
aType- Validation type
-
getStatus
Gets the validation status.- Returns:
- Validation status if defined;
nullotherwise.
-
setStatus
Sets the validation status.- Parameters:
aStatus- Validation status
-
hasDate
public boolean hasDate()Is the validation date defined?- Returns:
trueif the validation date is defined;falseotherwise.
-
getDate
Gets the date and time when the server validation was executed.- Returns:
- Validation date if defined;
nullotherwise.
-
setDate
Sets the validation date.- Parameters:
aDate- Validation date
-
hasOperation
public boolean hasOperation()Is the operation defined?- Returns:
trueif the operation is defined;falseotherwise.
-
getOperation
Gets the transform operation that triggered the server validation- Returns:
- The transform operation if defined;
nullotherwise.
-
setOperation
Sets the transform operation that triggered the server validation- Parameters:
aOperation- Transform operation that triggered the server validation
-
hasLastSuccess
public boolean hasLastSuccess()Is the last success validation date defined?- Returns:
trueif the last success validation date is defined;falseotherwise.
-
getLastSuccess
Gets the date and time when the server validation was last successful.- Returns:
- Last successful validation date if defined;
nullotherwise.
-
setLastSuccess
Sets the last successful validation date.- Parameters:
aLastSuccess- Last successful validation date
-
hasFirstFailed
public boolean hasFirstFailed()Is the first failed validation date defined?- Returns:
trueif the first failed validation date is defined;falseotherwise.
-
getFirstFailed
Gets the date and time when the server validation first failed.- Returns:
- First failed validation date if defined;
nullotherwise.
-
setFirstFailed
Sets the first failed validation date- Parameters:
aFirstFailed- First failed validation date
-
hasLastFailed
public boolean hasLastFailed()Is the last failed validation date defined?- Returns:
trueif the last failed validation date is defined;falseotherwise.
-
getLastFailed
Gets the date and time when the server validation last failed.- Returns:
- Last failed validation date if defined;
nullotherwise.
-
setLastFailed
Sets the last failed validation date- Parameters:
aLastFailed- Last failed validation date
-
hasReason
public boolean hasReason()Is the reason defined?- Returns:
trueif the reason is defined;falseotherwise.
-
getReason
Gets the reason for the server validation failure.- Returns:
- Reason if defined;
nullotherwise.
-
setReason
Sets the reason- Parameters:
aReason- Reason
-
encode
Encode instance into a DOM element tree. A DOM Document is passed as an argument and functions as a factory for DOM objects. The root element associated with the instance is created and each instance attribute is appended as a child node.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document, which acts is an Element factory- Returns:
- Element Root element associated with the object
- Throws:
EPPEncodeException- Error encodingEPPServerValValidation
-
decode
Decode a DOM element tree to initialize the instance attributes. TheaElementargument represents the root DOM element and is used to traverse the DOM nodes for instance attribute values.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement-Elementto decode- Throws:
EPPDecodeException- Error decodingElement
-
clone
clone anEPPCodecComponent.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of concrete
EPPServerValValidation - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
equals
Compare an instance ofEPPServerValValidationwith this instance. -
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-