public class XSGrammarBucket extends Object
Constructor and Description |
---|
XSGrammarBucket() |
Modifier and Type | Method and Description |
---|---|
SchemaGrammar |
getGrammar(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(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 © 2018 JBoss by Red Hat. All rights reserved.