com.opensymphony.xwork2.validator.metadata
Class IntRangeFieldValidatorDescription

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

public class IntRangeFieldValidatorDescription
extends AbstractFieldValidatorDescription

IntRangeFieldValidatorDescription

Version:
$Id: IntRangeFieldValidatorDescription.java 1833 2008-06-21 09:29:39Z rainerh $
Author:
Rainer Hermanns

Field Summary
 String max
           
 String min
           
 
Fields inherited from class com.opensymphony.xwork2.validator.metadata.AbstractFieldValidatorDescription
fieldName, key, log, message, shortCircuit, simpleValidator
 
Constructor Summary
IntRangeFieldValidatorDescription()
           
IntRangeFieldValidatorDescription(String fieldName)
          Creates an AbstractFieldValidatorDescription with the specified field name.
 
Method Summary
 String asFieldXml()
          Returns the field validator XML definition.
 String asSimpleXml()
          Returns the validator XML definition.
 void setMax(String max)
           
 void setMin(String min)
           
 
Methods inherited from class com.opensymphony.xwork2.validator.metadata.AbstractFieldValidatorDescription
asXml, getFieldName, isSimpleValidator, setFieldName, setKey, setMessage, setShortCircuit, setSimpleValidator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

min

public String min

max

public String max
Constructor Detail

IntRangeFieldValidatorDescription

public IntRangeFieldValidatorDescription()

IntRangeFieldValidatorDescription

public IntRangeFieldValidatorDescription(String fieldName)
Creates an AbstractFieldValidatorDescription with the specified field name.

Parameters:
fieldName -
Method Detail

setMin

public void setMin(String min)

setMax

public void setMax(String max)

asFieldXml

public String asFieldXml()
Returns the field validator XML definition.

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

asSimpleXml

public String asSimpleXml()
Returns the validator XML definition.

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


Copyright © 2009 OpenSymphony. All Rights Reserved.