dstDecl = dstGrammar.getGlobalAttributeGroupDecl(srcDecl.getName()); if (dstDecl == null) { dstGrammar.addGlobalAttributeGroupDecl(srcDecl); dstDecl = dstGrammar.getGlobalAttributeGroupDecl(name, location); if (dstDecl == null) { dstGrammar.addGlobalAttributeGroupDecl(srcDecl, location);
grammar.addGlobalAttributeGroupDecl(attrGrp); final XSAttributeGroupDecl attrGrp2 = grammar.getGlobalAttributeGroupDecl(attrGrp.fName, loc); if (attrGrp2 == null) { grammar.addGlobalAttributeGroupDecl(attrGrp, loc);
case XSConstants.ATTRIBUTE_GROUP : if (sg.getGlobalAttributeDecl(name) == null) { sg.addGlobalAttributeGroupDecl((XSAttributeGroupDecl) component); sg.addGlobalAttributeGroupDecl((XSAttributeGroupDecl) component, "");
XSAttributeGroupDecl decl = (XSAttributeGroupDecl) map.item(i); if (cachedGrammar.getGlobalAttributeGroupDecl(decl.getName()) == null) { cachedGrammar.addGlobalAttributeGroupDecl(decl);