KickJava   Java API By Example, From Geeks To Geeks.

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


1 package javax.xml.stream;
2
3 /**
4  * This interface declares the constants used in this API.
5  * Numbers in the range 0 to 256 are reserved for the specification,
6  * user defined events must use event codes outside that range.
7  *
8  * @since 1.6
9  */

10
11 public interface XMLStreamConstants {
12   /**
13    * Indicates an event is a start element
14    * @see javax.xml.stream.events.StartElement
15    */

16   public static final int START_ELEMENT=1;
17   /**
18    * Indicates an event is an end element
19    * @see javax.xml.stream.events.EndElement
20    */

21   public static final int END_ELEMENT=2;
22   /**
23    * Indicates an event is a processing instruction
24    * @see javax.xml.stream.events.ProcessingInstruction
25    */

26   public static final int PROCESSING_INSTRUCTION=3;
27
28   /**
29    * Indicates an event is characters
30    * @see javax.xml.stream.events.Characters
31    */

32   public static final int CHARACTERS=4;
33
34   /**
35    * Indicates an event is a comment
36    * @see javax.xml.stream.events.Comment
37    */

38   public static final int COMMENT=5;
39
40   /**
41    * The characters are white space
42    * (see [XML], 2.10 "White Space Handling").
43    * Events are only reported as SPACE if they are ignorable white
44    * space. Otherwise they are reported as CHARACTERS.
45    * @see javax.xml.stream.events.Characters
46    */

47   public static final int SPACE=6;
48
49   /**
50    * Indicates an event is a start document
51    * @see javax.xml.stream.events.StartDocument
52    */

53   public static final int START_DOCUMENT=7;
54
55   /**
56    * Indicates an event is an end document
57    * @see javax.xml.stream.events.EndDocument
58    */

59   public static final int END_DOCUMENT=8;
60
61   /**
62    * Indicates an event is an entity reference
63    * @see javax.xml.stream.events.EntityReference
64    */

65   public static final int ENTITY_REFERENCE=9;
66
67   /**
68    * Indicates an event is an attribute
69    * @see javax.xml.stream.events.Attribute
70    */

71   public static final int ATTRIBUTE=10;
72
73   /**
74    * Indicates an event is a DTD
75    * @see javax.xml.stream.events.DTD
76    */

77   public static final int DTD=11;
78
79   /**
80    * Indicates an event is a CDATA section
81    * @see javax.xml.stream.events.Characters
82    */

83   public static final int CDATA=12;
84
85   /**
86    * Indicates the event is a namespace declaration
87    *
88    * @see javax.xml.stream.events.Namespace
89    */

90   public static final int NAMESPACE=13;
91
92   /**
93    * Indicates a Notation
94    * @see javax.xml.stream.events.NotationDeclaration
95    */

96   public static final int NOTATION_DECLARATION=14;
97
98   /**
99    * Indicates a Entity Declaration
100    * @see javax.xml.stream.events.NotationDeclaration
101    */

102   public static final int ENTITY_DECLARATION=15;
103 }
104
105
106
107
108
Popular Tags