Lines Matching defs:namespace
172 /** Feature identifier: namespace growth */
180 /** Feature identifier: namespace prefixes. */
308 // this hashtable is keyed on by a target namespace. Its values
310 // with the key target namespace.
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.
365 // map between <redefine> elements and the namespace support
386 //handle namespace growth feature
514 // no namespace schema in the bucket, findGrammar will always return the
515 // no namespace schema.
590 // Since now we've discovered a namespace, we need to update xsd key
601 // When namespace growth is enabled and a null location is provided we cannot tell
644 // get its target namespace
653 // for imported namespace
810 // if the referred document has a target namespace differing
828 // document to have a target namespace, unless we are preparsing a schema
830 // set the target namespace of the description
848 // a schema document can always access it's own target namespace
853 // we have a namespace collision
939 // a document can't import another document with the same namespace
946 // if this namespace has not been imported by this document,
955 // also record the fact that one namespace imports another one
960 // if no namespace was imported, create new Vector
979 // if a grammar with the same namespace and location exists (or being
1003 // the first time we see a location for a given namespace.
1016 // store the namespace decls of the redefine element
1184 * that has the same namespace as newGrammar, but a different instance,
1392 // use the namespace decls for the redefine, instead of for the parent <schema>
1481 // is found for the given namespace uri
1519 final String namespace = decl.getNamespace();
1520 final String declKey = (namespace == null || namespace.length() == 0)
1521 ? "," + decl.getName() : namespace + "," + decl.getName();
1530 final String namespace = decl.getNamespace();
1531 final String declKey = (namespace == null || namespace.length() == 0)
1532 ? "," + decl.getName() : namespace + "," + decl.getName();
1541 final String namespace = decl.getNamespace();
1542 final String declKey = (namespace == null || namespace.length() == 0)
1543 ? "," + decl.getName() : namespace + "," + decl.getName();
1552 final String namespace = decl.getNamespace();
1553 final String declKey = (namespace == null || namespace.length() == 0)
1554 ? "," + decl.getName() : namespace + "," + decl.getName();
1563 final String namespace = decl.getNamespace();
1564 final String declKey = (namespace == null || namespace.length() == 0)
1565 ? "," + decl.getName() : namespace + "," + decl.getName();
1574 final String namespace = decl.getNamespace();
1575 final String declKey = (namespace == null || namespace.length() == 0)
1576 ? "," + decl.getName() : namespace + "," + decl.getName();
1585 final String namespace = decl.getNamespace();
1586 final String declKey = (namespace == null || namespace.length() == 0)
1587 ? "," + decl.getIdentityConstraintName() : namespace + "," + decl.getIdentityConstraintName();
1662 // now check whether this document can access the requsted namespace
1673 // check whether there is grammar for the requested namespace
1778 // If we are tolerating duplicate declarations and allowing namespace growth
1875 // if the parent is <redefine> use the namespace delcs for it.
1915 // proper namespace binding.
2002 // decls and namespace bindings they might find handy.
2508 // and if there exist any, and namespace growth is
3015 private void expandRelatedAttributeComponents(XSAttributeDeclaration decl, Vector componentList, String namespace, Map<String, Vector> dependencies) {
3016 addRelatedType(decl.getTypeDefinition(), componentList, namespace, dependencies);
3020 addRelatedType(enclosingType, componentList, namespace, dependencies);
3024 private void expandRelatedElementComponents(XSElementDeclaration decl, Vector componentList, String namespace, Map<String, Vector> dependencies) {
3025 addRelatedType(decl.getTypeDefinition(), componentList, namespace, dependencies);
3029 addRelatedType(enclosingType, componentList, namespace, dependencies);
3034 addRelatedElement(subElemDecl, componentList, namespace, dependencies);
3038 private void expandRelatedTypeComponents(XSTypeDefinition type, Vector componentList, String namespace, Map<String, Vector> dependencies) {
3040 expandRelatedComplexTypeComponents((XSComplexTypeDecl) type, componentList, namespace, dependencies);
3043 expandRelatedSimpleTypeComponents((XSSimpleTypeDefinition) type, componentList, namespace, dependencies);
3048 String namespace, Map<String, Vector> dependencies) {
3049 expandRelatedModelGroupComponents(modelGroupDef.getModelGroup(), componentList, namespace, dependencies);
3053 , String namespace, Map<String, Vector> dependencies) {
3054 expandRelatedAttributeUsesComponents(attrGroup.getAttributeUses(), componentList, namespace, dependencies);
3057 private void expandRelatedComplexTypeComponents(XSComplexTypeDecl type, Vector componentList, String namespace, Map<String, Vector> dependencies) {
3058 addRelatedType(type.getBaseType(), componentList, namespace, dependencies);
3059 expandRelatedAttributeUsesComponents(type.getAttributeUses(), componentList, namespace, dependencies);
3062 expandRelatedParticleComponents(particle, componentList, namespace, dependencies);
3066 private void expandRelatedSimpleTypeComponents(XSSimpleTypeDefinition type, Vector componentList, String namespace, Map<String, Vector> dependencies) {
3069 addRelatedType(baseType, componentList, namespace, dependencies);
3074 addRelatedType(itemType, componentList, namespace, dependencies);
3079 addRelatedType(primitiveType, componentList, namespace, dependencies);
3085 addRelatedType((XSTypeDefinition)memberTypes.item(i), componentList, namespace, dependencies);
3091 String namespace, Map<String, Vector> dependencies) {
3094 expandRelatedAttributeUseComponents((XSAttributeUse)attrUses.item(i), componentList, namespace, dependencies);
3099 String namespace, Map<String, Vector> dependencies) {
3100 addRelatedAttribute(component.getAttrDeclaration(), componentList, namespace, dependencies);
3104 String namespace, Map<String, Vector> dependencies) {
3108 addRelatedElement((XSElementDeclaration) term, componentList, namespace, dependencies);
3111 expandRelatedModelGroupComponents((XSModelGroup) term, componentList, namespace, dependencies);
3119 String namespace, Map<String, Vector> dependencies) {
3123 expandRelatedParticleComponents((XSParticle)particles.item(i), componentList, namespace, dependencies);
3127 private void addRelatedType(XSTypeDefinition type, Vector componentList, String namespace, Map<String, Vector> dependencies) {
3131 final Vector importedNamespaces = findDependentNamespaces(namespace, dependencies);
3132 addNamespaceDependency(namespace, type.getNamespace(), importedNamespaces);
3138 expandRelatedTypeComponents(type, componentList, namespace, dependencies);
3142 private void addRelatedElement(XSElementDeclaration decl, Vector componentList, String namespace, Map<String, Vector> dependencies) {
3145 Vector importedNamespaces = findDependentNamespaces(namespace, dependencies);
3146 addNamespaceDependency(namespace, decl.getNamespace(), importedNamespaces);
3151 expandRelatedElementComponents(decl, componentList, namespace, dependencies);
3155 private void addRelatedAttribute(XSAttributeDeclaration decl, Vector componentList, String namespace, Map<String, Vector> dependencies) {
3158 Vector importedNamespaces = findDependentNamespaces(namespace, dependencies);
3159 addNamespaceDependency(namespace, decl.getNamespace(), importedNamespaces);
3164 expandRelatedAttributeComponents(decl, componentList, namespace, dependencies);
3179 final String namespace = component.getNamespace();
3181 desc.setNamespace(namespace);
3259 String namespace;
3263 namespace = entry.getKey();
3266 expandImportList(namespace, importList);
3271 private void expandImportList(String namespace, Vector namespaceList) {
3272 SchemaGrammar sg = fGrammarBucket.getGrammar(namespace);
3348 private Vector findDependentNamespaces(String namespace, Map table) {
3349 final String ns = null2EmptyString(namespace);
3370 private void reportSharingError(String namespace, String name) {
3371 final String qName = (namespace == null)
3372 ? "," + name : namespace + "," + name;
3784 String namespace = qName.substring(0, namespaceEnd);
3785 SchemaGrammar grammar = fGrammarBucket.getGrammar(emptyString2Null(namespace));
4244 * Where: N/L: duplicate when they have the same namespace and location.
4248 * N/P: not possible. imp/pre/ins are referenced by namespace.
4250 * namespace, we create a grammar and store it in the grammar
4251 * bucket. when we see another reference to the same namespace,
4252 * we first check whether a grammar with the same namespace is
4259 * 2. They have the same namespace;
4270 // for inclue/redefine, this is the enclosing namespace
4271 // for import/preparse/instance, this is the target namespace
4282 // we use the hashcode of the namespace as the hashcoe of this key.
4299 // condition 2: same namespace