Class FixedFileFieldDateValidator
- java.lang.Object
-
- org.fugerit.java.core.cfg.helpers.AbstractConfigurableObject
-
- org.fugerit.java.core.cfg.helpers.XMLConfigurableObject
-
- org.fugerit.java.core.fixed.parser.FixedFileFieldBasicValidator
-
- org.fugerit.java.core.fixed.parser.FixedFileFieldDateValidator
-
- All Implemented Interfaces:
Serializable
,ConfigurableObject
,FixedFileFieldValidator
,LogObject
public class FixedFileFieldDateValidator extends FixedFileFieldBasicValidator implements FixedFileFieldValidator
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
ATT_NAME_FORMAT
static String
ATT_NAME_MAX
static String
ATT_NAME_MIN
static String
ATT_NAME_MIN_MAX_SYSDATE
static String
ATT_NAME_STRICT
static String
ATT_NAME_STRICT_DEFAULT
-
Fields inherited from class org.fugerit.java.core.fixed.parser.FixedFileFieldBasicValidator
ATT_NAME_ID, ATT_NAME_LOCALE, ATT_NAME_REGEX, ATT_NAME_REQUIRED, DEFAULT_BUNDLE_PATH, logger
-
Fields inherited from class org.fugerit.java.core.cfg.helpers.XMLConfigurableObject
DO_NOTHING
-
-
Constructor Summary
Constructors Constructor Description FixedFileFieldDateValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FixedFileFieldValidationResult
checkField(String fieldLabel, String fieldValue, int rowNumber, int colNumber)
void
configure(Element tag)
Configure the object.protected String
getFormat()
protected boolean
isStrict()
-
Methods inherited from class org.fugerit.java.core.fixed.parser.FixedFileFieldBasicValidator
checkRequired, configure, defaultFormatMessage, getBundle, getId, isRequired, messageFormatWorker, newBundle, newBundle
-
Methods inherited from class org.fugerit.java.core.cfg.helpers.XMLConfigurableObject
configure, newXMLConfigurableObject
-
Methods inherited from class org.fugerit.java.core.cfg.helpers.AbstractConfigurableObject
configureProperties, configureXML, getLogger, setConfigProvider
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.fugerit.java.core.cfg.ConfigurableObject
configure, configureProperties, configureXML
-
-
-
-
Field Detail
-
ATT_NAME_FORMAT
public static final String ATT_NAME_FORMAT
- See Also:
- Constant Field Values
-
ATT_NAME_MIN_MAX_SYSDATE
public static final String ATT_NAME_MIN_MAX_SYSDATE
- See Also:
- Constant Field Values
-
ATT_NAME_MAX
public static final String ATT_NAME_MAX
- See Also:
- Constant Field Values
-
ATT_NAME_MIN
public static final String ATT_NAME_MIN
- See Also:
- Constant Field Values
-
ATT_NAME_STRICT
public static final String ATT_NAME_STRICT
- See Also:
- Constant Field Values
-
ATT_NAME_STRICT_DEFAULT
public static final String ATT_NAME_STRICT_DEFAULT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getFormat
protected String getFormat()
-
isStrict
protected boolean isStrict()
-
checkField
public FixedFileFieldValidationResult checkField(String fieldLabel, String fieldValue, int rowNumber, int colNumber)
- Specified by:
checkField
in interfaceFixedFileFieldValidator
- Specified by:
checkField
in classFixedFileFieldBasicValidator
-
configure
public void configure(Element tag) throws ConfigException
Description copied from interface:ConfigurableObject
Configure the object.
- Specified by:
configure
in interfaceConfigurableObject
- Specified by:
configure
in classFixedFileFieldBasicValidator
- Parameters:
tag
- The tag object to use for configuration.- Throws:
ConfigException
- If troubles arise during object configuration.
-
-