| java.lang.Object org.apache.xerces.impl.xs.XSGrammarBucket
XSGrammarBucket | public class XSGrammarBucket (Code) | | A class used to hold the internal schema grammar set for the current instance
author: Sandy Gao, IBM version: $Id: XSGrammarBucket.java 446734 2006-09-15 20:51:23Z mrglavas $ |
fGrammarRegistry | Hashtable fGrammarRegistry(Code) | | Hashtable that maps between Namespace and a Grammar
|
getGrammar | public SchemaGrammar getGrammar(String namespace)(Code) | | Get the schema grammar for the specified namespace
Parameters: namespace - SchemaGrammar associated with the namespace |
getGrammars | public SchemaGrammar[] getGrammars()(Code) | | get all grammars in the registry
an array of SchemaGrammars. |
putGrammar | public void putGrammar(SchemaGrammar grammar)(Code) | | Put a schema grammar into the registry
This method is for internal use only: it assumes that a grammar with
the same target namespace is not already in the bucket.
Parameters: grammar - the grammar to put in the registry |
putGrammar | public boolean putGrammar(SchemaGrammar grammar, boolean deep)(Code) | | put a schema grammar and any grammars imported by it (directly or
inderectly) into the registry. when a grammar with the same target
namespace is already in the bucket, and different from the one being
added, it's an error, and no grammar will be added into the bucket.
Parameters: grammar - the grammar to put in the registry Parameters: deep - whether to add imported grammars whether the process succeeded |
reset | public void reset()(Code) | | Clear the registry.
REVISIT: update to use another XSGrammarBucket
|
|
|