Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.apache.xerces.impl.xs.util;
 
 import  org.apache.xerces.util.XMLGrammarPoolImpl.Entry;
public class XSGrammarPool extends XMLGrammarPoolImpl
  public XSModel toXSModel()
  {
    ArrayList localArrayList = new ArrayList();
    for (int i = 0; i < this.fGrammars.length; i++)
      for (XMLGrammarPoolImpl.Entry localEntry = this.fGrammars[i]; localEntry != null; localEntry = localEntry.next)
      {
        if (!localEntry.desc.getGrammarType().equals("http://www.w3.org/2001/XMLSchema"))
          continue;
        localArrayList.add(localEntry.grammar);
      }
    int j = localArrayList.size();
    if (j == 0)
      return null;
    SchemaGrammar[] arrayOfSchemaGrammar = (SchemaGrammar[])localArrayList.toArray(new SchemaGrammar[j]);
    return new XSModelImpl(arrayOfSchemaGrammar);
  }
/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/thirdparty-all.jar
 * Qualified Name:     org.apache.xerces.impl.xs.util.XSGrammarPool
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X