net.sf.yavtags
Enum RuleType

java.lang.Object
  extended by java.lang.Enum<RuleType>
      extended by net.sf.yavtags.RuleType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<RuleType>

public enum RuleType
extends java.lang.Enum<RuleType>


Enum Constant Summary
ALNUMHYPHEN
           
ALNUMHYPHENAT
           
ALPHABETIC
           
ALPHANUMERIC
           
ALPHASPACE
           
AND
           
ANDOR_OPERATOR
           
CUSTOM
           
DATE
           
DATE_LE
           
DATE_LT
           
DOUBLE
           
EMAIL
           
EMPTY
           
EQUAL
           
IMPLIES
           
INTEGER
           
KEYPRESS
           
MASK
           
MAXLENGTH
           
MINLENGTH
           
NOTEQUAL
           
NUMERIC
           
NUMRANGE
           
OR
           
POSTCONDITION
           
PRECONDITION
           
REGEXP
           
REQUIRED
           
 
Method Summary
static boolean isPseudoRule(YavRule rule)
          Returns true if the object supplied has class AndOrOperator, PostCondition or PreCondition.
static RuleType parse(java.lang.String rule, YavConfig yavConfig)
           
static RuleType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static RuleType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ALNUMHYPHEN

public static final RuleType ALNUMHYPHEN

ALNUMHYPHENAT

public static final RuleType ALNUMHYPHENAT

ALPHABETIC

public static final RuleType ALPHABETIC

ALPHANUMERIC

public static final RuleType ALPHANUMERIC

ALPHASPACE

public static final RuleType ALPHASPACE

AND

public static final RuleType AND

ANDOR_OPERATOR

public static final RuleType ANDOR_OPERATOR

CUSTOM

public static final RuleType CUSTOM

DATE

public static final RuleType DATE

DATE_LE

public static final RuleType DATE_LE

DATE_LT

public static final RuleType DATE_LT

DOUBLE

public static final RuleType DOUBLE

EMAIL

public static final RuleType EMAIL

EMPTY

public static final RuleType EMPTY

EQUAL

public static final RuleType EQUAL

IMPLIES

public static final RuleType IMPLIES

INTEGER

public static final RuleType INTEGER

KEYPRESS

public static final RuleType KEYPRESS

MASK

public static final RuleType MASK

MAXLENGTH

public static final RuleType MAXLENGTH

MINLENGTH

public static final RuleType MINLENGTH

NOTEQUAL

public static final RuleType NOTEQUAL

NUMERIC

public static final RuleType NUMERIC

NUMRANGE

public static final RuleType NUMRANGE

OR

public static final RuleType OR

POSTCONDITION

public static final RuleType POSTCONDITION

PRECONDITION

public static final RuleType PRECONDITION

REGEXP

public static final RuleType REGEXP

REQUIRED

public static final RuleType REQUIRED
Method Detail

values

public static RuleType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (RuleType c : RuleType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static RuleType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

parse

public static RuleType parse(java.lang.String rule,
                             YavConfig yavConfig)
Parameters:
rule - Rule in YAV syntax
Returns:
RuleType value matching rule

isPseudoRule

public static boolean isPseudoRule(YavRule rule)
Returns true if the object supplied has class AndOrOperator, PostCondition or PreCondition.