KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejen > EjenConstants


1 //
2
// Ejen (code generation system)
3
// Copyright (C) 2001, 2002 François Wolff (ejen@noos.fr).
4
//
5
// This file is part of Ejen.
6
//
7
// Ejen is free software; you can redistribute it and/or modify
8
// it under the terms of the GNU General Public License as published by
9
// the Free Software Foundation; either version 2 of the License, or
10
// (at your option) any later version.
11
//
12
// Ejen is distributed in the hope that it will be useful,
13
// but WITHOUT ANY WARRANTY; without even the implied warranty of
14
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
// GNU General Public License for more details.
16
//
17
// You should have received a copy of the GNU General Public License
18
// along with Ejen; if not, write to the Free Software
19
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20
//
21
package org.ejen;
22
23 /**
24  * Ejen constants interface.
25  * @author F. Wolff
26  * @version 1.0
27  */

28 public interface EjenConstants {
29
30     /** Context key */
31     public static final String JavaDoc CTX_STYLESHEET_HANDLER = "STYLESHEET_HANDLER";
32
33     /** Context key */
34     public static final String JavaDoc CTX_DOM_SOURCE = "DOM_SOURCE";
35
36     /** Context key */
37     public static final String JavaDoc CTX_DOM_SOURCE_FILE = "DOM_SOURCE_FILE";
38
39     /** Context key */
40     public static final String JavaDoc CTX_TRANSFORMER_IMPL = "TRANSFORMER_IMPL";
41
42     /** Context key */
43     public static final String JavaDoc CTX_STYLESHEET_ROOT = "STYLESHEET_ROOT";
44
45     /** Context key */
46     public static final String JavaDoc CTX_TRANSFORMER_FACTORY_IMPL = "TRANSFORMER_FACTORY_IMPL";
47
48     /** State (of an EjenChildNode) names */
49     public static final String JavaDoc[] STATES = {
50         "idle", "before process", "processing", "after process", "checking"
51     };
52
53     /** State of an EjenChildNode */
54     public static final int STATE_IDLE = 0;
55
56     /** State of an EjenChildNode */
57     public static final int STATE_BEFORE_PROCESS = 1;
58
59     /** State of an EjenChildNode */
60     public static final int STATE_PROCESS = 2;
61
62     /** State of an EjenChildNode */
63     public static final int STATE_AFTER_PROCESS = 3;
64
65     /** State of an EjenChildNode */
66     public static final int STATE_CHECK = 4;
67
68     /** Message level */
69     public static final int MSG_ERR = 0;
70
71     /** Message level */
72     public static final int MSG_WARN = 1;
73
74     /** Message level */
75     public static final int MSG_INFO = 2;
76
77     /** Message level */
78     public static final int MSG_VERBOSE = 3;
79
80     /** Message level */
81     public static final int MSG_DEBUG = 4;
82
83     /** Message indentation string */
84     public static final String JavaDoc LOG_INDENT_STR1 = " ";
85
86     /** Message indentation string */
87     public static final String JavaDoc LOG_INDENT_STR2 = " ";
88
89     /**
90      * <pre><code>
91      *&lt;?xml version="1.0" encoding="iso-8859-1"?&gt;
92      *&lt;ejen/&gt;
93      * </code></pre>
94      */

95     public static final String JavaDoc DEFAULT_XML_DATA
96             = "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>" + "<ejen/>";
97
98     /** Default encoding: "ISO-8859-1" */
99     public static final String JavaDoc DEFAULT_XML_DATA_ENCODING = "ISO-8859-1";
100
101     /**
102      * <pre><code>
103      *&lt;?xml version="1.0" encoding="iso-8859-1"?&gt;
104      *&lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"/&gt;
105      * </code></pre>
106      */

107     public static final String JavaDoc DEFAULT_XSL_DATA
108             = "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>"
109             + "<xsl:stylesheet xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\""
110             + " xmlns:fiu=\"org.ejen.ext.FileUtil\""
111             + " xmlns:stu=\"org.ejen.ext.StringUtil\""
112             + " xmlns:ver=\"org.ejen.ext.Version\""
113             + " exclude-result-prefixes=\"fiu stu ver\"" + " version=\"1.0\"/>";
114 }
115
Popular Tags