if (baseTypeName != null) {
XmlSchemaComplexType baseType = (XmlSchemaComplexType)collection.getTypeByQName(baseTypeName);
// recurse onto the base type ...
results.addAll(getContentAttributes(baseType, collection));
// and now process our sequence.
XmlSchemaObjectCollection extAttrs = getContentAttributes(type);
for (int i = 0; i < extAttrs.getCount(); i++) {
results.add((XmlSchemaAnnotated)extAttrs.getItem(i));
}
return results;
} else {
// no base type, the simple case.
XmlSchemaObjectCollection attrs = type.getAttributes();
for (int i = 0; i < attrs.getCount(); i++) {
results.add((XmlSchemaAnnotated)attrs.getItem(i));
}
return results;
}
}