org.apache.tapestry.form.validator
Class ValidatorFixture

java.lang.Object
  extended by org.apache.tapestry.form.validator.ValidatorFixture
All Implemented Interfaces:
FormComponentContributor, Validator

public class ValidatorFixture
extends Object
implements Validator

Used by TestValidatorFactory.

Since:
4.0
Author:
Howard Lewis Ship

Constructor Summary
ValidatorFixture()
           
 
Method Summary
 boolean getAcceptsNull()
           
 String getMessage()
           
 String getValue()
           
 boolean isRequired()
           
 void renderContribution(IMarkupWriter writer, IRequestCycle cycle, FormComponentContributorContext context, IFormComponent field)
           
 void setMessage(String message)
           
 void setValue(String value)
           
 void validate(IFormComponent field, ValidationMessages messages, Object object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidatorFixture

public ValidatorFixture()
Method Detail

validate

public void validate(IFormComponent field,
                     ValidationMessages messages,
                     Object object)
              throws ValidatorException
Specified by:
validate in interface Validator
Throws:
ValidatorException

getAcceptsNull

public boolean getAcceptsNull()
Specified by:
getAcceptsNull in interface Validator

renderContribution

public void renderContribution(IMarkupWriter writer,
                               IRequestCycle cycle,
                               FormComponentContributorContext context,
                               IFormComponent field)
Specified by:
renderContribution in interface FormComponentContributor

getMessage

public String getMessage()

setMessage

public void setMessage(String message)

getValue

public String getValue()

setValue

public void setValue(String value)

isRequired

public boolean isRequired()
Specified by:
isRequired in interface Validator


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.