KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cocoon > forms > FormsConstants


1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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 org.apache.cocoon.forms;
17
18 /**
19  * Various constants used in the Cocoon Forms framework.
20  *
21  * @version $Id: FormsConstants.java 326838 2005-10-20 06:26:53Z sylvain $
22  */

23 public class FormsConstants {
24 // TODO : see this later
25
// /**
26
// * The value returned by {@link org.apache.cocoon.forms.formmodel.Widget#getValue()}
27
// * when the widget's value is invalid.
28
// */
29
// public static final Object INVALID_VALUE = new Object() {
30
// public String toString() {
31
// return "Invalid value";
32
// }
33
// };
34

35     /** Namespace for Template elements */
36     public static final String JavaDoc TEMPLATE_NS = "http://apache.org/cocoon/forms/1.0#template";
37     public static final String JavaDoc TEMPLATE_PREFIX = "ft";
38     public static final String JavaDoc TEMPLATE_PREFIX_COLON = "ft:";
39
40     /** Namespace for Instance elements */
41     public static final String JavaDoc INSTANCE_NS = "http://apache.org/cocoon/forms/1.0#instance";
42     public static final String JavaDoc INSTANCE_PREFIX = "fi";
43     public static final String JavaDoc INSTANCE_PREFIX_COLON = "fi:";
44
45     /** Namespace for Definition elements */
46     public static final String JavaDoc DEFINITION_NS = "http://apache.org/cocoon/forms/1.0#definition";
47     public static final String JavaDoc DEFINITION_PREFIX = "fd";
48     public static final String JavaDoc DEFINITION_PREFIX_COLON = "fd:";
49
50     /** I18n catalogue containing the built-in messages. */
51     public static final String JavaDoc I18N_CATALOGUE = "forms";
52     public static final String JavaDoc I18N_NS = "http://apache.org/cocoon/i18n/2.1";
53     public static final String JavaDoc I18N_PREFIX = "i18n";
54     public static final String JavaDoc I18N_PREFIX_COLON = "i18n:";
55
56 }
57
Popular Tags