public boolean validate(String value,String rule){
  return (value.equalsIgnoreCase(rule));
}

public boolean validate ( String value , String rule ) { return ( value . equalsIgnoreCase ( rule ) ) ; }
determines whether the specified string is a valid boolean value
