adapforms.runtime.adaptations
Class ValidationAdaptation

java.lang.Object
  extended by adapforms.runtime.adaptations.ElementAdaptation
      extended by adapforms.runtime.adaptations.ValidationAdaptation
All Implemented Interfaces:
Adaptation

public class ValidationAdaptation
extends ElementAdaptation

Changing the validation state (problem indication) of a form element.

Author:
Henrik Gammelmark, geemark@cs.au.dk

Constructor Summary
ValidationAdaptation(FormPath path, java.util.List<ValidationProblem> errors)
           
 
Method Summary
 java.util.List<ValidationProblem> getProblems()
          List all problems reported for the element.
 boolean isValid()
          Whether the element should be marked as being valid in the current form state.
 java.lang.String toString()
           
 
Methods inherited from class adapforms.runtime.adaptations.ElementAdaptation
getElementPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValidationAdaptation

public ValidationAdaptation(FormPath path,
                            java.util.List<ValidationProblem> errors)
Method Detail

isValid

public boolean isValid()
Whether the element should be marked as being valid in the current form state.


getProblems

public java.util.List<ValidationProblem> getProblems()
List all problems reported for the element. if no errors were found, the list will be either null or empty.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object