Package org.apache.struts2.validator
Class ValidatorConfig
java.lang.Object
org.apache.struts2.util.location.Located
org.apache.struts2.validator.ValidatorConfig
- All Implemented Interfaces:
Locatable
Holds the necessary information for configuring an instance of a Validator.
- Author:
- James House, Rainer Hermanns, tm_jee, Martin Gilday
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builds a ValidatorConfig -
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.struts2.util.location.Located
getLocation, setLocation
-
Constructor Details
-
ValidatorConfig
- Parameters:
validatorType
- validator type
-
ValidatorConfig
-
-
Method Details
-
getDefaultMessage
- Returns:
- Returns the defaultMessage for the validator.
-
getMessageKey
- Returns:
- Returns the messageKey for the validator.
-
isShortCircuit
public boolean isShortCircuit()- Returns:
- Returns wether the shortCircuit flag should be set on the validator.
-
getParams
- Returns:
- Returns the configured params to set on the validator.
-
getType
- Returns:
- Returns the type of validator to configure.
-
getMessageParams
- Returns:
- The i18n message parameters/arguments to be used.
-