286N/A * reserved comment block 286N/A * DO NOT REMOVE OR ALTER! 286N/A * The Apache Software License, Version 1.1 286N/A * Copyright (c) 2001-2003 The Apache Software Foundation. All rights 286N/A * Redistribution and use in source and binary forms, with or without 286N/A * modification, are permitted provided that the following conditions 286N/A * 1. Redistributions of source code must retain the above copyright 286N/A * notice, this list of conditions and the following disclaimer. 286N/A * 2. Redistributions in binary form must reproduce the above copyright 286N/A * notice, this list of conditions and the following disclaimer in 286N/A * the documentation and/or other materials provided with the 286N/A * 3. The end-user documentation included with the redistribution, 286N/A * if any, must include the following acknowledgment: 286N/A * "This product includes software developed by the 286N/A * Alternately, this acknowledgment may appear in the software itself, 286N/A * if and wherever such third-party acknowledgments normally appear. 286N/A * 4. The names "Xerces" and "Apache Software Foundation" must 286N/A * not be used to endorse or promote products derived from this 286N/A * software without prior written permission. For written 286N/A * permission, please contact apache@apache.org. 286N/A * 5. Products derived from this software may not be called "Apache", 286N/A * nor may "Apache" appear in their name, without prior written 286N/A * permission of the Apache Software Foundation. 286N/A * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED 286N/A * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 286N/A * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 286N/A * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR 286N/A * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 286N/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 286N/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 286N/A * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 286N/A * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 286N/A * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 286N/A * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 286N/A * ==================================================================== 286N/A * This software consists of voluntary contributions made by many 286N/A * individuals on behalf of the Apache Software Foundation and was 286N/A * originally based on software copyright (c) 1999, International 286N/A * information on the Apache Software Foundation, please see 286N/A * @author Arun Yadav, Sun Microsystem 286N/A // recognized features and properties 286N/A /** Property identifier: error handler. */ 286N/A /** Property identifier: grammar pool . */ 286N/A /** Property identifier: grammar pool . */ 286N/A /** Recognized features. */ 286N/A /** Feature defaults. */ 286N/A /** Recognized properties. */ 286N/A /** Property defaults. */ 286N/A //protected String fPointerSchema; 286N/A // The current element depth. 286N/A // This is used to access the appropriate level of the following stacks. 286N/A // The depth of the first element to actually be part of the result infoset. 286N/A // This will normally be 1, but it could be larger when the top-level item 286N/A // is an include, and processing goes to the fallback. 286N/A // this value must be at least 1 286N/A // Used to ensure that fallbacks are always children of include elements, 286N/A // and that include elements are never children of other include elements. 286N/A // An index contains true if the ancestor of the current element which resides 286N/A // at that depth was an include element. 286N/A // Ensures that only one fallback element can be at a single depth. 286N/A // An index contains true if we have seen any fallback elements at that depth, 286N/A // and it is only reset to false when the end tag of the parent is encountered. 286N/A // The state of the processor at each given depth. 286N/A // START OF IMPLEMENTATION OF XMLComponent methods ////// 286N/A // componentManager doesn't support this feature, 286N/A // so we won't worry about it 286N/A dtdValidator = (XMLDTDValidator)componentManager.getProperty( Constants.XERCES_PROPERTY_PREFIX + Constants.DTD_VALIDATOR_PROPERTY); 286N/A }
// reset(XMLComponentManager) 286N/A * Returns a list of feature identifiers that are recognized by 286N/A * this component. This method may return null if no features 286N/A * are recognized by this component. 286N/A }
// getRecognizedFeatures():String[] 286N/A * Sets the state of a feature. This method is called by the component 286N/A * manager any time after reset when a feature changes state. 286N/A * <strong>Note:</strong> Components should silently ignore features 286N/A * that do not affect the operation of the component. 286N/A * @param featureId The feature identifier. 286N/A * @param state The state of the feature. 286N/A * @throws SAXNotRecognizedException The component should not throw 286N/A * @throws SAXNotSupportedException The component should not throw 286N/A }
// setFeature(String,boolean) 286N/A * Returns a list of property identifiers that are recognized by 286N/A * this component. This method may return null if no properties 286N/A * are recognized by this component. 286N/A }
// getRecognizedProperties():String[] 286N/A * Sets the value of a property. This method is called by the component 286N/A * manager any time after reset when a property changes value. 286N/A * <strong>Note:</strong> Components should silently ignore properties 286N/A * that do not affect the operation of the component. 286N/A * @param propertyId The property identifier. 286N/A * @param value The value of the property. 286N/A * @throws SAXNotRecognizedException The component should not throw 286N/A * @throws SAXNotSupportedException The component should not throw 286N/A }
// setProperty(String,Object) 286N/A * Returns the default state for a feature, or null if this 286N/A * component does not want to report a default value for this 286N/A * @param featureId The feature identifier. 286N/A }
// getFeatureDefault(String):Boolean 286N/A * Returns the default state for a property, or null if this 286N/A * component does not want to report a default value for this 286N/A * @param propertyId The property identifier. 286N/A }
// getPropertyDefault(String):Object 286N/A ///////// END OF IMPLEMENTATION OF XMLComponents methods. ////////// 286N/A //////// START OF IMPLEMENTATION OF XMLDOCUMENTSOURCE INTERFACE ///////// 286N/A /////// END OF IMPLENTATION OF XMLDOCUMENTSOURCE INTERFACE /////////// 286N/A /////////////// Implementation of XPointerSchema Methods ////////////////////// 286N/A * set the Schema Name eg element , xpointer 286N/A * Return Schema Name eg element , xpointer 286N/A * Parent Contenhandler for the this contenthandler. 286N/A * // not sure about the parameter type. It can be Contenthandler instead of Object type. 286N/A * return the Parent Contenthandler 286N/A * Content of the XPointer Schema. Xpath to be resolved. 286N/A * Return the XPointer Schema. 286N/A ///////////End Implementation of XPointerSchema Methods ////////////////////// 286N/A //////////// Tokens Playground /////////////////// 286N/A /////////// END TOKEN PLAYGROUND /////////////// 286N/A ///// START OF IMPLEMTATION OF XMLDocumentHandler methods ////////// 286N/A // we won't worry about when error reporter is null, since there should always be 286N/A // at least the default error reporter 286N/A // used to know whether to pass declarations to the document handler 286N/A}
// class XPointerElementhandler