FileDocCategorySizeDatePackage
SimpleXMLSchema.javaAPI DocJava SE 6 API2465Tue Jun 10 00:22:48 BST 2008com.sun.org.apache.xerces.internal.jaxp.validation

SimpleXMLSchema

public final class SimpleXMLSchema extends AbstractXMLSchema implements XMLGrammarPool

Implementation of Schema for W3C XML Schemas which contains schema components from one target namespace.

author
Michael Glavassevich, IBM
version
$Id: SimpleXMLSchema.java,v 1.1.4.1 2005/09/05 11:41:40 sunithareddy Exp $

Fields Summary
private static final Grammar[]
ZERO_LENGTH_GRAMMAR_ARRAY
Zero length grammar array.
private Grammar
fGrammar
private Grammar[]
fGrammars
private XMLGrammarDescription
fGrammarDescription
Constructors Summary
public SimpleXMLSchema(Grammar grammar)

    
       
        fGrammar = grammar;
        fGrammars = new Grammar[] {grammar};
        fGrammarDescription = grammar.getGrammarDescription();
    
Methods Summary
public voidcacheGrammars(java.lang.String grammarType, com.sun.org.apache.xerces.internal.xni.grammars.Grammar[] grammars)

public voidclear()

public com.sun.org.apache.xerces.internal.xni.grammars.XMLGrammarPoolgetGrammarPool()

        return this;
    
public booleanisFullyComposed()

        return true;
    
public voidlockPool()

public com.sun.org.apache.xerces.internal.xni.grammars.GrammarretrieveGrammar(com.sun.org.apache.xerces.internal.xni.grammars.XMLGrammarDescription desc)

        return fGrammarDescription.equals(desc) ? fGrammar : null;
    
public com.sun.org.apache.xerces.internal.xni.grammars.Grammar[]retrieveInitialGrammarSet(java.lang.String grammarType)

        return XMLGrammarDescription.XML_SCHEMA.equals(grammarType) ? 
                (Grammar[]) fGrammars.clone() : ZERO_LENGTH_GRAMMAR_ARRAY;
    
public voidunlockPool()