01: /*
02: * Copyright (c) 2002-2006 by OpenSymphony
03: * All rights reserved.
04: */
05: package com.opensymphony.xwork.validator;
06:
07: import com.opensymphony.xwork.LocaleProvider;
08: import com.opensymphony.xwork.TextProvider;
09: import com.opensymphony.xwork.ValidationAware;
10:
11: /**
12: * The context for validation. This interface extends others to provide methods for reporting
13: * errors and messages as well as looking up error messages in a resource bundle using a specific locale.
14: *
15: * @author Jason Carreira
16: */
17: public interface ValidatorContext extends ValidationAware,
18: TextProvider, LocaleProvider {
19:
20: /**
21: * Translates a simple field name into a full field name in OGNL syntax.
22: *
23: * @param fieldName the field name to lookup.
24: * @return the full field name in OGNL syntax.
25: */
26: String getFullFieldName(String fieldName);
27: }
|