KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > xquark > extractor > common > Constants


1 /*
2  * This file belongs to the XQuark distribution.
3  * Copyright (C) 2003 Universite de Versailles Saint-Quentin.
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307.
18  * You can also get it at http://www.gnu.org/licenses/lgpl.html
19  *
20  * For more information on this software, see http://www.xquark.org.
21  */

22
23 package org.xquark.extractor.common;
24
25 /**
26  * Extractor constants definition (mainly configuration parameters
27  */

28 public interface Constants {
29
30     /* configuration file tokens. See org.xquark.extractor.ExtractorConfigurationFileHandler */
31     public String JavaDoc LABEL_DATASOURCE = "datasource";
32     public String JavaDoc LABEL_SPEC_DATABASE_NAME = "database_name";
33     public String JavaDoc LABEL_SPEC_DATABASE_VERSION = "database_version";
34     public String JavaDoc LABEL_SPEC_DESCRIPTION = "description";
35     public String JavaDoc LABEL_SPEC_CASE = "case";
36     public String JavaDoc LABEL_SPEC_USER = "user";
37     public String JavaDoc LABEL_SPEC_PASSWORD = "password";
38     public String JavaDoc LABEL_SPEC_URL = "url";
39     public String JavaDoc LABEL_SPEC_JNDI = "jndi";
40     public String JavaDoc LABEL_SPEC_SUBST = "substitutions";
41     public String JavaDoc LABEL_SPEC_SUBST_CHAR = "character";
42     public String JavaDoc LABEL_SPEC_SUBST_VALUE = "value";
43     public String JavaDoc LABEL_SPEC_SUBST_SUBST = "subst";
44     public String JavaDoc LABEL_SPEC_SUBST_NAMECASE = "nameCase";
45     public String JavaDoc LABEL_SPEC_DRIVER = "driver";
46     public String JavaDoc LABEL_SPEC_INCLUDES = "includes";
47     public String JavaDoc LABEL_SPEC_EXCLUDES = "excludes";
48     public String JavaDoc LABEL_SPEC_SITE = "site";
49     public String JavaDoc LABEL_SPEC_CATALOG = "catalog";
50     public String JavaDoc LABEL_SPEC_SCHEMA = "schema";
51     public String JavaDoc LABEL_SPEC_TABLE = "table";
52     public String JavaDoc LABEL_SPEC_COLUMN = "column";
53     public String JavaDoc LABEL_SPEC_PK_COLUMN = "pk_column";
54     public String JavaDoc LABEL_SPEC_NAME = "name";
55     public String JavaDoc LABEL_SPEC_ALIAS = "alias";
56     public String JavaDoc LABEL_SPEC_REGEX = "regex";
57     public String JavaDoc LABEL_SPEC_TARGETNAMESPACE = "targetNamespace";
58     public String JavaDoc LABEL_SPEC_ELEMENTFORMDEFAULT = "elementFormDefault";
59     public String JavaDoc LABEL_SPEC_VIEW = "view";
60     public String JavaDoc LABEL_SPEC_VIEW_NAME = "name";
61
62     /* QNameEncoding constants */
63     public int CASE_MIXED = 0;
64     public int CASE_UPPER = 1;
65     public int CASE_LOWER = 2;
66
67     public String JavaDoc CASE_MIXED_TOKEN = "mixed";
68     public String JavaDoc CASE_UPPER_TOKEN = "upper";
69     public String JavaDoc CASE_LOWER_TOKEN = "lower";
70     
71     /* Selection types */
72     public final static byte NONE = 0;
73     public final static byte INCLUDES = 1;
74     public final static byte EXCLUDES = 2;
75     public final static int UNQUALIFIED = 0;
76     public final static int QUALIFIED = 1;
77
78     public final static String JavaDoc[] ELEMENT_FORM_DEFAULT =
79         { "unqualified", "qualified" };
80
81 }
82
Popular Tags