org.mentawai.rule
Class BooleanRule

java.lang.Object
  extended by org.mentawai.rule.BasicRule
      extended by org.mentawai.rule.BooleanRule
All Implemented Interfaces:
Rule

public class BooleanRule
extends BasicRule

Author:
Sergio Oliveira Jr.

Constructor Summary
BooleanRule()
           
 
Method Summary
 boolean check(String value)
          Check a single input value from this action.
static BooleanRule getInstance()
           
 
Methods inherited from class org.mentawai.rule.BasicRule
check, getTokens
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BooleanRule

public BooleanRule()
Method Detail

getInstance

public static BooleanRule getInstance()

check

public boolean check(String value)
Description copied from class: BasicRule
Check a single input value from this action. Override this method to implement a basic rule for validation.

Specified by:
check in class BasicRule
Parameters:
value - The value to validate.
Returns:
true if the validation was successful.


Copyright © 2013. All Rights Reserved.