01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: *
17: * $Header:$
18: */
19: package org.apache.beehive.netui.compiler.model.validation;
20:
21: public interface ValidatorConstants {
22: String RULENAME_INT_RANGE = "netui_longRange";
23: String RULENAME_FLOAT_RANGE = "floatRange";
24: String RULENAME_REQUIRED = "required";
25: String RULENAME_EMAIL = "email";
26: String RULENAME_CREDIT_CARD = "creditCard";
27: String RULENAME_MINLENGTH = "minlength";
28: String RULENAME_MAXLENGTH = "maxlength";
29: String RULENAME_MASK = "mask";
30: String RULENAME_BYTE = "byte";
31: String RULENAME_SHORT = "short";
32: String RULENAME_INTEGER = "integer";
33: String RULENAME_LONG = "long";
34: String RULENAME_FLOAT = "float";
35: String RULENAME_DOUBLE = "double";
36: String RULENAME_DATE = "date";
37: String RULENAME_VALID_WHEN = "netui_validwhen";
38: String RULENAME_URL = "url";
39:
40: String VARNAME_MIN = "min";
41: String VARNAME_MAX = "max";
42: String VARNAME_MINLENGTH = "minlength";
43: String VARNAME_MAXLENGTH = "maxlength";
44: String VARNAME_MASK = "mask";
45: String VARNAME_DATE_PATTERN = "datePattern";
46: String VARNAME_DATE_PATTERN_STRICT = "datePatternStrict";
47: String VARNAME_VALID_WHEN = RULENAME_VALID_WHEN;
48: String VARNAME_ALLOW_ALL_SCHEMES = "allowallschemes";
49: String VARNAME_ALLOW_TWO_SLASHES = "allow2slashes";
50: String VARNAME_DISALLOW_FRAGMENTS = "nofragments";
51: String VARNAME_SCHEMES = "schemes";
52:
53: String EXPRESSION_KEY_PREFIX = "NETUI-EXPRESSION:";
54: }
|