286N/A * reserved comment block 286N/A * DO NOT REMOVE OR ALTER! 286N/A * Copyright 2002, 2003,2004 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 * All information specific to XML Schema grammars. 286N/A * @author Neil Graham, IBM 286N/A * @author Neeraj Bajaj, SUN Microsystems. 286N/A // used to indicate what triggered the call 286N/A * Indicate that this description was just initialized. 286N/A * Indicate that the current schema document is <include>d by another 286N/A * Indicate that the current schema document is <redefine>d by another 286N/A * Indicate that the current schema document is <import>ed by another 286N/A * Indicate that the current schema document is being preparsed. 286N/A * Indicate that the parse of the current schema document is triggered 286N/A * instance document. This value is only used if we don't defer the loading 286N/A * Indicate that the parse of the current schema document is triggered by 286N/A * the occurrence of an element whose namespace is the target namespace 286N/A * of this schema document. This value is only used if we do defer the 286N/A * loading of schema documents until a component from that namespace is 286N/A * referenced from the instance. 286N/A * Indicate that the parse of the current schema document is triggered by 286N/A * the occurrence of an attribute whose namespace is the target namespace 286N/A * of this schema document. This value is only used if we do defer the 286N/A * loading of schema documents until a component from that namespace is 286N/A * referenced from the instance. 286N/A * Indicate that the parse of the current schema document is triggered by 286N/A * the occurrence of an "xsi:type" attribute, whose value (a QName) has 286N/A * the target namespace of this schema document as its namespace. 286N/A * This value is only used if we do defer the loading of schema documents 286N/A * until a component from that namespace is referenced from the instance. 286N/A // REVISIT: write description of these fields 286N/A * the type of the grammar (e.g., DTD or XSD); 286N/A * @see com.sun.org.apache.xerces.internal.xni.grammars.Grammar 286N/A * Get the context. The returned value is one of the pre-defined 286N/A * CONTEXT_xxx constants. 286N/A * @return the value indicating the context 286N/A * If the context is "include" or "redefine", then return the target 286N/A * namespace of the enclosing schema document; otherwise, the expected 286N/A * target namespace of this document. 286N/A * For import and references from the instance document, it's possible to 286N/A * have multiple hints for one namespace. So this method returns an array, 286N/A * which contains all location hints. 286N/A * @return an array of all location hints associated to the expected 286N/A * this call returns the name of such triggering component: the name of 286N/A * @return the name of the triggering component 286N/A * If a call is triggered by an attribute or xsi:type, then this mehtod 286N/A * returns the enclosing element of such element. 286N/A * @return the name of the enclosing element 286N/A * this call returns all attribute of such element (or enclosing element). 559N/A * @return true is the schema is external 286N/A * Compares this grammar with the given grammar. Currently, we compare 286N/A * the target namespaces. 286N/A * @param descObj The description of the grammar to be compared with 286N/A * @return True if they are equal, else false 286N/A else // fNamespace == null 286N/A * Returns the hash code of this grammar 286N/A * @return The hash code 286N/A //fLocationHints = locationHints ; 286N/A * resets all the fields