Class EPPServerValValidation

java.lang.Object
com.verisign.epp.codec.serverval.v01.EPPServerValValidation
All Implemented Interfaces:
EPPCodecComponent, Serializable, Cloneable

public class EPPServerValValidation extends Object implements EPPCodecComponent
EPPServerValValidation represents the result of an individual server validation.
See Also:
  • Field Details

    • ELM_LOCALNAME

      public static final String ELM_LOCALNAME
      Constant for the "validationData" local name
      See Also:
  • Constructor Details

    • EPPServerValValidation

      public EPPServerValValidation()
      Default constructor for EPPServerValValidation.
    • EPPServerValValidation

      public EPPServerValValidation(String aType, EPPServerValValidation.Status aStatus)
      Constructor for EPPServerValValidation that takes the required attributes.
      Parameters:
      aType - Validation type
      aStatus - Validation status
    • EPPServerValValidation

      public EPPServerValValidation(String aType, EPPServerValValidation.Status aStatus, Date aDate, EPPServerValValidationOperation aOperation, Date aLastSuccess, Date aFirstFailed, Date aLastFailed, String aReason)
      Constructor for EPPServerValValidation that takes all attributes.
      Parameters:
      aType - Validation type
      aStatus - Validation status
      aDate - Date and time when the server validation was executed
      aOperation - Operation that triggered validation
      aLastSuccess - Date and time when the server validation was last successful
      aFirstFailed - Date and time when the server validation first failed
      aLastFailed - Date and time when the server validation last failed
      aReason - Reason for server validation failure
  • Method Details

    • getType

      public String getType()
      Gets the validation type.
      Returns:
      Validation type if defined; null otherwise.
    • setType

      public void setType(String aType)
      Sets the validation type.
      Parameters:
      aType - Validation type
    • getStatus

      public EPPServerValValidation.Status getStatus()
      Gets the validation status.
      Returns:
      Validation status if defined; null otherwise.
    • setStatus

      public void setStatus(EPPServerValValidation.Status aStatus)
      Sets the validation status.
      Parameters:
      aStatus - Validation status
    • hasDate

      public boolean hasDate()
      Is the validation date defined?
      Returns:
      true if the validation date is defined; false otherwise.
    • getDate

      public Date getDate()
      Gets the date and time when the server validation was executed.
      Returns:
      Validation date if defined; null otherwise.
    • setDate

      public void setDate(Date aDate)
      Sets the validation date.
      Parameters:
      aDate - Validation date
    • hasOperation

      public boolean hasOperation()
      Is the operation defined?
      Returns:
      true if the operation is defined; false otherwise.
    • getOperation

      public EPPServerValValidationOperation getOperation()
      Gets the transform operation that triggered the server validation
      Returns:
      The transform operation if defined; null otherwise.
    • setOperation

      public void setOperation(EPPServerValValidationOperation aOperation)
      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:
      true if the last success validation date is defined; false otherwise.
    • getLastSuccess

      public Date getLastSuccess()
      Gets the date and time when the server validation was last successful.
      Returns:
      Last successful validation date if defined; null otherwise.
    • setLastSuccess

      public void setLastSuccess(Date aLastSuccess)
      Sets the last successful validation date.
      Parameters:
      aLastSuccess - Last successful validation date
    • hasFirstFailed

      public boolean hasFirstFailed()
      Is the first failed validation date defined?
      Returns:
      true if the first failed validation date is defined; false otherwise.
    • getFirstFailed

      public Date getFirstFailed()
      Gets the date and time when the server validation first failed.
      Returns:
      First failed validation date if defined; null otherwise.
    • setFirstFailed

      public void setFirstFailed(Date aFirstFailed)
      Sets the first failed validation date
      Parameters:
      aFirstFailed - First failed validation date
    • hasLastFailed

      public boolean hasLastFailed()
      Is the last failed validation date defined?
      Returns:
      true if the last failed validation date is defined; false otherwise.
    • getLastFailed

      public Date getLastFailed()
      Gets the date and time when the server validation last failed.
      Returns:
      Last failed validation date if defined; null otherwise.
    • setLastFailed

      public void setLastFailed(Date aLastFailed)
      Sets the last failed validation date
      Parameters:
      aLastFailed - Last failed validation date
    • hasReason

      public boolean hasReason()
      Is the reason defined?
      Returns:
      true if the reason is defined; false otherwise.
    • getReason

      public String getReason()
      Gets the reason for the server validation failure.
      Returns:
      Reason if defined; null otherwise.
    • setReason

      public void setReason(String aReason)
      Sets the reason
      Parameters:
      aReason - Reason
    • encode

      public Element encode(Document aDocument) throws EPPEncodeException
      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:
      encode in interface EPPCodecComponent
      Parameters:
      aDocument - DOM Document, which acts is an Element factory
      Returns:
      Element Root element associated with the object
      Throws:
      EPPEncodeException - Error encoding EPPServerValValidation
    • decode

      public void decode(Element aElement) throws EPPDecodeException
      Decode a DOM element tree to initialize the instance attributes. The aElement argument represents the root DOM element and is used to traverse the DOM nodes for instance attribute values.
      Specified by:
      decode in interface EPPCodecComponent
      Parameters:
      aElement - Element to decode
      Throws:
      EPPDecodeException - Error decoding Element
    • clone

      public Object clone() throws CloneNotSupportedException
      clone an EPPCodecComponent.
      Specified by:
      clone in interface EPPCodecComponent
      Overrides:
      clone in class Object
      Returns:
      clone of concrete EPPServerValValidation
      Throws:
      CloneNotSupportedException - standard Object.clone exception
    • toString

      public String toString()
      Implementation of Object.toString, which will result in an indented XML String representation of the concrete EPPCodecComponent.
      Overrides:
      toString in class Object
      Returns:
      Indented XML String if successful; ERROR otherwise.
    • equals

      public boolean equals(Object aObject)
      Compare an instance of EPPServerValValidation with this instance.
      Overrides:
      equals in class Object
      Parameters:
      aObject - Object to compare with.
      Returns:
      true if equal; false otherwise.
    • getNamespace

      public String getNamespace()
      Returns the XML namespace associated with the EPPCodecComponent.
      Specified by:
      getNamespace in interface EPPCodecComponent
      Returns:
      XML namespace for the EPPCodecComponent.