com.opensymphony.xwork2.validator.metadata
Class RequiredFieldValidatorDescription

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

public class RequiredFieldValidatorDescription
extends AbstractFieldValidatorDescription

RequiredFieldValidatorDescription

Version:
$Id: RequiredFieldValidatorDescription.java 1187 2006-11-13 08:05:32Z mrdon $
Author:
Rainer Hermanns

Field Summary
 
Fields inherited from class com.opensymphony.xwork2.validator.metadata.AbstractFieldValidatorDescription
fieldName, key, log, message, shortCircuit, simpleValidator
 
Constructor Summary
RequiredFieldValidatorDescription()
           
RequiredFieldValidatorDescription(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.
 
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
 

Constructor Detail

RequiredFieldValidatorDescription

public RequiredFieldValidatorDescription()

RequiredFieldValidatorDescription

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

Parameters:
fieldName -
Method Detail

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 © 2000-2008 Apache Software Foundation. All Rights Reserved.