org.apache.xerces.impl.xs
Class XSGrammarBucket
java.lang.Object
org.apache.xerces.impl.xs.XSGrammarBucket
public class XSGrammarBucket
extends java.lang.Object
A class used to hold the internal schema grammar set for the current instance
$Id: XSGrammarBucket.java 320098 2004-10-06 15:14:55Z mrglavas $ 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.
|
getGrammar
public SchemaGrammar getGrammar(String namespace)
Get the schema grammar for the specified namespace
- SchemaGrammar associated with the namespace
getGrammars
public SchemaGrammar[] getGrammars()
get all grammars in the registry
- an array of SchemaGrammars.
putGrammar
public 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.
grammar
- the grammar to put in the registry
putGrammar
public boolean putGrammar(SchemaGrammar grammar,
boolean deep)
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.
grammar
- the grammar to put in the registrydeep
- whether to add imported grammars
- whether the process succeeded
reset
public void reset()
Clear the registry.
REVISIT: update to use another XSGrammarBucket
Copyright B) 1999-2006 The Apache Software Foundation. All Rights Reserved.