KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javolution > xml > stream > XMLStreamConstants


1 /*
2  * Javolution - Java(TM) Solution for Real-Time and Embedded Systems
3  * Copyright (C) 2006 - Javolution (http://javolution.org/)
4  * All rights reserved.
5  *
6  * Permission to use, copy, modify, and distribute this software is
7  * freely granted, provided that this notice is preserved.
8  */

9 package javolution.xml.stream;
10
11 /**
12  * This interface declares the constants used in this API. Numbers in the range
13  * 0 to 256 are reserved for the specification, user defined events must use
14  * event codes outside that range.
15  *
16  * @author <a HREF="mailto:jean-marie@dautelle.com">Jean-Marie Dautelle</a>
17  * @version 4.0, June 16, 2006
18  */

19 public interface XMLStreamConstants {
20
21     /**
22      * Indicates an event is a start element.
23      */

24     public static final int START_ELEMENT = 1;
25
26     /**
27      * Indicates an event is an end element.
28      */

29     public static final int END_ELEMENT = 2;
30
31     /**
32      * Indicates an event is a processing instruction.
33      */

34     public static final int PROCESSING_INSTRUCTION = 3;
35
36     /**
37      * Indicates an event is characters.
38      */

39     public static final int CHARACTERS = 4;
40
41     /**
42      * Indicates an event is a comment.
43      */

44     public static final int COMMENT = 5;
45
46     /**
47      * The characters are white space (see [XML], 2.10 "White Space Handling").
48      * Events are only reported as SPACE if they are ignorable white space.
49      * Otherwise they are reported as CHARACTERS.
50      */

51     public static final int SPACE = 6;
52
53     /**
54      * Indicates an event is a start document.
55      */

56     public static final int START_DOCUMENT = 7;
57
58     /**
59      * Indicates an event is an end document.
60      */

61     public static final int END_DOCUMENT = 8;
62
63     /**
64      * Indicates an event is an entity reference.
65      */

66     public static final int ENTITY_REFERENCE = 9;
67
68     /**
69      * Indicates an event is an attribute.
70      */

71     public static final int ATTRIBUTE = 10;
72
73     /**
74      * Indicates an event is a DTD.
75      */

76     public static final int DTD = 11;
77
78     /**
79      * Indicates an event is a CDATA section.
80      */

81     public static final int CDATA = 12;
82
83     /**
84      * Indicates the event is a namespace declaration.
85      */

86     public static final int NAMESPACE = 13;
87
88     /**
89      * Indicates a Notation.
90      */

91     public static final int NOTATION_DECLARATION = 14;
92
93     /**
94      * Indicates a Entity Declaration.
95      */

96     public static final int ENTITY_DECLARATION = 15;
97         
98 }
Popular Tags