Source code: com/hexidec/ekit/component/parser/DTDConstants.java
1 /*
2 * @(#)DTDConstants.java 1.8 01/12/03
3 *
4 * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
5 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6 */
7
8 package com.hexidec.ekit.component.parser;
9
10 /**
11 * SGML constants used in a DTD. The names of the
12 * constants correspond the the equivalent SGML constructs
13 * as described in "The SGML Handbook" by Charles F. Goldfarb.
14 *
15 * @see DTD
16 * @see Element
17 * @version 1.8, 12/03/01
18 * @author Arthur van Hoff
19 */
20 public
21 interface DTDConstants {
22 // Attribute value types
23 int CDATA = 1;
24 int ENTITY = 2;
25 int ENTITIES = 3;
26 int ID = 4;
27 int IDREF = 5;
28 int IDREFS = 6;
29 int NAME = 7;
30 int NAMES = 8;
31 int NMTOKEN = 9;
32 int NMTOKENS = 10;
33 int NOTATION = 11;
34 int NUMBER = 12;
35 int NUMBERS = 13;
36 int NUTOKEN = 14;
37 int NUTOKENS = 15;
38
39 // Content model types
40 int RCDATA = 16;
41 int EMPTY = 17;
42 int MODEL = 18;
43 int ANY = 19;
44
45 // Attribute value modifiers
46 int FIXED = 1;
47 int REQUIRED = 2;
48 int CURRENT = 3;
49 int CONREF = 4;
50 int IMPLIED = 5;
51
52 // Entity types
53 int PUBLIC = 10;
54 int SDATA = 11;
55 int PI = 12;
56 int STARTTAG = 13;
57 int ENDTAG = 14;
58 int MS = 15;
59 int MD = 16;
60 int SYSTEM = 17;
61
62 int GENERAL = 1<<16;
63 int DEFAULT = 1<<17;
64 int PARAMETER = 1<<18;
65 }