01: /*
02: * Copyright 2001-2007 Hippo (www.hippo.nl)
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: package nl.hippo.cms.wizard;
17:
18: import java.util.ArrayList;
19: import java.util.Collection;
20:
21: public class Constants {
22:
23: //global settings and flags
24: public static final String FILE_DELIMITER = ".";
25: public static final String URI_DELIMITER = "/";
26: public static final String I18N_DELIMITER = ".";
27: public static final String DEFAULT_RESOURCE_WORKFLOW = "ReviewedActions";
28: public static final String AUTO_CREATE_RESOURCE_NAME_FLAG = "#auto";
29:
30: //wizard namespaces
31: public static final String NS_URI_WIZARD = "http://hippo.nl/cms/wizard";
32: public static final String NS_URI_ENGINE = "http://hippo.nl/cms/wizard/engine";
33: public static final String NS_URI_WIDGET = "http://hippo.nl/cms/wizard/widget";
34: public static final String NS_URI_RESOURCE = "http://hippo.nl/cms/wizard/resource";
35: public static final String NS_URI_ASPECT = "http://hippo.nl/cms/wizard/aspect";
36:
37: //namespaces that denote instantiable components
38: public static final Collection INSTANCE_NAMESPACES = new ArrayList();
39: static {
40: INSTANCE_NAMESPACES.add(NS_URI_WIZARD);
41: INSTANCE_NAMESPACES.add(NS_URI_ENGINE);
42: INSTANCE_NAMESPACES.add(NS_URI_RESOURCE);
43: INSTANCE_NAMESPACES.add(NS_URI_WIDGET);
44: INSTANCE_NAMESPACES.add(NS_URI_ASPECT);
45: }
46:
47: //Wizard
48: public static final String WIZARD_DEFAULT_ID = "wizard";
49: public static final String WIZARD_DEFAULT_RESULT_ACTION = "refresh";
50:
51: //common attributes
52: public static final String ID_ATTRIBUTE_NAME = "id";
53: public static final String XPATH_ATTRIBUTE_NAME = "xpath";
54: public static final String VALUE_ATTRIBUTE_NAME = "value";
55: public static final String NAME_ATTRIBUTE_NAME = "name";
56: public static final String SKIP_ATTRIBUTE_NAME = "skip";
57: public static final String TYPE_ATTRIBUTE_NAME = "type";
58: public static final String NAMESPACE_ATTRIBUTE_NAME = "namespace";
59: public static final String PATH_ATTRIBUTE_NAME = "path";
60: public static final String LABEL_ATTRIBUTE_NAME = "label";
61: public static final String LOWERCASE_ATTRIBUTE_NAME = "lowercase";
62:
63: public static final String DATE_DISPLAY_FORMAT_ATTRIBUTE_NAME = "displayformat";
64: public static final String DATE_OUTPUT_FORMAT_ATTRIBUTE_NAME = "outputformat";
65: public static final String DATE_PATH_FORMAT_ATTRIBUTE_NAME = "pathformat";
66:
67: public static final String DEFAULT_RESULT_ACTION_ATTRIBUTE_NAME = "default-result-action";
68:
69: //CForms template helpers
70: public static final String CFORMS_RESOURCE_DROPDOWN_SUFFIX = "-currentResource";
71: public static final String ID_DELIMITER = "XYX";
72: public static final String DEFAULT_LABEL_CATALOGUE = "messages";
73:
74: }
|