com.ls.util.validation
Class ValidatorRuleSet

java.lang.Object
  |
  +--com.ls.util.validation.ValidatorRuleSet

public class ValidatorRuleSet
extends Object

Contains the definition of a rule.

Version:
$Revision: 1.1 $
Author:
Last modified by $Author: TMahler $

Field Summary
 String defaultValue
          The default value
 String fieldName
          The field name
 boolean isMandatory
          A booean variable that shows that is mandatory or not
 int maxLength
          The maximum length
 int minLength
          The minimum length
 String typeCode
          The type code name
 
Constructor Summary
ValidatorRuleSet(String fieldName, String typeCode, String isMandatory, String defaultValue, String minLength, String maxLength)
          Constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fieldName

public String fieldName
The field name

typeCode

public String typeCode
The type code name

isMandatory

public boolean isMandatory
A booean variable that shows that is mandatory or not

defaultValue

public String defaultValue
The default value

maxLength

public int maxLength
The maximum length

minLength

public int minLength
The minimum length
Constructor Detail

ValidatorRuleSet

public ValidatorRuleSet(String fieldName,
                        String typeCode,
                        String isMandatory,
                        String defaultValue,
                        String minLength,
                        String maxLength)
Constructor. Sets the internal variables according to the parameters
Parameters:
fieldName - The name of the field
typeCode - The code of type
isMandatory - A boolean variable that shows that the function is mandatory or not
defaultValue - The default value
minLength - Miminum length
maxLength - Maximum length