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 java.lang.Object
implements ValidatorDescription

ExpressionValidatorDescription

Version:
$Id: ExpressionValidatorDescription.java 894090 2009-12-27 18:18:29Z martinc $
Author:
Rainer Hermanns

Field Summary
 java.lang.String expression
           
 java.lang.String key
           
 java.lang.String message
           
 boolean shortCircuit
           
 
Constructor Summary
ExpressionValidatorDescription()
           
 
Method Summary
 java.lang.String asXml()
          Returns the validator XML definition.
 java.lang.String getFieldName()
          Returns the field name to create the validation rule for.
 boolean isSimpleValidator()
           
 void setExpression(java.lang.String expression)
           
 void setKey(java.lang.String key)
          Sets the I18N message key.
 void setMessage(java.lang.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 java.lang.String expression

key

public java.lang.String key

message

public java.lang.String message

shortCircuit

public boolean shortCircuit
Constructor Detail

ExpressionValidatorDescription

public ExpressionValidatorDescription()
Method Detail

setExpression

public void setExpression(java.lang.String expression)

setKey

public void setKey(java.lang.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(java.lang.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 java.lang.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 java.lang.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-2011 Apache Software Foundation. All Rights Reserved.