Return an XSModel
that represents components in
the schema grammars in this pool implementation.
ArrayList list = new ArrayList();
for (int i = 0; i < fGrammars.length; i++) {
for (Entry entry = fGrammars[i] ; entry != null ; entry = entry.next) {
if (entry.desc.getGrammarType().equals(XMLGrammarDescription.XML_SCHEMA))
list.add(entry.grammar);
}
}
int size = list.size();
if (size == 0) {
return null;
}
SchemaGrammar[] gs = (SchemaGrammar[])list.toArray(new SchemaGrammar[size]);
return new XSModelImpl(gs);