1 /*
2  * Copyright (c) 1998, 1999, Oracle and/or its affiliates. All rights reserved.
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * This code is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU General Public License version 2 only, as
7  * published by the Free Software Foundation.  Oracle designates this
8  * particular file as subject to the "Classpath" exception as provided
9  * by Oracle in the LICENSE file that accompanied this code.
10  *
11  * This code is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14  * version 2 for more details (a copy is included in the LICENSE file that
15  * accompanied this code).
16  *
17  * You should have received a copy of the GNU General Public License version
18  * 2 along with this work; if not, write to the Free Software Foundation,
19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20  *
21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22  * or visit www.oracle.com if you need additional information or have any
23  * questions.
24  */
25 
26 package javax.swing.text.html.parser;
27 
28 /**
29  * SGML constants used in a DTD. The names of the
30  * constants correspond to the equivalent SGML constructs
31  * as described in "The SGML Handbook" by  Charles F. Goldfarb.
32  *
33  * @see DTD
34  * @see Element
35  * @author Arthur van Hoff
36  */
37 public
38 interface DTDConstants {
39     // Attribute value types
40 
41     /**
42      * The DTD constant corresponds to CDATA
43      */
44     int CDATA           = 1;
45 
46     /**
47      * The DTD constant corresponds to ENTITY
48      */
49     int ENTITY          = 2;
50 
51     /**
52      * The DTD constant corresponds to ENTITIES
53      */
54     int ENTITIES        = 3;
55 
56     /**
57      * The DTD constant corresponds to ID
58      */
59     int ID              = 4;
60 
61     /**
62      * The DTD constant corresponds to IDREF
63      */
64     int IDREF           = 5;
65 
66     /**
67      * The DTD constant corresponds to IDREFS
68      */
69     int IDREFS          = 6;
70 
71     /**
72      * The DTD constant corresponds to NAME
73      */
74     int NAME            = 7;
75 
76     /**
77      * The DTD constant corresponds to NAMES
78      */
79     int NAMES           = 8;
80 
81     /**
82      * The DTD constant corresponds to NMTOKEN
83      */
84     int NMTOKEN         = 9;
85 
86     /**
87      * The DTD constant corresponds to NMTOKENS
88      */
89     int NMTOKENS        = 10;
90 
91     /**
92      * The DTD constant corresponds to NOTATION
93      */
94     int NOTATION        = 11;
95 
96     /**
97      * The DTD constant corresponds to NUMBER
98      */
99     int NUMBER          = 12;
100 
101     /**
102      * The DTD constant corresponds to NUMBERS
103      */
104     int NUMBERS         = 13;
105 
106     /**
107      * The DTD constant corresponds to NUTOKEN
108      */
109     int NUTOKEN         = 14;
110 
111     /**
112      * The DTD constant corresponds to NUTOKENS
113      */
114     int NUTOKENS        = 15;
115 
116     // Content model types
117 
118     /**
119      * The DTD constant corresponds to RCDATA
120      */
121     int RCDATA          = 16;
122 
123     /**
124      * The DTD constant corresponds to EMPTY
125      */
126     int EMPTY           = 17;
127 
128     /**
129      * The DTD constant corresponds to MODEL
130      */
131     int MODEL           = 18;
132 
133     /**
134      * The DTD constant corresponds to ANY
135      */
136     int ANY             = 19;
137 
138     // Attribute value modifiers
139 
140     /**
141      * The DTD constant corresponds to FIXED
142      */
143     int FIXED           = 1;
144 
145     /**
146      * The DTD constant corresponds to REQUIRED
147      */
148     int REQUIRED        = 2;
149 
150     /**
151      * The DTD constant corresponds to CURRENT
152      */
153     int CURRENT         = 3;
154 
155     /**
156      * The DTD constant corresponds to CONREF
157      */
158     int CONREF          = 4;
159 
160     /**
161      * The DTD constant corresponds to IMPLIED
162      */
163     int IMPLIED         = 5;
164 
165     // Entity types
166 
167     /**
168      * The DTD constant corresponds to PUBLIC
169      */
170     int PUBLIC          = 10;
171 
172     /**
173      * The DTD constant corresponds to SDATA
174      */
175     int SDATA           = 11;
176 
177     /**
178      * The DTD constant corresponds to PI
179      */
180     int PI              = 12;
181 
182     /**
183      * The DTD constant corresponds to STARTTAG
184      */
185     int STARTTAG        = 13;
186 
187     /**
188      * The DTD constant corresponds to ENDTAG
189      */
190     int ENDTAG          = 14;
191 
192     /**
193      * The DTD constant corresponds to MS
194      */
195     int MS              = 15;
196 
197     /**
198      * The DTD constant corresponds to MD
199      */
200     int MD              = 16;
201 
202     /**
203      * The DTD constant corresponds to SYSTEM
204      */
205     int SYSTEM          = 17;
206 
207     /**
208      * The DTD constant corresponds to GENERAL
209      */
210 
211     int GENERAL         = 1<<16;
212 
213     /**
214      * The DTD constant corresponds to DEFAULT
215      */
216     int DEFAULT         = 1<<17;
217 
218     /**
219      * The DTD constant corresponds to PARAMETER
220      */
221     int PARAMETER       = 1<<18;
222 }
223