reportSchemaError("s4s-att-must-appear", new Object[]{"group (local)", "ref"}, elmNode); } else { annotation = traverseAnnotationDecl(child, attrValues, false, schemaDoc); child = DOMUtil.getNextSiblingElement(child); String text = DOMUtil.getSyntheticAnnotation(elmNode); if (text != null) { annotation = traverseSyntheticAnnotation(elmNode, text, attrValues, false, schemaDoc); reportSchemaError("s4s-elt-must-match.1", new Object[]{"group (local)", "(annotation?)", DOMUtil.getLocalName(elmNode)}, elmNode); if (group.fModelGroup.fCompositor == XSModelGroupImpl.MODELGROUP_ALL) { Long defaultVals = (Long)attrValues[XSAttributeChecker.ATTIDX_FROMDEFAULT]; particle = checkOccurrences(particle, SchemaSymbols.ELT_GROUP, (Element)elmNode.getParentNode(), GROUP_REF_WITH_ALL, defaultVals.longValue());
fComplexTypeTraverser.reset(fSymbolTable, fValidateAnnotations, locale); fElementTraverser.reset(fSymbolTable, fValidateAnnotations, locale); fGroupTraverser.reset(fSymbolTable, fValidateAnnotations, locale); fKeyrefTraverser.reset(fSymbolTable, fValidateAnnotations, locale); fNotationTraverser.reset(fSymbolTable, fValidateAnnotations, locale);
reportSchemaError("s4s-att-must-appear", new Object[]{"group (global)", "name"}, elmNode); XSAnnotationImpl annotation = null; if (l_elmChild == null) { reportSchemaError("s4s-elt-must-match.2", new Object[]{"group (global)", "(annotation?, (all | choice | sequence))"}, elmNode); String childName = l_elmChild.getLocalName(); if (childName.equals(SchemaSymbols.ELT_ANNOTATION)) { annotation = traverseAnnotationDecl(l_elmChild, attrValues, true, schemaDoc); l_elmChild = DOMUtil.getNextSiblingElement(l_elmChild); if (l_elmChild != null) String text = DOMUtil.getSyntheticAnnotation(elmNode); if (text != null) { annotation = traverseSyntheticAnnotation(elmNode, text, attrValues, false, schemaDoc); reportSchemaError("s4s-elt-must-match.2", new Object[]{"group (global)", "(annotation?, (all | choice | sequence))"}, elmNode); } else if (childName.equals(SchemaSymbols.ELT_ALL)) { particle = traverseAll(l_elmChild, schemaDoc, grammar, CHILD_OF_GROUP, group); } else if (childName.equals(SchemaSymbols.ELT_CHOICE)) { particle = traverseChoice(l_elmChild, schemaDoc, grammar, CHILD_OF_GROUP, group); } else if (childName.equals(SchemaSymbols.ELT_SEQUENCE)) { particle = traverseSequence(l_elmChild, schemaDoc, grammar, CHILD_OF_GROUP, group); } else { reportSchemaError("s4s-elt-must-match.1",
particle = fSchemaHandler.fGroupTraverser.traverseLocal(child, schemaDoc, grammar);
fGroupTraverser.traverseGlobal(redefinedComp, currSchemaDoc, currSG); fGroupTraverser.traverseGlobal(globalComp, currSchemaDoc, currSG);
private void createTraversers() { fAttributeChecker = new XSAttributeChecker(this); fAttributeGroupTraverser = new XSDAttributeGroupTraverser(this, fAttributeChecker); fAttributeTraverser = new XSDAttributeTraverser(this, fAttributeChecker); fComplexTypeTraverser = new XSDComplexTypeTraverser(this, fAttributeChecker); fElementTraverser = new XSDElementTraverser(this, fAttributeChecker); fGroupTraverser = new XSDGroupTraverser(this, fAttributeChecker); fKeyrefTraverser = new XSDKeyrefTraverser(this, fAttributeChecker); fNotationTraverser = new XSDNotationTraverser(this, fAttributeChecker); fSimpleTypeTraverser = new XSDSimpleTypeTraverser(this, fAttributeChecker); fUniqueOrKeyTraverser = new XSDUniqueOrKeyTraverser(this, fAttributeChecker); fWildCardTraverser = new XSDWildcardTraverser(this, fAttributeChecker); } // createTraversers()
particle = fSchemaHandler.fGroupTraverser.traverseLocal(complexContentChild, schemaDoc, grammar); attrOrAssertNode = DOMUtil.getNextSiblingElement(complexContentChild);
break; case GROUP_TYPE : retObj = fGroupTraverser.traverseGlobal(decl, schemaDoc, grammar); break; case NOTATION_TYPE :
particle = fSchemaHandler.fGroupTraverser.traverseLocal(child, schemaDoc, grammar); if (particle != null) { expandGroupParticleForCompositorAll(particle, child);