FileDocCategorySizeDatePackage
SimpleXMLSchema.javaAPI DocApache Xerces 3.0.12670Fri Sep 14 20:33:52 BST 2007org.apache.xerces.jaxp.validation

SimpleXMLSchema

public final class SimpleXMLSchema extends AbstractXMLSchema implements org.apache.xerces.xni.grammars.XMLGrammarPool

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

author
Michael Glavassevich, IBM
version
$Id: SimpleXMLSchema.java 542516 2007-05-29 13:44:47Z mrglavas $

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

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

public voidclear()

public org.apache.xerces.xni.grammars.XMLGrammarPoolgetGrammarPool()

        return this;
    
public booleanisFullyComposed()

        return true;
    
public voidlockPool()

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

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

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