/** * Convenience method. Returns a top-level attribute declaration. * @param name The name of the declaration. * @return A top-level attribute declaration or null if such declaration * does not exist. */ public XSAttributeDeclaration getAttributeDeclaration(String name) { return getGlobalAttributeDecl(name); }
boolean allowAttribute(XSWildcardDecl attrWildcard, QName name, SchemaGrammar grammar) { if (attrWildcard.allowQName(name)) { if (grammar == null || !attrWildcard.fDisallowedDefined) { return true; } return (grammar.getGlobalAttributeDecl(name.localpart) == null); } return false; }
/** * Convenience method. Returns a top-level attribute declaration. * @param name The name of the declaration. * @param namespace The namespace of the definition, otherwise null. * @param loc The schema location where the component was defined * @return A top-level attribute declaration or null if such declaration * does not exist. */ public XSAttributeDeclaration getAttributeDeclaration(String name, String namespace, String loc) { SchemaGrammar sg = (SchemaGrammar)fGrammarMap.get(null2EmptyString(namespace)); if (sg == null) { return null; } return sg.getGlobalAttributeDecl(name, loc); }
attrDecl = sGrammar.getGlobalAttributeDecl(attrLocal); if (attrDecl == null) { continue;
dstDecl = dstGrammar.getGlobalAttributeDecl(srcDecl.getName()); if (dstDecl == null) { dstGrammar.addGlobalAttributeDecl(srcDecl); dstDecl = dstGrammar.getGlobalAttributeDecl(name, location); if (dstDecl == null) { dstGrammar.addGlobalAttributeDecl(srcDecl, location);
if (sg.getGlobalAttributeDecl(name) == component) { return true; if (sg.getGlobalAttributeDecl(name) == component) { return true;
protected Object getGlobalDeclFromGrammar(SchemaGrammar sGrammar, int declType, String localpart) { Object retObj = null; switch (declType) { case ATTRIBUTE_TYPE : retObj = sGrammar.getGlobalAttributeDecl(localpart); break; case ATTRIBUTEGROUP_TYPE : retObj = sGrammar.getGlobalAttributeGroupDecl(localpart); break; case ELEMENT_TYPE : retObj = sGrammar.getGlobalElementDecl(localpart); break; case GROUP_TYPE : retObj = sGrammar.getGlobalGroupDecl(localpart); break; case IDENTITYCONSTRAINT_TYPE : retObj = sGrammar.getIDConstraintDecl(localpart); break; case NOTATION_TYPE : retObj = sGrammar.getGlobalNotationDecl(localpart); break; case TYPEDECL_TYPE : retObj = sGrammar.getGlobalTypeDecl(localpart); break; } return retObj; }
protected Object getGlobalDeclFromGrammar(SchemaGrammar sGrammar, int declType, String localpart, String schemaLoc) { Object retObj = null; switch (declType) { case ATTRIBUTE_TYPE : retObj = sGrammar.getGlobalAttributeDecl(localpart, schemaLoc); break; case ATTRIBUTEGROUP_TYPE : retObj = sGrammar.getGlobalAttributeGroupDecl(localpart, schemaLoc); break; case ELEMENT_TYPE : retObj = sGrammar.getGlobalElementDecl(localpart, schemaLoc); break; case GROUP_TYPE : retObj = sGrammar.getGlobalGroupDecl(localpart, schemaLoc); break; case IDENTITYCONSTRAINT_TYPE : retObj = sGrammar.getIDConstraintDecl(localpart, schemaLoc); break; case NOTATION_TYPE : retObj = sGrammar.getGlobalNotationDecl(localpart, schemaLoc); break; case TYPEDECL_TYPE : retObj = sGrammar.getGlobalTypeDecl(localpart, schemaLoc); break; } return retObj; }
declToTraverse.uri == SchemaSymbols.URI_XSI) { SchemaGrammar xsiGrammar = SchemaGrammar.getXSIGrammar(fSchemaVersion); Object retObj = xsiGrammar.getGlobalAttributeDecl(declToTraverse.localpart); if (retObj != null) { return retObj;
case XSConstants.ATTRIBUTE_DECLARATION : if (((XSAttributeDecl) component).getScope() == XSAttributeDecl.SCOPE_GLOBAL) { if (sg.getGlobalAttributeDecl(name) == null) { sg.addGlobalAttributeDecl((XSAttributeDecl) component); if (sg.getGlobalAttributeDecl(name, "") == null) { sg.addGlobalAttributeDecl((XSAttributeDecl) component, ""); if (sg.getGlobalAttributeDecl(name) == null) { sg.addGlobalAttributeGroupDecl((XSAttributeGroupDecl) component); if (sg.getGlobalAttributeDecl(name, "") == null) { sg.addGlobalAttributeGroupDecl((XSAttributeGroupDecl) component, "");
if (grammar.getGlobalAttributeDecl(nameAtt) == null) { grammar.addGlobalAttributeDecl(attribute); final XSAttributeDecl attribute2 = grammar.getGlobalAttributeDecl(nameAtt, loc); if (attribute2 == null) { grammar.addGlobalAttributeDecl(attribute, loc);
currDecl = grammar.getGlobalAttributeDecl(fTempQName.localpart);
for (int i = 0; i < length; ++i) { XSAttributeDecl decl = (XSAttributeDecl) map.item(i); if (cachedGrammar.getGlobalAttributeDecl(decl.getName()) == null) { cachedGrammar.addGlobalAttributeDecl(decl);