org.apache.tapestry.form.validator
Class ValidatorFixture
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValidatorFixture
public ValidatorFixture()
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.