public abstract class FixedFileFieldBasicValidator extends XMLConfigurableObject implements FixedFileFieldValidator
Modifier and Type | Field and Description |
---|---|
static String |
ATT_NAME_ID |
static String |
ATT_NAME_LOCALE |
static String |
ATT_NAME_REGEX |
static String |
ATT_NAME_REQUIRED |
static String |
DEFAULT_BUNDLE_PATH |
protected static org.slf4j.Logger |
logger |
Constructor and Description |
---|
FixedFileFieldBasicValidator() |
Modifier and Type | Method and Description |
---|---|
abstract FixedFileFieldValidationResult |
checkField(String fieldLabel,
String fieldValue,
int rowNumber,
int colNumber) |
protected FixedFileFieldValidationResult |
checkRequired(String fieldLabel,
String fieldValue,
int rowNumber,
int colNumber) |
abstract void |
configure(Element tag)
Configure the object.
|
protected void |
configure(Element tag,
String bundlePath) |
protected String |
defaultFormatMessage(String errorKey,
String fieldLabel,
String fieldValue,
int rowNumber,
int colNumber,
String addInfo) |
ResourceBundle |
getBundle() |
String |
getId() |
boolean |
isRequired() |
static String |
messageFormatWorker(ResourceBundle bundle,
String errorKey,
String fieldLabel,
String fieldValue,
int rowNumber,
int colNumber,
String addInfo) |
static ResourceBundle |
newBundle(String locale) |
static ResourceBundle |
newBundle(String bundlePath,
String locale) |
configure
configureProperties, configureXML
getLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
configure, configureProperties, configureXML
public static final String DEFAULT_BUNDLE_PATH
protected static final org.slf4j.Logger logger
public static final String ATT_NAME_ID
public static final String ATT_NAME_REGEX
public static final String ATT_NAME_LOCALE
public static final String ATT_NAME_REQUIRED
public static ResourceBundle newBundle(String locale)
public static String messageFormatWorker(ResourceBundle bundle, String errorKey, String fieldLabel, String fieldValue, int rowNumber, int colNumber, String addInfo)
public static ResourceBundle newBundle(String bundlePath, String locale)
public boolean isRequired()
public String getId()
public ResourceBundle getBundle()
protected String defaultFormatMessage(String errorKey, String fieldLabel, String fieldValue, int rowNumber, int colNumber, String addInfo)
protected FixedFileFieldValidationResult checkRequired(String fieldLabel, String fieldValue, int rowNumber, int colNumber)
public abstract FixedFileFieldValidationResult checkField(String fieldLabel, String fieldValue, int rowNumber, int colNumber)
checkField
in interface FixedFileFieldValidator
protected void configure(Element tag, String bundlePath) throws ConfigException
ConfigException
public abstract void configure(Element tag) throws ConfigException
ConfigurableObject
Configure the object.
configure
in interface ConfigurableObject
configure
in class AbstractConfigurableObject
tag
- The tag object to use for configuration.ConfigException
- If troubles arise during object configuration.Copyright © 2022 Fugerit. All rights reserved.