com.opensymphony.xwork2.validator.metadata
Class VisitorFieldValidatorDescription

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

public class VisitorFieldValidatorDescription
extends AbstractFieldValidatorDescription

VisitorFieldValidatorDescription

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

Field Summary
 boolean appendPrefix
           
 String context
           
 
Fields inherited from class com.opensymphony.xwork2.validator.metadata.AbstractFieldValidatorDescription
fieldName, key, log, message, shortCircuit, simpleValidator
 
Constructor Summary
VisitorFieldValidatorDescription()
           
VisitorFieldValidatorDescription(String fieldName)
          Creates an AbstractFieldValidatorDescription with the specified field name.
 
Method Summary
 String asFieldXml()
          Returns the validator XML definition.
 String asSimpleXml()
          Returns the validator XML definition.
 void setAppendPrefix(boolean appendPrefix)
           
 void setContext(String context)
           
 
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

context

public String context

appendPrefix

public boolean appendPrefix
Constructor Detail

VisitorFieldValidatorDescription

public VisitorFieldValidatorDescription()

VisitorFieldValidatorDescription

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

Parameters:
fieldName -
Method Detail

setContext

public void setContext(String context)

setAppendPrefix

public void setAppendPrefix(boolean appendPrefix)

asFieldXml

public String asFieldXml()
Returns the validator XML definition.

Specified by:
asFieldXml in class AbstractFieldValidatorDescription
Returns:
the 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-2009 Apache Software Foundation. All Rights Reserved.