void returnSchemaAttrs () { fAttrChecker.returnAttrArray (fSchemaAttrs, null); fSchemaAttrs = null; }
protected XSAttributeDecl traverseGlobal(Element attrDecl, XSDocumentInfo schemaDoc, SchemaGrammar grammar) { // General Attribute Checking Object[] attrValues = fAttrChecker.checkAttributes(attrDecl, true, schemaDoc); XSAttributeDecl attribute = traverseNamedAttr(attrDecl, attrValues, schemaDoc, grammar, true, null); fAttrChecker.returnAttrArray(attrValues, schemaDoc); return attribute; }
/** * Traverse a globally declared element. * * @param elmDecl * @param schemaDoc * @param grammar * @return the element declaration */ XSElementDecl traverseGlobal(Element elmDecl, XSDocumentInfo schemaDoc, SchemaGrammar grammar) { // General Attribute Checking' Object[] attrValues = fAttrChecker.checkAttributes(elmDecl, true, schemaDoc); XSElementDecl element = traverseNamedElement(elmDecl, attrValues, schemaDoc, grammar, true, null); fAttrChecker.returnAttrArray(attrValues, schemaDoc); return element; }
/** * Traverse <anyAttribute> * * @param elmNode * @param schemaDoc * @param grammar * @return the wildcard node index */ XSWildcardDecl traverseAnyAttribute(Element elmNode, XSDocumentInfo schemaDoc, SchemaGrammar grammar) { // General Attribute Checking for elmNode Object[] attrValues = fAttrChecker.checkAttributes(elmNode, false, schemaDoc); XSWildcardDecl wildcard = traverseWildcardDecl(elmNode, attrValues, schemaDoc, grammar); fAttrChecker.returnAttrArray(attrValues, schemaDoc); return wildcard; }
fAttrChecker.returnAttrArray(attrValues, schemaDoc); fAttrChecker.returnAttrArray(attrValues, schemaDoc);
XSSimpleType traverseLocal(Element elmNode, XSDocumentInfo schemaDoc, SchemaGrammar grammar, XSObject context) { // General Attribute Checking Object[] attrValues = fAttrChecker.checkAttributes(elmNode, false, schemaDoc); String name = genAnonTypeName(elmNode); XSSimpleType type = getSimpleType(name, elmNode, attrValues, schemaDoc, grammar); if (type instanceof XSSimpleTypeDecl) { ((XSSimpleTypeDecl)type).setAnonymous(true); if (context != null && fSchemaHandler.fSchemaVersion == Constants.SCHEMA_VERSION_1_1) { ((XSSimpleTypeDecl)type).setContext(context); } } fAttrChecker.returnAttrArray(attrValues, schemaDoc); return type; }
fAttrChecker.returnAttrArray(attrValues, schemaDoc); return null; fAttrChecker.returnAttrArray(attrValues, schemaDoc); return attrGrp;
fAttrChecker.returnAttrArray(attrValues, schemaDoc); return; fAttrChecker.returnAttrArray(attrValues, schemaDoc); return; fAttrChecker.returnAttrArray(attrValues, schemaDoc);
fAttrChecker.returnAttrArray(attrValues, schemaDoc);
reportSchemaError("s4s-att-must-appear", new Object [] {SchemaSymbols.ELT_KEYREF , SchemaSymbols.ATT_NAME }, krElem); fAttrChecker.returnAttrArray(attrValues, schemaDoc); return; reportSchemaError("s4s-att-must-appear", new Object [] {SchemaSymbols.ELT_KEYREF , SchemaSymbols.ATT_REFER }, krElem); fAttrChecker.returnAttrArray(attrValues, schemaDoc); return; fAttrChecker.returnAttrArray(attrValues, schemaDoc); return; fAttrChecker.returnAttrArray(attrValues, schemaDoc);
reportSchemaError("s4s-att-must-appear", new Object [] {DOMUtil.getLocalName(uElem) , SchemaSymbols.ATT_NAME }, uElem); fAttrChecker.returnAttrArray(attrValues, schemaDoc); return; fAttrChecker.returnAttrArray(attrValues, schemaDoc);
/** * Traverse local complexType declarations * * @param Element * @param XSDocumentInfo * @param SchemaGrammar * @return XSComplexTypeDecl */ XSComplexTypeDecl traverseLocal(Element complexTypeNode, XSDocumentInfo schemaDoc, SchemaGrammar grammar, XSObject context) { Object[] attrValues = fAttrChecker.checkAttributes(complexTypeNode, false, schemaDoc); String complexTypeName = genAnonTypeName(complexTypeNode); contentBackup(); XSComplexTypeDecl type = traverseComplexTypeDecl (complexTypeNode, complexTypeName, attrValues, schemaDoc, grammar, context); contentRestore(); // need to add the type to the grammar for later constraint checking grammar.addComplexTypeDecl(type, fSchemaHandler.element2Locator(complexTypeNode)); type.setIsAnonymous(); fAttrChecker.returnAttrArray(attrValues, schemaDoc); return type; }
reportSchemaError("s4s-elt-must-match.1", new Object[]{SchemaSymbols.ELT_OPENCONTENT, "(annotation?, any?)", childName}, child); fAttrChecker.returnAttrArray(attrValues, schemaDoc); return ocDecl; fAttrChecker.returnAttrArray(wcAttrValues, schemaDoc); if (ocMode == XSOpenContentDecl.MODE_NONE) { ocDecl.fWildcard = null; fAttrChecker.returnAttrArray(attrValues, schemaDoc);
defaultVals.longValue()); fAttrChecker.returnAttrArray(attrValues, schemaDoc);
} else { fAttrChecker.returnAttrArray(attrValues, schemaDoc); throw new ComplexTypeRecoverableError("s4s-elt-invalid-content.1", new Object[] { fName, DOMUtil.getLocalName(sibling) }, sibling); fAttrChecker.returnAttrArray(attrValues, schemaDoc);
fAttrChecker.returnAttrArray(attrValues, schemaDoc);
if (nameAttr == null) { reportSchemaError("s4s-att-must-appear", new Object[]{SchemaSymbols.ELT_NOTATION, SchemaSymbols.ATT_NAME}, elmNode); fAttrChecker.returnAttrArray(attrValues, schemaDoc); return null; fAttrChecker.returnAttrArray(attrValues, schemaDoc);
fAttrChecker.returnAttrArray(attrValues, schemaDoc); return null; fAttrChecker.returnAttrArray(attrValues, schemaDoc); return attrGrp;
fAttrChecker.returnAttrArray(attrValues, schemaDoc);
fAttrChecker.returnAttrArray(attrValues, schemaDoc);