com.opensymphony.xwork2.validator.metadata
Class FieldExpressionValidatorDescription

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

public class FieldExpressionValidatorDescription
extends AbstractFieldValidatorDescription

FieldExpressionValidatorDescription

Version:
$Id: FieldExpressionValidatorDescription.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
           
 
Fields inherited from class com.opensymphony.xwork2.validator.metadata.AbstractFieldValidatorDescription
fieldName, log, simpleValidator
 
Constructor Summary
FieldExpressionValidatorDescription()
           
FieldExpressionValidatorDescription(java.lang.String fieldName)
          Creates an AbstractFieldValidatorDescription with the specified field name.
 
Method Summary
 java.lang.String asFieldXml()
          Returns the validator XML definition.
 java.lang.String asSimpleXml()
          Returns the validator XML definition.
 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 com.opensymphony.xwork2.validator.metadata.AbstractFieldValidatorDescription
asXml, getFieldName, isSimpleValidator, setFieldName, setSimpleValidator
 
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

FieldExpressionValidatorDescription

public FieldExpressionValidatorDescription()

FieldExpressionValidatorDescription

public FieldExpressionValidatorDescription(java.lang.String fieldName)
Creates an AbstractFieldValidatorDescription with the specified field name.

Parameters:
fieldName -
Method Detail

setExpression

public void setExpression(java.lang.String expression)

setKey

public void setKey(java.lang.String key)
Description copied from class: AbstractFieldValidatorDescription
Sets the I18N message key.

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

setMessage

public void setMessage(java.lang.String message)
Description copied from class: AbstractFieldValidatorDescription
Sets the default validator failure message.

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

setShortCircuit

public void setShortCircuit(boolean shortCircuit)
Description copied from class: AbstractFieldValidatorDescription
Set the shortCircuit flag.

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

asFieldXml

public java.lang.String asFieldXml()
Returns the validator XML definition.

Specified by:
asFieldXml in class AbstractFieldValidatorDescription
Returns:
the validator XML definition.

asSimpleXml

public java.lang.String asSimpleXml()
Returns the validator XML definition.

Specified by:
asSimpleXml in class AbstractFieldValidatorDescription
Returns:
the validator XML definition.


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