Path: blob/master/src/java.xml/share/classes/javax/xml/stream/XMLStreamConstants.java
40948 views
/*1* Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425package javax.xml.stream;2627/**28* This interface declares the constants used in this API.29* Numbers in the range 0 to 256 are reserved for the specification,30* user defined events must use event codes outside that range.31*32* @since 1.633*/3435public interface XMLStreamConstants {36/**37* Indicates an event is a start element38* @see javax.xml.stream.events.StartElement39*/40public static final int START_ELEMENT=1;41/**42* Indicates an event is an end element43* @see javax.xml.stream.events.EndElement44*/45public static final int END_ELEMENT=2;46/**47* Indicates an event is a processing instruction48* @see javax.xml.stream.events.ProcessingInstruction49*/50public static final int PROCESSING_INSTRUCTION=3;5152/**53* Indicates an event is characters54* @see javax.xml.stream.events.Characters55*/56public static final int CHARACTERS=4;5758/**59* Indicates an event is a comment60* @see javax.xml.stream.events.Comment61*/62public static final int COMMENT=5;6364/**65* The characters are white space66* (see [XML], 2.10 "White Space Handling").67* Events are only reported as SPACE if they are ignorable white68* space. Otherwise they are reported as CHARACTERS.69* @see javax.xml.stream.events.Characters70*/71public static final int SPACE=6;7273/**74* Indicates an event is a start document75* @see javax.xml.stream.events.StartDocument76*/77public static final int START_DOCUMENT=7;7879/**80* Indicates an event is an end document81* @see javax.xml.stream.events.EndDocument82*/83public static final int END_DOCUMENT=8;8485/**86* Indicates an event is an entity reference87* @see javax.xml.stream.events.EntityReference88*/89public static final int ENTITY_REFERENCE=9;9091/**92* Indicates an event is an attribute93* @see javax.xml.stream.events.Attribute94*/95public static final int ATTRIBUTE=10;9697/**98* Indicates an event is a DTD99* @see javax.xml.stream.events.DTD100*/101public static final int DTD=11;102103/**104* Indicates an event is a CDATA section105* @see javax.xml.stream.events.Characters106*/107public static final int CDATA=12;108109/**110* Indicates the event is a namespace declaration111*112* @see javax.xml.stream.events.Namespace113*/114public static final int NAMESPACE=13;115116/**117* Indicates a Notation118* @see javax.xml.stream.events.NotationDeclaration119*/120public static final int NOTATION_DECLARATION=14;121122/**123* Indicates a Entity Declaration124* @see javax.xml.stream.events.NotationDeclaration125*/126public static final int ENTITY_DECLARATION=15;127}128129130