wheel.components
Class ValidationRule

java.lang.Object
  extended by wheel.components.ValidationRule

public class ValidationRule
extends java.lang.Object

Represents a validation rule that is attatched to a FormElement. A ValidationRule consists of an MVEL-expression and an error message to display if the rule fails.

Author:
Henri Frilund

Method Summary
 java.lang.String getElExpression()
          Returns the EL-expression for this rule.
 java.lang.String getMessage()
          Returns the error message for this rule.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getElExpression

public java.lang.String getElExpression()
Returns the EL-expression for this rule.

Returns:

getMessage

public java.lang.String getMessage()
Returns the error message for this rule. Doesn't evaluate the message (call eval() method, that is).

Returns:


Copyright © 2007-2008. All Rights Reserved.