KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > batik > xml > LexicalUnits


1 /*
2
3    Copyright 2002 The Apache Software Foundation
4
5    Licensed under the Apache License, Version 2.0 (the "License");
6    you may not use this file except in compliance with the License.
7    You may obtain a copy of the License at
8
9        http://www.apache.org/licenses/LICENSE-2.0
10
11    Unless required by applicable law or agreed to in writing, software
12    distributed under the License is distributed on an "AS IS" BASIS,
13    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14    See the License for the specific language governing permissions and
15    limitations under the License.
16
17  */

18 package org.apache.batik.xml;
19
20 /**
21  * This interface defines the constants that represent XML lexical units.
22  *
23  * @author <a HREF="mailto:stephane@hillion.org">Stephane Hillion</a>
24  * @version $Id: LexicalUnits.java,v 1.4 2005/03/27 08:58:37 cam Exp $
25  */

26 public interface LexicalUnits {
27     
28     /**
29      * Represents the EOF lexical unit.
30      */

31     int EOF = 0;
32
33     /**
34      * Represents the S (space) lexical unit.
35      */

36     int S = 1;
37
38     /**
39      * Represents an XML declaration start lexical unit, i&#x2e;e&#x2e; '&lt;&#x3f;xml'.
40      */

41     int XML_DECL_START = 2;
42
43     /**
44      * Represents a doctype start lexical unit, i&#x2e;e&#x2e; &lt;&#x21;DOCTYPE.
45      */

46     int DOCTYPE_START = 3;
47
48     /**
49      * Represents a comment lexical unit.
50      */

51     int COMMENT = 4;
52
53     /**
54      * Represents a PI start lexical unit, i&#x2e;e&#x2e; '&lt;&#x3f;Name'.
55      */

56     int PI_START = 5;
57
58     /**
59      * Represents a PI data lexical unit.
60      */

61     int PI_DATA = 6;
62
63     /**
64      * Represents a PI end lexical unit, i&#x2e;e&#x2e; '&#x3f;&gt;'.
65      */

66     int PI_END = 7;
67
68     /**
69      * Represents a character data lexical unit, i&#x2e;e&#x2e; the content of
70      * an element.
71      */

72     int CHARACTER_DATA = 8;
73
74     /**
75      * Represents a start tag lexical unit, i&#x2e;e&#x2e; '&lt;Name'.
76      */

77     int START_TAG = 9;
78
79     /**
80      * Represents an end tag lexical unit, i&#x2e;e&#x2e; '&lt;/Name'.
81      */

82     int END_TAG = 10;
83
84     /**
85      * Represents a CDATA section start lexical unit, i&#x2e;e&#x2e;
86      * '&lt;&#x21;[CDATA['.
87      */

88     int CDATA_START = 11;
89
90     /**
91      * Represents a character reference lexical unit.
92      */

93     int CHARACTER_REFERENCE = 12;
94
95     /**
96      * Represents an entity reference lexical unit.
97      */

98     int ENTITY_REFERENCE = 13;
99
100     /**
101      * Represents a name lexical unit.
102      */

103     int NAME = 14;
104
105     /**
106      * Represents '=' lexical unit.
107      */

108     int EQ = 15;
109
110     /**
111      * Represents a first attribute fragment lexical unit.
112      */

113     int FIRST_ATTRIBUTE_FRAGMENT = 16;
114
115     /**
116      * Represents an attribute fragment lexical unit.
117      */

118     int ATTRIBUTE_FRAGMENT = 17;
119
120     /**
121      * Represents a last attribute fragment lexical unit.
122      */

123     int LAST_ATTRIBUTE_FRAGMENT = 18;
124
125     /**
126      * Represents an empty element end lexical unit, i&#x2e;e&#x2e; '/&gt;'.
127      */

128     int EMPTY_ELEMENT_END = 19;
129
130     /**
131      * Represents a end character lexical unit, i&#x2e;e&#x2e; '&gt;'.
132      */

133     int END_CHAR = 20;
134
135     /**
136      * Represents a section end lexical unit, i&#x2e;e&#x2e; ']]&gt;'.
137      */

138     int SECTION_END = 21;
139
140     /**
141      * Represents a 'version' lexical unit.
142      */

143     int VERSION_IDENTIFIER = 22;
144
145     /**
146      * Represents a 'encoding' lexical unit.
147      */

148     int ENCODING_IDENTIFIER = 23;
149
150     /**
151      * Represents a 'standalone' lexical unit.
152      */

153     int STANDALONE_IDENTIFIER = 24;
154
155     /**
156      * Represents a string lexical unit.
157      */

158     int STRING = 25;
159
160     /**
161      * Represents a 'SYSTEM' lexical unit.
162      */

163     int SYSTEM_IDENTIFIER = 26;
164
165     /**
166      * Represents a 'PUBLIC' lexical unit.
167      */

168     int PUBLIC_IDENTIFIER = 27;
169
170     /**
171      * Represents a '[' lexical unit.
172      */

173     int LSQUARE_BRACKET = 28;
174
175     /**
176      * Represents a ']' lexical unit.
177      */

178     int RSQUARE_BRACKET = 29;
179
180     /**
181      * Represents a element declaration start lexical unit, i&#x2e;e&#x2e;
182      * '&lt;&#x21;ELEMENT'.
183      */

184     int ELEMENT_DECLARATION_START = 30;
185
186     /**
187      * Represents an ATTLIST declaration start lexical unit, i&#x2e;e&#x2e;
188      * '&lt;&#x21;ATTLIST'.
189      */

190     int ATTLIST_START = 31;
191
192     /**
193      * Represents an entity start lexical unit, i&#x2e;e&#x2e; '&lt;&#x21;ENTITY'.
194      */

195     int ENTITY_START = 32;
196
197     /**
198      * Represents a notation start lexical unit, i&#x2e;e&#x2e;
199      * '&lt;&#x21;NOTATION'.
200      */

201     int NOTATION_START = 33;
202
203     /**
204      * Represents a parameter entity reference lexical unit, i&#x2e;e&#x2e;
205      * '%Name;'.
206      */

207     int PARAMETER_ENTITY_REFERENCE = 34;
208
209     /**
210      * Represents a 'EMPTY' lexical unit.
211      */

212     int EMPTY_IDENTIFIER = 35;
213
214     /**
215      * Represents a 'ANY' lexical unit.
216      */

217     int ANY_IDENTIFIER = 36;
218
219     /**
220      * Represents a '&#x3f;' lexical unit.
221      */

222     int QUESTION = 37;
223
224     /**
225      * Represents a '+' lexical unit.
226      */

227     int PLUS = 38;
228
229     /**
230      * Represents a '*' lexical unit.
231      */

232     int STAR = 39;
233
234     /**
235      * Represents a '(' lexical unit.
236      */

237     int LEFT_BRACE = 40;
238
239     /**
240      * Represents a ')' lexical unit.
241      */

242     int RIGHT_BRACE = 41;
243
244     /**
245      * Represents a '|' lexical unit.
246      */

247     int PIPE = 42;
248
249     /**
250      * Represents a ',' lexical unit.
251      */

252     int COMMA = 43;
253
254     /**
255      * Represents a '#PCDATA' lexical unit.
256      */

257     int PCDATA_IDENTIFIER = 44;
258
259     /**
260      * Represents a 'CDATA' lexical unit.
261      */

262     int CDATA_IDENTIFIER = 45;
263
264     /**
265      * Represents a 'ID' lexical unit.
266      */

267     int ID_IDENTIFIER = 46;
268
269     /**
270      * Represents a 'IDREF' lexical unit.
271      */

272     int IDREF_IDENTIFIER = 47;
273
274     /**
275      * Represents a 'IDREFS' lexical unit.
276      */

277     int IDREFS_IDENTIFIER = 48;
278
279     /**
280      * Represents a 'NMTOKEN' lexical unit.
281      */

282     int NMTOKEN_IDENTIFIER = 49;
283
284     /**
285      * Represents a 'NMTOKENS' lexical unit.
286      */

287     int NMTOKENS_IDENTIFIER = 50;
288
289     /**
290      * Represents a 'ENTITY' lexical unit.
291      */

292     int ENTITY_IDENTIFIER = 51;
293
294     /**
295      * Represents a 'ENTITIES' lexical unit.
296      */

297     int ENTITIES_IDENTIFIER = 52;
298
299     /**
300      * Represents a '#REQUIRED' lexical unit.
301      */

302     int REQUIRED_IDENTIFIER = 53;
303
304     /**
305      * Represents a '#IMPLIED' lexical unit.
306      */

307     int IMPLIED_IDENTIFIER = 54;
308
309     /**
310      * Represents a '#FIXED' lexical unit.
311      */

312     int FIXED_IDENTIFIER = 55;
313
314     /**
315      * Represents a Nmtoken lexical unit.
316      */

317     int NMTOKEN = 56;
318
319     /**
320      * Represents a 'NOTATION' lexical unit.
321      */

322     int NOTATION_IDENTIFIER = 57;
323
324     /**
325      * Represents a '%' lexical unit.
326      */

327     int PERCENT = 58;
328
329     /**
330      * Represents a 'NDATA' lexical unit.
331      */

332     int NDATA_IDENTIFIER = 59;
333
334 }
335
Popular Tags