com.opensymphony.xwork2.validator
Class ValidatorConfig
java.lang.Object
com.opensymphony.xwork2.util.location.Located
com.opensymphony.xwork2.validator.ValidatorConfig
- All Implemented Interfaces:
- Locatable
public class ValidatorConfig
- extends Located
Holds the necessary information for configuring an instance of a Validator.
- Author:
- James House, Rainer Hermanns
Fields inherited from class com.opensymphony.xwork2.util.location.Located |
location |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
type
private String type
params
private Map params
defaultMessage
private String defaultMessage
messageKey
private String messageKey
shortCircuit
private boolean shortCircuit
ValidatorConfig
protected ValidatorConfig(String validatorType)
- Parameters:
validatorType
-
ValidatorConfig
protected ValidatorConfig(ValidatorConfig orig)
getDefaultMessage
public String getDefaultMessage()
- Returns:
- Returns the defaultMessage for the validator.
getMessageKey
public String 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
public Map getParams()
- Returns:
- Returns the configured params to set on the validator.
getType
public String getType()
- Returns:
- Returns the type of validator to configure.
Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.