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
Interface ValidatorDescription

All Known Implementing Classes:
  AbstractFieldValidatorDescription, ConversionErrorFieldValidatorDescription, DateRangeFieldValidatorDescription, DoubleRangeFieldValidatorDescription, EmailValidatorDescription, ExpressionValidatorDescription, FieldExpressionValidatorDescription, IntRangeFieldValidatorDescription, RequiredFieldValidatorDescription, RequiredStringValidatorDescription, StringLengthFieldValidatorDescription, URLValidatorDescription, VisitorFieldValidatorDescription

    public interface ValidatorDescription

`ValidatorDescription`

Version:
  $Id: ValidatorDescription.java 1187 2006-11-13 09:05:32 +0100 (Mon, 13 Nov 2006) mrdon $
Author:
  Rainer Hermanns

Method Summary
`String` | `asXml()` Returns the validator XML definition.
`String` | `getFieldName()` Returns the field name to create the validation rule for.
`boolean` | `isSimpleValidator()`
`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.

Method Detail

### asXml

    String asXml()

  Returns the validator XML definition.

  Returns:
    the validator XML definition.

### getFieldName

    String getFieldName()

  Returns the field name to create the validation rule for.

  Returns:
    The field name to create the validation rule for

### setKey

    void setKey(String key)

  Sets the I18N message key.

  Parameters:
    `key` - the I18N message key

### setMessage

    void setMessage(String message)

  Sets the default validator failure message.

  Parameters:
    `message` - the default validator failure message

### setShortCircuit

    void setShortCircuit(boolean shortCircuit)

  Set the shortCircuit flag.

  Parameters:
    `shortCircuit` - the shortCircuit flag.

### isSimpleValidator

    boolean isSimpleValidator()

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 © 2007 OpenSymphony. All Rights Reserved.