Return an XSModel
that represents components in
the schema grammars in this pool implementation.
java.util.Vector list = new java.util.Vector();
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.addElement(entry.grammar);
}
}
int size = list.size();
if (size == 0)
return null;
SchemaGrammar[] gs = new SchemaGrammar[size];
for (int i = 0; i < size; i++)
gs[i] = (SchemaGrammar)list.elementAt(i);
return new XSModelImpl(gs);