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: package org.apache.cocoon.forms;
18:
19: /**
20: * Various constants used in the Cocoon Forms framework.
21: *
22: * @version $Id: FormsConstants.java 449149 2006-09-23 03:58:05Z crossley $
23: */
24: public class FormsConstants {
25: // TODO : see this later
26: // /**
27: // * The value returned by {@link org.apache.cocoon.forms.formmodel.Widget#getValue()}
28: // * when the widget's value is invalid.
29: // */
30: // public static final Object INVALID_VALUE = new Object() {
31: // public String toString() {
32: // return "Invalid value";
33: // }
34: // };
35:
36: /** Namespace for Template elements */
37: public static final String TEMPLATE_NS = "http://apache.org/cocoon/forms/1.0#template";
38: public static final String TEMPLATE_PREFIX = "ft";
39: public static final String TEMPLATE_PREFIX_COLON = "ft:";
40:
41: /** Namespace for Instance elements */
42: public static final String INSTANCE_NS = "http://apache.org/cocoon/forms/1.0#instance";
43: public static final String INSTANCE_PREFIX = "fi";
44: public static final String INSTANCE_PREFIX_COLON = "fi:";
45:
46: /** Namespace for Definition elements */
47: public static final String DEFINITION_NS = "http://apache.org/cocoon/forms/1.0#definition";
48: public static final String DEFINITION_PREFIX = "fd";
49: public static final String DEFINITION_PREFIX_COLON = "fd:";
50:
51: /** I18n catalogue containing the built-in messages. */
52: public static final String I18N_CATALOGUE = "forms";
53: public static final String I18N_NS = "http://apache.org/cocoon/i18n/2.1";
54: public static final String I18N_PREFIX = "i18n";
55: public static final String I18N_PREFIX_COLON = "i18n:";
56:
57: }
|