Lines Matching defs:is

15  * distributed under the License is distributed on an "AS IS" BASIS,
120 * The purpose of this class is to co-ordinate the construction of a
246 // this string gets appended to redefined names; it's purpose is to be
266 // They are keyed with a QName (that is, String("URI,localpart) and
303 // this hashtable is keyed on by XSDocumentInfo objects. Its values
308 // this hashtable is keyed on by a target namespace. Its values
311 // if an imprted schema has absent namespace, the value "null" is stored.
314 // if the importing schema has absent namespace, empty string is stored.
321 // Records which nodes are hidden when the input is a DOMInputSource.
345 // schema document. This combination is used so that the user's
347 // schema document that is included in multiple other schemas.
351 // this is useful to resolve a uri relative to the referring document
357 // This hashtable's job is to act as a link between the Schema Element and its
370 // they redefine by restriction (implicitly). It is up to the
494 * in case. A reset(XMLComponentManager) must be called before this methods is called.
495 * @param is
501 public SchemaGrammar parseSchema(XMLInputSource is, XSDDescription desc,
511 // the desc.targetNamespace is always null.
513 // the schema is already in the bucket, since in the case we have
517 // first try to find it in the bucket/pool, return if one is found
530 if (grammar.getDocumentLocations().contains(XMLEntityManager.expandSystemId(is.getSystemId(), is.getBaseSystemId(), false))) {
553 if (is instanceof DOMInputSource) {
554 schemaRoot = getSchemaDocument(schemaNamespace, (DOMInputSource) is,
558 else if (is instanceof SAXInputSource) {
559 schemaRoot = getSchemaDocument(schemaNamespace, (SAXInputSource) is,
563 else if (is instanceof StAXInputSource) {
564 schemaRoot = getSchemaDocument(schemaNamespace, (StAXInputSource) is,
568 else if (is instanceof XSInputSource) {
569 schemaRoot = getSchemaDocument((XSInputSource) is, desc);
572 schemaRoot = getSchemaDocument(schemaNamespace, is,
576 } //is instanceof XMLInputSource
580 if (is instanceof XSInputSource) {
599 String schemaId = XMLEntityManager.expandSystemId(is.getSystemId(), is.getBaseSystemId(), false);
601 // When namespace growth is enabled and a null location is provided we cannot tell
619 fRoot = constructTrees(schemaRoot, is.getSystemId(), desc, grammar != null);
721 * grammar pool. If a grammar is found in the pool, then add it (and all
772 // called to parse is correct.
788 // targetNamespace="" is not valid, issue a warning, and ignore it
799 // if the caller/expected NS is not absent, we use the first column
827 // now there is no caller/expected NS, it's an error for the referred
837 // if the caller/expected NS is absent, we use the second column
947 // then import if multiple imports support is enabled.
1002 // If "findGrammar" returns a grammar, then this is not the
1012 // make sure TNS is right (don't care about redef contents
1067 // schemaLocation is required on <include> and <redefine>
1112 // If the schema is duplicate, we needn't call constructTrees() again.
1163 * If a new instance is found, we update the import list with the
1211 // by the spec. It is also this method's job to rename redefined
1225 // is a depth-first traversal.
1246 // this loop makes sure the <schema> element ordering is
1277 // and all we need to do is error-check+rename our kkids:
1286 // and all we need to do is error-check+rename our kkids:
1300 // and all we need to do is error-check+rename our kids:
1363 // the process here is very similar to that in
1411 // annotations will have been processed already; this is now
1481 // is found for the given namespace uri
1517 // add a global attribute decl from a current schema load (only if no existing decl is found)
1528 // add a global attribute group decl from a current schema load (only if no existing decl is found)
1539 // add a global element decl from a current schema load (only if no existing decl is found)
1550 // add a global group decl from a current schema load (only if no existing decl is found)
1561 // add a global notation decl from a current schema load (only if no existing decl is found)
1572 // add a global type decl from a current schema load (only if no existing decl is found)
1583 // add a identity constraint decl from a current schema load (only if no existing decl is found)
1622 // since it is forbidden for traversers to talk to each other
1625 // for the traversal of some declaration. An XSDocumentInfo is
1626 // required because the XSDocumentInfo that the traverser is traversing
1627 // may bear no relation to the one the handler is operating on.
1630 // 2. if so, determine if there is a path from currSchema to the
1649 // so if the requested component is a type, and could be found in the
1673 // check whether there is grammar for the requested namespace
1681 // if there is such grammar, check whether the requested component is in the grammar
1686 // if the component is parsed, return it
1703 // the component is not parsed, try to find a DOM element for it
1758 // a component is hidden, meaning either it's traversed, or being traversed.
1875 // if the parent is <redefine> use the namespace delcs for it.
1925 // This method determines whether there is a group
1928 // @param type: whether what's been redefined is an
1971 // after all parsing is complete. This we can simply do by running through
2039 * resolveSchema method is responsible for resolving location of the schema (using XMLEntityResolver),
2143 // file not found errors. but schemaHint=="" is perfectly
2150 // When the system id of the input source is used, first try to
2243 // If this is a Xerces SAX parser set the security manager if there is one
2260 // The feature isn't recognized or getting it is not supported.
2508 // and if there exist any, and namespace growth is
3332 // NOTE: always assuming that fNamespaceGrowth is enabled
3583 //For Schema validation, the secure feature is set to true by default
3640 // the purpose of this method is to keep up-to-date structures
3648 // if the stack is full, increase the size
3680 * if this component is being redefined that it lives in the
3684 * is a collision, it may be because we're redefining something we know about
3710 // (the parent of the colliding element is a redefine)
3795 // the purpose of this method is to take the component of the
3799 // relating to implicit restrictions is preserved for those
3861 // have to go one more level down; let another pass worry whether complexType is valid.
4025 // this method is superficial now. ---Jack
4040 Logic here is unnecessary after schema WG's recent decision to allow
4044 // now look in fDependencyMap to see if this is reachable
4232 * if the same document is referenced twice with the same key, then
4252 * we first check whether a grammar with the same namespace is
4253 * already in the bucket, which is true in this case, so we
4258 * 1. They are both "redefine", or neither is "redefine";
4263 * 2 input streams are provided, but no system ID is provided. We can't tell
4270 // for inclue/redefine, this is the enclosing namespace
4271 // for import/preparse/instance, this is the target namespace