Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.opensymphony.xwork2.validator.metadata
Class ExpressionValidatorDescription

    java.lang.Object
      com.opensymphony.xwork2.validator.metadata.ExpressionValidatorDescription

All Implemented Interfaces:
  ValidatorDescription

    public class ExpressionValidatorDescription

extends Object
implements ValidatorDescription

`ExpressionValidatorDescription`

Version:
  $Id: ExpressionValidatorDescription.java 1187 2006-11-13 08:05:32Z mrdon $
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`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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