286N/A * reserved comment block 286N/A * DO NOT REMOVE OR ALTER! 286N/A * Copyright 2001-2005 The Apache Software Foundation. 286N/A * Licensed under the Apache License, Version 2.0 (the "License"); 286N/A * you may not use this file except in compliance with the License. 286N/A * You may obtain a copy of the License at 286N/A * Unless required by applicable law or agreed to in writing, software 286N/A * distributed under the License is distributed on an "AS IS" BASIS, 286N/A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 286N/A * See the License for the specific language governing permissions and 286N/A * limitations under the License. 286N/A * @author Rahul Srivastava, Sun Microsystems Inc. 286N/A * @author Sandy Gao, IBM 286N/A /** Property identifier: error reporter. */ 286N/A /** Feature identifier: generate synthetic annotations. */ 286N/A // namespace context, needed for producing 286N/A // representations of annotations 286N/A /** Default constructor. */ 286N/A // Reference to the current annotation element. 286N/A // where an annotation element itself begins 286N/A // -1 means not in an annotation's scope 286N/A // Where xs:appinfo or xs:documentation starts; 286N/A // -1 means not in the scope of either of the two elements. 286N/A // The current element depth 286N/A // Use to report the error when characters are not allowed. 286N/A // fields for generate-synthetic annotations feature 286N/A // XMLDocumentHandler methods 286N/A }
// startDocument(XMLLocator,String,NamespaceContext, Augmentations) 286N/A * The end of the document. 286N/A * @param augs Additional information that may include infoset augmentations 286N/A * @throws XNIException Thrown by handler to signal an error. 286N/A // To debug the DOM created uncomment the line below 286N/A // schemaDOM.printDOM(); 286N/A * @param text The text in the comment. 286N/A * @param augs Additional information that may include infoset augmentations 286N/A * @exception XNIException 286N/A * Thrown by application to signal an error. 286N/A * A processing instruction. Processing instructions consist of a 286N/A * target name and, optionally, text data. The data is only meaningful 286N/A * Typically, a processing instruction's data will contain a series 286N/A * of pseudo-attributes. These pseudo-attributes follow the form of 286N/A * element attributes but are <strong>not</strong> parsed or presented 286N/A * to the application as anything other than text. The application is 286N/A * responsible for parsing the data. 286N/A * @param target The target. 286N/A * @param data The data or null if none specified. 286N/A * @param augs Additional information that may include infoset augmentations 286N/A * @exception XNIException 286N/A * Thrown by handler to signal an error. 286N/A * @param text The content. 286N/A * @param augs Additional information that may include infoset augmentations 286N/A * @exception XNIException 286N/A * Thrown by handler to signal an error. 286N/A // when it's not within xs:appinfo or xs:documentation 286N/A // and there is a non-whitespace character 286N/A // the string we saw: starting from the first non-whitespace character. 286N/A // don't call super.characters() when it's not within one of the 2 286N/A // annotation elements: the traversers ignore them anyway. We can 286N/A // when it's within either of the 2 elements, characters are allowed 286N/A // and we need to store them. 286N/A * The start of an element. 286N/A * @param element The name of the element. 286N/A * @param attributes The element attributes. 286N/A * @param augs Additional information that may include infoset augmentations 286N/A * @exception XNIException 286N/A * Thrown by handler to signal an error. 286N/A // while it is true that non-whitespace character data 286N/A // may only occur in appInfo or documentation 286N/A // elements, it's certainly legal for comments and PI's to 286N/A // occur as children of annotation; we need 286N/A // to account for these here. 286N/A // avoid falling through; don't call startElement in this case 286N/A * @param element The name of the element. 286N/A * @param attributes The element attributes. 286N/A * @param augs Additional information that may include infoset augmentations 286N/A * @exception XNIException 286N/A * Thrown by handler to signal an error. 286N/A // the order of events that occurs here is: 286N/A // schemaDOM.emptyElement (basically the same as startElement then endElement) 286N/A // schemaDOM.endAnnotationElement (if applicable) 286N/A // the order of events that would occur if this was <element></element>: 286N/A // schemaDOM.startElement 286N/A // schemaDOM.endAnnotationElement (if applicable) 286N/A // schemaDOM.endElementElement 286N/A // Thus, we can see that the order of events isn't the same. However, it doesn't 286N/A // seem to matter. -- PJM 286N/A // this is messed up, but a case to consider: 286N/A // this is messed up, but a case to consider: 286N/A * The end of an element. 286N/A * @param element The name of the element. 286N/A * @param augs Additional information that may include infoset augmentations 286N/A * @exception XNIException 286N/A * Thrown by handler to signal an error. 286N/A // when we reach the endElement of xs:appinfo or xs:documentation, 286N/A // change fInnerAnnotationDepth to -1 286N/A }
else {
// inside a child of annotation 286N/A }
else {
// not in an annotation at all 286N/A * Ignorable whitespace. For this method to be called, the document 286N/A * source must have some way of determining that the text containing 286N/A * only whitespace characters should be considered ignorable. For 286N/A * example, the validator can determine if a length of whitespace 286N/A * characters in the document are ignorable based on the element 286N/A * @param text The ignorable whitespace. 286N/A * @param augs Additional information that may include infoset augmentations 286N/A * @exception XNIException 286N/A * Thrown by handler to signal an error. 286N/A // unlikely to be called, but you never know... 286N/A * The start of a CDATA section. 286N/A * @param augs Additional information that may include infoset augmentations 286N/A * @exception XNIException 286N/A * Thrown by handler to signal an error. 286N/A // only deal with CDATA boundaries within an annotation. 286N/A * The end of a CDATA section. 286N/A * @param augs Additional information that may include infoset augmentations 286N/A * @exception XNIException 286N/A * Thrown by handler to signal an error. 286N/A // only deal with CDATA boundaries within an annotation. 286N/A * Returns the DOM document object. 286N/A * Delegates to SchemaParsingConfig.setFeature 286N/A * Delegates to SchemaParsingConfig.getFeature 286N/A * Delegates to SchemaParsingConfig.setProperty. 286N/A * Delegates to SchemaParsingConfig.getProperty. 286N/A * Delegates to SchemaParsingConfig.setEntityResolver. 286N/A * @param er XMLEntityResolver 286N/A * Delegates parsing to SchemaParsingConfig 286N/A * Reset SchemaParsingConfig 286N/A * ResetNodePool on SchemaParsingConfig 286N/A * A simple boolean based stack. 286N/A /** Returns the size of the stack. */ 286N/A /** Pushes a value onto the stack. */ 286N/A /** Pops a value off of the stack. */ 286N/A /** Clears the stack. */ 286N/A /** Ensures capacity. */