org.apache.xerces.impl.xs
Class XSGrammarResolver
java.lang.Object
|
+--org.apache.xerces.impl.xs.XSGrammarResolver
- public class XSGrammarResolver
- extends java.lang.Object
A class used to hold the internal schema grammar set for the current instance
- Version:
- $Id: XSGrammarResolver.java,v 1.1 2001/10/25 20:36:02 elena Exp $
- Author:
- Sandy Gao, IBM
Method Summary |
boolean |
contains(java.lang.String namespace)
Check if a grammar for the specified namespace is in the registry |
SchemaGrammar |
getGrammar(java.lang.String namespace)
Get the schema grammar for the specified namespace |
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 |
XSGrammarResolver
public XSGrammarResolver()
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
contains
public boolean contains(java.lang.String namespace)
- Check if a grammar for the specified namespace is in the registry
- Parameters:
namespace
- - Returns:
- boolean true if contains
reset
public void reset()
- Clear the registry.
REVISIT: update to use another XMLGrammarResolver
Copyright © 1999-2001 Apache XML Project. All Rights Reserved.