XmlSchemaSequence seq = (XmlSchemaSequence) stype.getParticle();
boolean howdy = false;
boolean bleh = false;
for (int x = 0; x < seq.getItems().getCount(); x++) {
XmlSchemaObject o = seq.getItems().getItem(x);
if (o instanceof XmlSchemaElement) {
XmlSchemaElement a = (XmlSchemaElement)o;
if ("bleh".equals(a.getName())) {
bleh = true;
}
}
}
for (int x = 0; x < stype.getAttributes().getCount(); x++) {
XmlSchemaObject o = stype.getAttributes().getItem(x);
if (o instanceof XmlSchemaAttribute) {
XmlSchemaAttribute a = (XmlSchemaAttribute)o;
if ("howdy".equals(a.getName())) {
howdy = true;
}