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.
|
boolean |
putGrammar(SchemaGrammar grammar,
boolean deep,
boolean ignoreConflict)
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 boolean putGrammar(SchemaGrammar grammar, boolean deep, boolean ignoreConflict)
grammar - the grammar to put in the registrydeep - whether to add imported grammarsignoreConflict - whether to ignore grammars that already exist in the grammar
bucket or not - including 'grammar' parameter.public SchemaGrammar[] getGrammars()
public void reset()
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.