com.opensymphony.xwork2.validator.metadata
Class ExpressionValidatorDescription

java.lang.Object
  extended by com.opensymphony.xwork2.validator.metadata.ExpressionValidatorDescription
All Implemented Interfaces:
ValidatorDescription

public class ExpressionValidatorDescription
extends Object
implements ValidatorDescription

ExpressionValidatorDescription

Version:
$Id: ExpressionValidatorDescription.java 1833 2008-06-21 09:29:39Z rainerh $
Author:
Rainer Hermanns

Field Summary
 String expression
           
 String key
           
 String message
           
 boolean shortCircuit
           
 
Constructor Summary
ExpressionValidatorDescription()
           
 
Method Summary
 String asXml()
          Returns the validator XML definition.
 String getFieldName()
          Returns the field name to create the validation rule for.
 boolean isSimpleValidator()
           
 void setExpression(String expression)
           
 void setKey(String key)
          Sets the I18N message key.
 void setMessage(String message)
          Sets the default validator failure message.
 void setShortCircuit(boolean shortCircuit)
          Set the shortCircuit flag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

expression

public String expression

key

public String key

message

public String message

shortCircuit

public boolean shortCircuit
Constructor Detail

ExpressionValidatorDescription

public ExpressionValidatorDescription()
Method Detail

setExpression

public void setExpression(String expression)

setKey

public void setKey(String key)
Description copied from interface: ValidatorDescription
Sets the I18N message key.

Specified by:
setKey in interface ValidatorDescription
Parameters:
key - the I18N message key

setMessage

public void setMessage(String message)
Description copied from interface: ValidatorDescription
Sets the default validator failure message.

Specified by:
setMessage in interface ValidatorDescription
Parameters:
message - the default validator failure message

setShortCircuit

public void setShortCircuit(boolean shortCircuit)
Description copied from interface: ValidatorDescription
Set the shortCircuit flag.

Specified by:
setShortCircuit in interface ValidatorDescription
Parameters:
shortCircuit - the shortCircuit flag.

getFieldName

public String getFieldName()
Returns the field name to create the validation rule for.

Specified by:
getFieldName in interface ValidatorDescription
Returns:
The field name to create the validation rule for

asXml

public String asXml()
Description copied from interface: ValidatorDescription
Returns the validator XML definition.

Specified by:
asXml in interface ValidatorDescription
Returns:
the validator XML definition.

isSimpleValidator

public boolean isSimpleValidator()
Specified by:
isSimpleValidator in interface ValidatorDescription


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