Package org.fugerit.java.core.validator
Class ValidatorRegex
- java.lang.Object
-
- org.fugerit.java.core.cfg.xml.BasicIdConfigType
-
- org.fugerit.java.core.validator.BasicValidator
-
- org.fugerit.java.core.validator.ValidatorRegex
-
- All Implemented Interfaces:
Serializable
,IdConfigType
,KeyObject<String>
,KeyString
public class ValidatorRegex extends BasicValidator
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
ERROR_KEY_REGEX
static String
KEY_REGEX
-
Fields inherited from class org.fugerit.java.core.validator.BasicValidator
ERROR_KEY_LENGTH_MAX, ERROR_KEY_LENGTH_MIN, ERROR_KEY_REQUIRED, KEY_INFO, KEY_MAXLENGTH, KEY_MINLENGTH, KEY_REQUIRED, NO_LENGTH_CONSTRAINT
-
-
Constructor Summary
Constructors Constructor Description ValidatorRegex()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkConfig()
void
configure(Properties atts)
String
getRegex()
boolean
validate(ValidatorContext context)
-
Methods inherited from class org.fugerit.java.core.validator.BasicValidator
checkOverride, configure, configure, formatMessage, isOptional
-
Methods inherited from class org.fugerit.java.core.cfg.xml.BasicIdConfigType
getId, getKey, setId, toString
-
-
-
-
Field Detail
-
KEY_REGEX
public static final String KEY_REGEX
- See Also:
- Constant Field Values
-
ERROR_KEY_REGEX
public static final String ERROR_KEY_REGEX
- See Also:
- Constant Field Values
-
-
Method Detail
-
getRegex
public String getRegex()
-
checkConfig
public void checkConfig() throws ConfigException
- Overrides:
checkConfig
in classBasicValidator
- Throws:
ConfigException
-
configure
public void configure(Properties atts) throws ConfigException
- Overrides:
configure
in classBasicValidator
- Throws:
ConfigException
-
validate
public boolean validate(ValidatorContext context) throws Exception
- Overrides:
validate
in classBasicValidator
- Throws:
Exception
-
-