XSSimpleType traverseLocal(Element elmNode,
XSDocumentInfo schemaDoc,
SchemaGrammar grammar,
XSObject context) {
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;
}