com.jaxfront.core.type
Class ValidationChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.jaxfront.core.type.ValidationChangeEvent
All Implemented Interfaces:
java.io.Serializable

public class ValidationChangeEvent
extends java.util.EventObject

This class represents a ValidationChangeEvent. ValidationChangeEvents are fired when validation errors occurs.

Version:
1.60
See Also:
Serialized Form

Method Summary
static ValidationChangeEvent domValidated(Document doc)
          Returns a ValidationChangeEvent if DOM has been validated
static ValidationChangeEvent exceptionOccured(Error error)
          Returns a ValidationChangeEvent if a validation exception occured.
static ValidationChangeEvent exceptionResolved(Error error)
          Returns a ValidationChangeEvent if a validation exception has been resolved.
static ValidationChangeEvent exceptionResolvedAll(Document doc)
          Returns a ValidationChangeEvent if all validation exceptions have been resolved.
 Error getError()
          Gets the current ValidationError.
 boolean isFullDOMValidation()
          Returns the state of the current validation error.
 boolean isOccuring()
          Returns the state of the current validation error.
 boolean isResolved()
          Returns the state of the current validation error.
 boolean isResolvedAll()
          Returns the state of all current validation errors.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

exceptionResolvedAll

public static ValidationChangeEvent exceptionResolvedAll(Document doc)
Returns a ValidationChangeEvent if all validation exceptions have been resolved.

Parameters:
doc - the current JAXFront document (DOM)
Returns:
a ValidationChangeEvent if all validation exceptions have been resolved

domValidated

public static ValidationChangeEvent domValidated(Document doc)
Returns a ValidationChangeEvent if DOM has been validated

Parameters:
doc - the current JAXFront document (DOM)

getError

public Error getError()
Gets the current ValidationError.

Returns:
the current ValidationError

isOccuring

public boolean isOccuring()
Returns the state of the current validation error.

Returns:
true, if the current validation exception is occuring, false otherwise

isFullDOMValidation

public boolean isFullDOMValidation()
Returns the state of the current validation error.

Returns:
true, if the current validation exception indicates a full dom validation

isResolved

public boolean isResolved()
Returns the state of the current validation error.

Returns:
true, if the current validation exception is resolved, false otherwise

isResolvedAll

public boolean isResolvedAll()
Returns the state of all current validation errors.

Returns:
true, if all current validation exceptions are resolved, false otherwise

exceptionOccured

public static ValidationChangeEvent exceptionOccured(Error error)
Returns a ValidationChangeEvent if a validation exception occured.

Parameters:
error - a validation error
Returns:
a ValidationChangeEvent if a validation exception occured

exceptionResolved

public static ValidationChangeEvent exceptionResolved(Error error)
Returns a ValidationChangeEvent if a validation exception has been resolved.

Parameters:
error - a validation error
Returns:
a ValidationChangeEvent if a validation exception has been resolved