com.opensymphony.xwork2.validator
Class ValidatorConfig

java.lang.Object
  extended by com.opensymphony.xwork2.util.location.Located
      extended by 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, tm_jee, Martin Gilday

Nested Class Summary
static class ValidatorConfig.Builder
          Builds a ValidatorConfig
 
Field Summary
 
Fields inherited from class com.opensymphony.xwork2.util.location.Located
location
 
Constructor Summary
protected ValidatorConfig(java.lang.String validatorType)
           
protected ValidatorConfig(ValidatorConfig orig)
           
 
Method Summary
 java.lang.String getDefaultMessage()
           
 java.lang.String getMessageKey()
           
 java.lang.String[] getMessageParams()
           
 java.util.Map<java.lang.String,java.lang.String> getParams()
           
 java.lang.String getType()
           
 boolean isShortCircuit()
           
 
Methods inherited from class com.opensymphony.xwork2.util.location.Located
getLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidatorConfig

protected ValidatorConfig(java.lang.String validatorType)
Parameters:
validatorType -

ValidatorConfig

protected ValidatorConfig(ValidatorConfig orig)
Method Detail

getDefaultMessage

public java.lang.String getDefaultMessage()
Returns:
Returns the defaultMessage for the validator.

getMessageKey

public java.lang.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 java.util.Map<java.lang.String,java.lang.String> getParams()
Returns:
Returns the configured params to set on the validator.

getType

public java.lang.String getType()
Returns:
Returns the type of validator to configure.

getMessageParams

public java.lang.String[] getMessageParams()
Returns:
The i18n message parameters/arguments to be used.


Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.