KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cocoon > woody > Constants


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.woody;
17
18 import org.apache.cocoon.xml.XMLUtils;
19
20 import org.xml.sax.Attributes JavaDoc;
21
22 /**
23  * Various constants used in the Woody form framework.
24  *
25  * @version $Id: Constants.java 278591 2005-09-04 13:24:23Z pier $
26  */

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

39     /** Namespace for Woody Template elements */
40     public static final String JavaDoc WT_NS = "http://apache.org/cocoon/woody/template/1.0";
41     public static final String JavaDoc WT_PREFIX = "wt";
42     public static final String JavaDoc WT_PREFIX_COLON = "wt:";
43
44     /** Namespace for Woody Instance elements */
45     public static final String JavaDoc WI_NS = "http://apache.org/cocoon/woody/instance/1.0";
46     public static final String JavaDoc WI_PREFIX = "wi";
47     public static final String JavaDoc WI_PREFIX_COLON = "wi:";
48
49     /** Namespace for Woody Definition elements */
50     public static final String JavaDoc WD_NS = "http://apache.org/cocoon/woody/definition/1.0";
51     public static final String JavaDoc WD_PREFIX = "wd";
52     public static final String JavaDoc WD_PREFIX_COLON = "wd:";
53
54     /** I18n catalogue containing the built-in Woody messages. */
55     public static final String JavaDoc I18N_CATALOGUE = "woody";
56
57     public static final Attributes JavaDoc EMPTY_ATTRS = XMLUtils.EMPTY_ATTRIBUTES;
58 }
59
Popular Tags