286N/A/*
286N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
286N/A *
286N/A * This code is free software; you can redistribute it and/or modify it
286N/A * under the terms of the GNU General Public License version 2 only, as
286N/A * published by the Free Software Foundation. Oracle designates this
286N/A * particular file as subject to the "Classpath" exception as provided
286N/A * by Oracle in the LICENSE file that accompanied this code.
286N/A *
286N/A * This code is distributed in the hope that it will be useful, but WITHOUT
286N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
286N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
286N/A * version 2 for more details (a copy is included in the LICENSE file that
286N/A * accompanied this code).
286N/A *
286N/A * You should have received a copy of the GNU General Public License version
286N/A * 2 along with this work; if not, write to the Free Software Foundation,
286N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
286N/A *
286N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
286N/A * or visit www.oracle.com if you need additional information or have any
286N/A * questions.
286N/A */
286N/A
286N/Apackage javax.xml.stream;
286N/A
286N/A/**
286N/A * This interface declares the constants used in this API.
286N/A * Numbers in the range 0 to 256 are reserved for the specification,
286N/A * user defined events must use event codes outside that range.
286N/A *
286N/A * @since 1.6
286N/A */
286N/A
286N/Apublic interface XMLStreamConstants {
286N/A /**
286N/A * Indicates an event is a start element
286N/A * @see javax.xml.stream.events.StartElement
286N/A */
286N/A public static final int START_ELEMENT=1;
286N/A /**
286N/A * Indicates an event is an end element
286N/A * @see javax.xml.stream.events.EndElement
286N/A */
286N/A public static final int END_ELEMENT=2;
286N/A /**
286N/A * Indicates an event is a processing instruction
286N/A * @see javax.xml.stream.events.ProcessingInstruction
286N/A */
286N/A public static final int PROCESSING_INSTRUCTION=3;
286N/A
286N/A /**
286N/A * Indicates an event is characters
286N/A * @see javax.xml.stream.events.Characters
286N/A */
286N/A public static final int CHARACTERS=4;
286N/A
286N/A /**
286N/A * Indicates an event is a comment
286N/A * @see javax.xml.stream.events.Comment
286N/A */
286N/A public static final int COMMENT=5;
286N/A
286N/A /**
286N/A * The characters are white space
286N/A * (see [XML], 2.10 "White Space Handling").
286N/A * Events are only reported as SPACE if they are ignorable white
286N/A * space. Otherwise they are reported as CHARACTERS.
286N/A * @see javax.xml.stream.events.Characters
286N/A */
286N/A public static final int SPACE=6;
286N/A
286N/A /**
286N/A * Indicates an event is a start document
286N/A * @see javax.xml.stream.events.StartDocument
286N/A */
286N/A public static final int START_DOCUMENT=7;
286N/A
286N/A /**
286N/A * Indicates an event is an end document
286N/A * @see javax.xml.stream.events.EndDocument
286N/A */
286N/A public static final int END_DOCUMENT=8;
286N/A
286N/A /**
286N/A * Indicates an event is an entity reference
286N/A * @see javax.xml.stream.events.EntityReference
286N/A */
286N/A public static final int ENTITY_REFERENCE=9;
286N/A
286N/A /**
286N/A * Indicates an event is an attribute
286N/A * @see javax.xml.stream.events.Attribute
286N/A */
286N/A public static final int ATTRIBUTE=10;
286N/A
286N/A /**
286N/A * Indicates an event is a DTD
286N/A * @see javax.xml.stream.events.DTD
286N/A */
286N/A public static final int DTD=11;
286N/A
286N/A /**
286N/A * Indicates an event is a CDATA section
286N/A * @see javax.xml.stream.events.Characters
286N/A */
286N/A public static final int CDATA=12;
286N/A
286N/A /**
286N/A * Indicates the event is a namespace declaration
286N/A *
286N/A * @see javax.xml.stream.events.Namespace
286N/A */
286N/A public static final int NAMESPACE=13;
286N/A
286N/A /**
286N/A * Indicates a Notation
286N/A * @see javax.xml.stream.events.NotationDeclaration
286N/A */
286N/A public static final int NOTATION_DECLARATION=14;
286N/A
286N/A /**
286N/A * Indicates a Entity Declaration
286N/A * @see javax.xml.stream.events.NotationDeclaration
286N/A */
286N/A public static final int ENTITY_DECLARATION=15;
286N/A}