01: /*
02: * Copyright 2006 Luca Garulli (luca.garulli@assetdata.it)
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:
17: package org.romaframework.aspect.view.feature;
18:
19: public class ViewFieldFeatures extends ViewElementFeatures {
20: public ViewFieldFeatures() {
21: defineAttribute(REQUIRED, false);
22: defineAttribute(MATCH, null);
23: defineAttribute(MIN, null);
24: defineAttribute(MAX, null);
25: defineAttribute(SELECTION_FIELD, null);
26: defineAttribute(SELECTION_MODE, SELECTION_MODE_VALUE);
27: }
28:
29: public static final String REQUIRED = "required";
30: public static final String MATCH = "match";
31: public static final String MIN = "min";
32: public static final String MAX = "max";
33: public static final String SELECTION_FIELD = "selectionField";
34: public static final String SELECTION_MODE = "selectionMode";
35:
36: public static final byte SELECTION_MODE_VALUE = 0;
37: public static final byte SELECTION_MODE_INDEX = 1;
38: }
|