if (!o2.allowNamespace(o1.fNamespaceList[i])) { return true; if (o1.allowNamespace(o2.fNamespaceList[i])) { return true;
public boolean overlapUPA(XSElementDecl element, XSWildcardDecl wildcard, SubstitutionGroupHandler sgHandler) { // if the wildcard allows the element if (wildcard.allowNamespace(element.fTargetNamespace)) return true; // or if the wildcard allows any element in the substitution group XSElementDecl[] subGroup = sgHandler.getSubstitutionGroup(element, fSchemaVersion); for (int i = subGroup.length-1; i >= 0; i--) { if (wildcard.allowNamespace(subGroup[i].fTargetNamespace)) return true; } return false; }
final public boolean allowName(String uri, String localPart) { // 1 The namespace name is valid with respect to C, as defined in Wildcard allows Namespace Name (3.10.4.3); // 2 C.{disallowed names} does not contain E. if (allowNamespace(uri)) { if (fDisallowedNamesList == null || fDisallowedNamesList.length == 0) { return true; } return isNameAllowed(uri, localPart); } // failed return false; }
private void checkNSCompat(XSElementDecl elem, int min1, int max1, XSWildcardDecl wildcard, int min2, int max2, boolean checkWCOccurrence) throws XMLSchemaException { // check Occurrence ranges if (checkWCOccurrence && !checkOccurrenceRange(min1,max1,min2,max2)) { throw new XMLSchemaException("rcase-NSCompat.2", new Object[]{ elem.fName, Integer.toString(min1), max1==SchemaSymbols.OCCURRENCE_UNBOUNDED?"unbounded":Integer.toString(max1), Integer.toString(min2), max2==SchemaSymbols.OCCURRENCE_UNBOUNDED?"unbounded":Integer.toString(max2)}); } // check wildcard allows namespace of element if (!wildcard.allowNamespace(elem.fTargetNamespace)) { throw new XMLSchemaException("rcase-NSCompat.1", new Object[]{elem.fName,elem.fTargetNamespace}); } }
if (!wildcard.allowNamespace(name.uri)) { reportSchemaError("wc-props-correct.4", new Object[] {name.uri, name.localpart}, elmNode);
String ns = (String)globals.get(i++); String name = (String)globals.get(i++); if (wc.allowNamespace(ns)) { addAN(ns, name); String ns = (String)siblingsB.get(i++); String name = (String)siblingsB.get(i++); if (wc.allowNamespace(ns)) { addAN(ns, name); String ns = (String)siblingsD.get(i++); String name = (String)siblingsD.get(i++); if (wc.allowNamespace(ns)) { addAN(ns, name);
if (fWildcards[elemIndex].allowNamespace(curElem.uri)) { matchingDecl = fWildcards[elemIndex]; break;
if (fWildcards[elemIndex].allowNamespace(curElem.uri)) { matchingDecl = fWildcards[elemIndex]; break;
return errorArgs; else if (!baseGroup.fAttributeWC.allowNamespace(attrDecl.fTargetNamespace)) { errorArgs = new Object[]{typeName, attrDecl.fName, attrDecl.fTargetNamespace==null?"":attrDecl.fTargetNamespace,