org.apache.xerces.impl.xs
public class XSGrammarBucket extends java.lang.Object
| Constructor and Description |
|---|
XSGrammarBucket() |
| Modifier and Type | Method and Description |
|---|---|
SchemaGrammar |
getGrammar(java.lang.String namespace)
Get the schema grammar for the specified namespace
|
SchemaGrammar[] |
getGrammars()
get all grammars in the registry
|
void |
putGrammar(SchemaGrammar grammar)
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.
|
boolean |
putGrammar(SchemaGrammar grammar,
boolean deep)
put a schema grammar and any grammars imported by it (directly or
inderectly) into the registry.
|
void |
reset()
Clear the registry.
|
public SchemaGrammar getGrammar(java.lang.String namespace)
namespace - public void putGrammar(SchemaGrammar grammar)
grammar - the grammar to put in the registrypublic boolean putGrammar(SchemaGrammar grammar, boolean deep)
grammar - the grammar to put in the registrydeep - whether to add imported grammarspublic SchemaGrammar[] getGrammars()
public void reset()
Copyright ? 1999-2005 Apache XML Project. All Rights Reserved.