Path: blob/jdk8u272-b10-aarch32-20201026/jaxp/src/javax/xml/stream/XMLStreamConstants.java
48792 views
/*1* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.2*3* This code is free software; you can redistribute it and/or modify it4* under the terms of the GNU General Public License version 2 only, as5* published by the Free Software Foundation. Oracle designates this6* particular file as subject to the "Classpath" exception as provided7* by Oracle in the LICENSE file that accompanied this code.8*9* This code is distributed in the hope that it will be useful, but WITHOUT10* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or11* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License12* version 2 for more details (a copy is included in the LICENSE file that13* accompanied this code).14*15* You should have received a copy of the GNU General Public License version16* 2 along with this work; if not, write to the Free Software Foundation,17* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.18*19* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA20* or visit www.oracle.com if you need additional information or have any21* questions.22*/2324package javax.xml.stream;2526/**27* This interface declares the constants used in this API.28* Numbers in the range 0 to 256 are reserved for the specification,29* user defined events must use event codes outside that range.30*31* @since 1.632*/3334public interface XMLStreamConstants {35/**36* Indicates an event is a start element37* @see javax.xml.stream.events.StartElement38*/39public static final int START_ELEMENT=1;40/**41* Indicates an event is an end element42* @see javax.xml.stream.events.EndElement43*/44public static final int END_ELEMENT=2;45/**46* Indicates an event is a processing instruction47* @see javax.xml.stream.events.ProcessingInstruction48*/49public static final int PROCESSING_INSTRUCTION=3;5051/**52* Indicates an event is characters53* @see javax.xml.stream.events.Characters54*/55public static final int CHARACTERS=4;5657/**58* Indicates an event is a comment59* @see javax.xml.stream.events.Comment60*/61public static final int COMMENT=5;6263/**64* The characters are white space65* (see [XML], 2.10 "White Space Handling").66* Events are only reported as SPACE if they are ignorable white67* space. Otherwise they are reported as CHARACTERS.68* @see javax.xml.stream.events.Characters69*/70public static final int SPACE=6;7172/**73* Indicates an event is a start document74* @see javax.xml.stream.events.StartDocument75*/76public static final int START_DOCUMENT=7;7778/**79* Indicates an event is an end document80* @see javax.xml.stream.events.EndDocument81*/82public static final int END_DOCUMENT=8;8384/**85* Indicates an event is an entity reference86* @see javax.xml.stream.events.EntityReference87*/88public static final int ENTITY_REFERENCE=9;8990/**91* Indicates an event is an attribute92* @see javax.xml.stream.events.Attribute93*/94public static final int ATTRIBUTE=10;9596/**97* Indicates an event is a DTD98* @see javax.xml.stream.events.DTD99*/100public static final int DTD=11;101102/**103* Indicates an event is a CDATA section104* @see javax.xml.stream.events.Characters105*/106public static final int CDATA=12;107108/**109* Indicates the event is a namespace declaration110*111* @see javax.xml.stream.events.Namespace112*/113public static final int NAMESPACE=13;114115/**116* Indicates a Notation117* @see javax.xml.stream.events.NotationDeclaration118*/119public static final int NOTATION_DECLARATION=14;120121/**122* Indicates a Entity Declaration123* @see javax.xml.stream.events.NotationDeclaration124*/125public static final int ENTITY_DECLARATION=15;126}127128129