01: /*
02: * Copyright 2002-2005 the original author or authors.
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:
17: package info.jtrac;
18:
19: /**
20: * Jtrac constants
21: */
22: public class Constants {
23:
24: public static final String METADATA = "metadata";
25: public static final String ROLES = "roles";
26: public static final String ROLE = "role";
27: public static final String FIELDS = "fields";
28: public static final String NAME = "name";
29: public static final String LABEL = "label";
30: public static final String OPTION = "option";
31: public static final String VALUE = "value";
32: public static final String OPTIONAL = "optional";
33: public static final String FIELD = "field";
34: public static final String FIELD_ORDER = "field-order";
35: public static final String TRUE = "true";
36: public static final String TRANSITION = "transition";
37: public static final String STATE = "state";
38: public static final String STATES = "states";
39: public static final String STATUS = "status";
40: public static final String MASK = "mask";
41: public static final String FIELD_XPATH = "/" + METADATA + "/"
42: + FIELDS + "/" + FIELD;
43: public static final String ROLE_XPATH = "/" + METADATA + "/"
44: + ROLES + "/" + ROLE;
45: public static final String STATE_XPATH = "/" + METADATA + "/"
46: + STATES + "/" + STATE;
47: public static final String FIELD_ORDER_XPATH = "/" + METADATA + "/"
48: + FIELDS + "/" + FIELD_ORDER + "/" + FIELD;
49:
50: }
|