private void addGlobals(SchemaGrammar g) { XSNamedMap map = g.getComponents(XSConstants.ELEMENT_DECLARATION); for (int i = 0; i < map.getLength(); i++) { XSElementDecl e = (XSElementDecl)map.item(i); globals.add(e.fTargetNamespace); globals.add(e.fName); } }
private void addGlobalElementDecls(SchemaGrammar srcGrammar, SchemaGrammar dstGrammar) { XSNamedMap components = srcGrammar.getComponents(XSConstants.ELEMENT_DECLARATION); int len = components.getLength(); XSElementDecl srcDecl, dstDecl;
private void addGlobalTypeDecls(SchemaGrammar srcGrammar, SchemaGrammar dstGrammar) { XSNamedMap components = srcGrammar.getComponents(XSConstants.TYPE_DEFINITION); int len = components.getLength(); XSTypeDefinition srcDecl, dstDecl;
private void mergeSchemaGrammars(SchemaGrammar cachedGrammar, SchemaGrammar newGrammar) { XSNamedMap map = newGrammar.getComponents(XSConstants.ELEMENT_DECLARATION); int length = map.getLength(); for (int i = 0; i < length; ++i) { map = newGrammar.getComponents(XSConstants.ATTRIBUTE_DECLARATION); length = map.getLength(); for (int i = 0; i < length; ++i) { map = newGrammar.getComponents(XSConstants.TYPE_DEFINITION); length = map.getLength(); for (int i = 0; i < length; ++i) { map = newGrammar.getComponents(XSConstants.ATTRIBUTE_GROUP); length = map.getLength(); for (int i = 0; i < length; ++i) { map = newGrammar.getComponents(XSConstants.MODEL_GROUP); length = map.getLength(); for (int i = 0; i < length; ++i) { map = newGrammar.getComponents(XSConstants.NOTATION_DECLARATION); length = map.getLength(); for (int i = 0; i < length; ++i) {
private void addGlobalNotationDecls(SchemaGrammar srcGrammar, SchemaGrammar dstGrammar) { XSNamedMap components = srcGrammar.getComponents(XSConstants.NOTATION_DECLARATION); int len = components.getLength(); XSNotationDecl srcDecl, dstDecl;
private void addGlobalGroupDecls(SchemaGrammar srcGrammar, SchemaGrammar dstGrammar) { XSNamedMap components = srcGrammar.getComponents(XSConstants.MODEL_GROUP_DEFINITION); int len = components.getLength(); XSGroupDecl srcDecl, dstDecl;
private void addGlobalAttributeGroupDecls(SchemaGrammar srcGrammar, SchemaGrammar dstGrammar) { XSNamedMap components = srcGrammar.getComponents(XSConstants.ATTRIBUTE_GROUP); int len = components.getLength(); XSAttributeGroupDecl srcDecl, dstDecl;
private void addGlobalAttributeDecls(SchemaGrammar srcGrammar, SchemaGrammar dstGrammar) { XSNamedMap components = srcGrammar.getComponents(XSConstants.ATTRIBUTE_DECLARATION); int len = components.getLength(); XSAttributeDecl srcDecl, dstDecl;