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
- Version:
- $Id: XSGrammarBucket.java,v 1.2 2002/01/29 01:15:14 lehors Exp $
- Author:
- Sandy Gao, IBM
Method Summary |
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 |
void |
putGrammar(java.lang.String namespace,
SchemaGrammar grammar)
put a schema grammar into the registry
this method is for the grammar of schema namespace:
the namespace in the grammar is not added into the current symbol table,
so we provide the namespace, which is from the current symbol table. |
void |
reset()
Clear the registry. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XSGrammarBucket
public XSGrammarBucket()
getGrammar
public SchemaGrammar getGrammar(java.lang.String namespace)
- Get the schema grammar for the specified namespace
- Parameters:
namespace
- - Returns:
- SchemaGrammar associated with the namespace
putGrammar
public void putGrammar(SchemaGrammar grammar)
- put a schema grammar into the registry
- Parameters:
grammar
- the grammar to put in the registry
putGrammar
public void putGrammar(java.lang.String namespace,
SchemaGrammar grammar)
- put a schema grammar into the registry
this method is for the grammar of schema namespace:
the namespace in the grammar is not added into the current symbol table,
so we provide the namespace, which is from the current symbol table.
- Parameters:
namespace
- the namespace of this grammargrammar
- the grammar to put in the registry
getGrammars
public SchemaGrammar[] getGrammars()
- get all grammars in the registry
- Returns:
- an array of SchemaGrammars.
reset
public void reset()
- Clear the registry.
REVISIT: update to use another XSGrammarBucket
Copyright © 1999-2002 Apache XML Project. All Rights Reserved.