|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.latka.validators.BaseValidator
public abstract class BaseValidator
Field Summary | |
---|---|
protected String |
_label
|
protected org.apache.log4j.Category |
_log
log4j category for debug output |
Constructor Summary | |
---|---|
BaseValidator()
|
|
BaseValidator(String label)
|
Method Summary | |
---|---|
protected void |
fail(String reason)
|
String |
getLabel()
|
void |
setLabel(String label)
|
abstract void |
validate(Response response)
Validate a response |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final org.apache.log4j.Category _log
protected String _label
Constructor Detail |
---|
public BaseValidator()
public BaseValidator(String label)
Method Detail |
---|
public abstract void validate(Response response) throws ValidationException
validate
in interface Validator
response
- the response to validate
ValidationException
public void setLabel(String label)
public String getLabel()
protected void fail(String reason) throws ValidationException
ValidationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |