001 /*
002 * Copyright (c) 2007 Henri Sivonen
003 * Copyright (c) 2008 Mozilla Foundation
004 *
005 * Permission is hereby granted, free of charge, to any person obtaining a
006 * copy of this software and associated documentation files (the "Software"),
007 * to deal in the Software without restriction, including without limitation
008 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
009 * and/or sell copies of the Software, and to permit persons to whom the
010 * Software is furnished to do so, subject to the following conditions:
011 *
012 * The above copyright notice and this permission notice shall be included in
013 * all copies or substantial portions of the Software.
014 *
015 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
016 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
017 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
018 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
019 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
020 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
021 * DEALINGS IN THE SOFTWARE.
022 */
023
024 package nu.validator.saxtree;
025
026 /**
027 * The node type.
028 * @version $Id$
029 * @author hsivonen
030 */
031 public enum NodeType {
032 /**
033 * A CDATA section.
034 */
035 CDATA,
036 /**
037 * A run of characters.
038 */
039 CHARACTERS,
040 /**
041 * A comment.
042 */
043 COMMENT,
044 /**
045 * A document.
046 */
047 DOCUMENT,
048 /**
049 * A document fragment.
050 */
051 DOCUMENT_FRAGMENT,
052 /**
053 * A DTD.
054 */
055 DTD,
056 /**
057 * An element.
058 */
059 ELEMENT,
060 /**
061 * An entity.
062 */
063 ENTITY,
064 /**
065 * A run of ignorable whitespace.
066 */
067 IGNORABLE_WHITESPACE,
068 /**
069 * A processing instruction.
070 */
071 PROCESSING_INSTRUCTION,
072 /**
073 * A skipped entity.
074 */
075 SKIPPED_ENTITY
076 }