/* * Copyright 2002-2005 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package info.jtrac; /** * Jtrac constants */ public class Constants { public static final String METADATA = "metadata"; public static final String ROLES = "roles"; public static final String ROLE = "role"; public static final String FIELDS = "fields"; public static final String NAME = "name"; public static final String LABEL = "label"; public static final String OPTION = "option"; public static final String VALUE = "value"; public static final String OPTIONAL = "optional"; public static final String FIELD = "field"; public static final String FIELD_ORDER = "field-order"; public static final String TRUE = "true"; public static final String TRANSITION = "transition"; public static final String STATE = "state"; public static final String STATES = "states"; public static final String STATUS = "status"; public static final String MASK = "mask"; public static final String FIELD_XPATH = "/" + METADATA + "/" + FIELDS + "/" + FIELD; public static final String ROLE_XPATH = "/" + METADATA + "/" + ROLES + "/" + ROLE; public static final String STATE_XPATH = "/" + METADATA + "/" + STATES + "/" + STATE; public static final String FIELD_ORDER_XPATH = "/" + METADATA + "/" + FIELDS + "/" + FIELD_ORDER + "/" + FIELD; }