01: /*
02: * Copyright (c) 2002-2006 by OpenSymphony
03: * All rights reserved.
04: */
05: package com.opensymphony.xwork.validator;
06:
07: /**
08: * The FieldValidator interface defines the methods to be implemented by FieldValidators,
09: * which are used by the XWork validation framework to validate Action properties before
10: * executing the Action.
11: *
12: * @author $author$
13: * @version $Revision: 861 $
14: */
15: public interface FieldValidator extends Validator {
16:
17: /**
18: * Sets the field name to validate with this FieldValidator
19: *
20: * @param fieldName
21: */
22: void setFieldName(String fieldName);
23:
24: /**
25: * @return the field name to be validated
26: */
27: String getFieldName();
28: }
|