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 08:05:32Z 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()


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