001: /*
002: * Copyright 2005-2006 The Kuali Foundation.
003: *
004: *
005: * Licensed under the Educational Community License, Version 1.0 (the "License");
006: * you may not use this file except in compliance with the License.
007: * You may obtain a copy of the License at
008: *
009: * http://www.opensource.org/licenses/ecl1.php
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017: package edu.iu.uis.eden.xml;
018:
019: import org.jdom.Namespace;
020:
021: /**
022: * Constants for various XML namespaces, elements and attributes for the various parsers.
023: *
024: * @author ewestfal
025: */
026: public interface XmlConstants {
027:
028: // namespaces
029: public static final Namespace WORKFLOW_NAMESPACE = Namespace
030: .getNamespace("", "ns:workflow");
031: public static final Namespace SCHEMA_NAMESPACE = Namespace
032: .getNamespace("xsi",
033: "http://www.w3.org/2001/XMLSchema-instance");
034: public static final Namespace RULE_NAMESPACE = Namespace
035: .getNamespace("", "ns:workflow/Rule");
036: public static final Namespace DOCUMENT_TYPE_NAMESPACE = Namespace
037: .getNamespace("", "ns:workflow/DocumentType");
038: public static final Namespace WORKGROUP_NAMESPACE = Namespace
039: .getNamespace("", "ns:workflow/Workgroup");
040: public static final Namespace WORKGROUP_TYPE_NAMESPACE = Namespace
041: .getNamespace("", "ns:workflow/WorkgroupType");
042: public static final Namespace RULE_TEMPLATE_NAMESPACE = Namespace
043: .getNamespace("", "ns:workflow/RuleTemplate");
044: public static final Namespace RULE_ATTRIBUTE_NAMESPACE = Namespace
045: .getNamespace("", "ns:workflow/RuleAttribute");
046: public static final Namespace HELP_NAMESPACE = Namespace
047: .getNamespace("", "ns:workflow/Help");
048: public static final Namespace EDL_NAMESPACE = Namespace
049: .getNamespace("", "ns:workflow/EDocLite");
050: public static final Namespace STYLE_NAMESPACE = Namespace
051: .getNamespace("", "ns:workflow/Style");
052:
053: // schemas
054: public static final String SCHEMA_LOCATION_ATTR = "schemaLocation";
055: public static final String WORKFLOW_SCHEMA_LOCATION = "ns:workflow resource:WorkflowData";
056: public static final String RULE_SCHEMA_LOCATION = "ns:workflow/Rule resource:Rule";
057: public static final String DOCUMENT_TYPE_SCHEMA_LOCATION = "ns:workflow/DocumentType resource:DocumentType";
058: public static final String WORKGROUP_SCHEMA_LOCATION = "ns:workflow/Workgroup resource:Workgroup";
059: public static final String WORKGROUP_TYPE_SCHEMA_LOCATION = "ns:workflow/WorkgroupType resource:WorkgroupType";
060: public static final String RULE_TEMPLATE_SCHEMA_LOCATION = "ns:workflow/RuleTemplate resource:RuleTemplate";
061: public static final String RULE_ATTRIBUTE_SCHEMA_LOCATION = "ns:workflow/RuleAttribute resource:RuleAttribute";
062: public static final String HELP_SCHEMA_LOCATION = "ns:workflow/Help resource:Help";
063: public static final String EDL_SCHEMA_LOCATION = "ns:workflow/EDocLite resource:EDocLite";
064: public static final String STYLE_SCHEMA_LOCATION = "ns:workflow/Style resource:Style";
065:
066: // data
067: public static final String DATA_ELEMENT = "data";
068:
069: // general
070: public static final String NAME = "name";
071: public static final String DESCRIPTION = "description";
072: public static final String LABEL = "label";
073: public static final String KEY = "key";
074: public static final String VALUE = "value";
075: public static final String ACTIVE = "active";
076: public static final String INHERITED = "inherited";
077: public static final String TYPE = "type";
078:
079: // document types
080: public static final String DOCUMENT_TYPES = "documentTypes";
081: public static final String DOCUMENT_TYPE = "documentType";
082: public static final String PARENT = "parent";
083: public static final String MESSAGE_ENTITY = "messageEntity";
084: public static final String POST_PROCESSOR_NAME = "postProcessorName";
085: public static final String SUPER_USER_WORKGROUP_NAME = "superUserWorkgroupName";
086: public static final String BLANKET_APPROVE_WORKGROUP_NAME = "blanketApproveWorkgroupName";
087: public static final String BLANKET_APPROVE_POLICY = "blanketApprovePolicy";
088: public static final String DEFAULT_EXCEPTION_WORKGROUP_NAME = "defaultExceptionWorkgroupName";
089: public static final String DOC_HANDLER = "docHandler";
090: public static final String NOTIFICATION_FROM_ADDRESS = "notificationFromAddress";
091: public static final String CUSTOM_EMAIL_STYLESHEET = "emailStylesheet";
092: public static final String ROUTE_LEVELS_INHERITED = "routeLevelsInherited";
093: public static final String ATTRIBUTES_INHERITED = "attributesInherited";
094: public static final String POLICIES = "policies";
095: public static final String POLICY = "policy";
096: public static final String ROUTING_VERSION = "routingVersion";
097: public static final String ROUTE_PATHS = "routePaths";
098: public static final String ROUTE_PATH = "routePath";
099: public static final String INITIAL_NODE = "initialNode";
100: public static final String PROCESS_NAME = "processName";
101: public static final String ROUTE_NODES = "routeNodes";
102: public static final String BRANCH = "branch";
103: public static final String EXCEPTION_WORKGROUP_NAME = "exceptionWorkgroupName";
104: public static final String ACTIVATION_TYPE = "activationType";
105: public static final String FINAL_APPROVAL = "finalApproval";
106: public static final String MANDATORY_ROUTE = "mandatoryRoute";
107: public static final String ROUTE_MODULE = "routeModule";
108: public static final String NEXT_NODE = "nextNode";
109:
110: // rules
111: public static final String RULES = "rules";
112: public static final String RULE = "rule";
113: public static final String FROM_DATE = "fromDate";
114: public static final String TO_DATE = "toDate";
115: public static final String IGNORE_PREVIOUS = "ignorePrevious";
116: public static final String RESPONSIBILITIES = "responsibilities";
117: public static final String RESPONSIBILITY = "responsibility";
118: public static final String ACTION_REQUESTED = "actionRequested";
119: public static final String USER = "user";
120: public static final String ROLE = "role";
121: public static final String APPROVE_POLICY = "approvePolicy";
122: public static final String PRIORITY = "priority";
123: public static final String DELEGATIONS = "delegations";
124: public static final String DELEGATION_TYPE = "delegationType";
125: public static final String RULE_EXTENSIONS = "ruleExtensions";
126: public static final String RULE_EXTENSION = "ruleExtension";
127: public static final String RULE_EXTENSION_VALUES = "ruleExtensionValues";
128: public static final String RULE_EXTENSION_VALUE = "ruleExtensionValue";
129:
130: // workgroups, most of the elements are not known to the core and are dictated by the institutional plugin
131: public static final String WORKGROUPS = "workgroups";
132: public static final String WORKGROUP = "workgroup";
133: public static final String EXTENSIONS = "extensions";
134: public static final String EXTENSION = "extension";
135: public static final String DATA = "data";
136:
137: // workgroup types
138: public static final String WORKGROUP_TYPES = "workgroupTypes";
139: public static final String WORKGROUP_TYPE = "workgroupType";
140:
141: // rule templates
142: public static final String RULE_TEMPLATES = "ruleTemplates";
143: public static final String RULE_TEMPLATE = "ruleTemplate";
144: public static final String DELEGATION_TEMPLATE = "delegationTemplate";
145: public static final String REQUIRED = "required";
146: public static final String ATTRIBUTES = "attributes";
147: public static final String ATTRIBUTE = "attribute";
148: public static final String RULE_DEFAULTS = "ruleDefaults";
149: public static final String RULE_INSTRUCTIONS = "ruleInstructions";
150: public static final String DEFAULT_ACTION_REQUESTED = "defaultActionRequested";
151: public static final String SUPPORTS_COMPLETE = "supportsComplete";
152: public static final String SUPPORTS_APPROVE = "supportsApprove";
153: public static final String SUPPORTS_ACKNOWLEDGE = "supportsAcknowledge";
154: public static final String SUPPORTS_FYI = "supportsFYI";
155:
156: // rule attributes
157: public static final String RULE_ATTRIBUTES = "ruleAttributes";
158: public static final String RULE_ATTRIBUTE = "ruleAttribute";
159: public static final String CLASS_NAME = "className";
160: public static final String ROUTING_CONFIG = "routingConfig";
161: public static final String SEARCHING_CONFIG = "searchingConfig";
162:
163: // help
164: public static final String HELP_ENTRIES = "helpEntries";
165: public static final String HELP_ENTRY = "helpEntry";
166: public static final String HELP_NAME = "helpName";
167: public static final String HELP_KEY = "helpKey";
168: public static final String HELP_TEXT = "helpText";
169:
170: //edoclite
171: public static final String EDL_EDOCLITE = "edoclite";
172: public static final String EDL_STYLE = "style";
173: public static final String EDL_ASSOCIATION = "association";
174: public static final String EDL_DOC_TYPE = "docType";
175: public static final String EDL_DEFINITION = "definition";
176: public static final String EDL_ACTIVE = "active";
177:
178: //style
179: public static final String STYLE_STYLES = "styles";
180: public static final String STYLE_STYLE = "style";
181: }
|