01: /*
02: * Copyright 2004, 2005, 2006 Odysseus Software GmbH
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package de.odysseus.calyxo.forms.conf;
17:
18: /**
19: * Field configuration element.
20: * A field element maps an input to a for a form data property by
21: * defining the validation sequence
22: * <p/>
23: * A field element may be nested in either an input or a form element.
24: *
25: * @author Christoph Beck
26: */
27: public interface FieldConfig extends ValidateSequenceConfig {
28: /**
29: * Get the property we map to
30: */
31: public String getProperty();
32:
33: /**
34: * Get the input parameter name
35: */
36: public String getName();
37:
38: /**
39: * Get the value used if validation leads to <code>null</code>
40: */
41: public Object getNull();
42:
43: /**
44: * Get the message configuration.
45: * This message configuration, if present, is taken if validation
46: * fails (instead of the failed validator's message)
47: */
48: public MessageConfig getMessageConfig();
49: }
|