public class XMLSchemaGrammar extends java.lang.Object implements Grammar
Modifier and Type | Field and Description |
---|---|
protected ExpressionPool |
pool
pool object which was used to construct this grammar.
|
protected java.util.Map |
schemata
map from namespace URI to loaded XMLSchemaSchema object.
|
private static long |
serialVersionUID |
Expression |
topLevel |
Constructor and Description |
---|
XMLSchemaGrammar() |
XMLSchemaGrammar(ExpressionPool pool) |
Modifier and Type | Method and Description |
---|---|
XMLSchemaSchema |
getByNamespace(java.lang.String targetNamesapce)
gets XMLSchemaSchema object that has the given target namespace.
|
ExpressionPool |
getPool()
gets ExpressionPool object which was used to construct this grammar.
|
Expression |
getTopLevel()
gets top-level expression.
|
java.util.Iterator |
iterateSchemas()
returns an Iterator that enumerates XMLSchemaSchema objects
that are defined in this grammar.
|
protected final ExpressionPool pool
public Expression topLevel
protected final java.util.Map schemata
private static final long serialVersionUID
public XMLSchemaGrammar()
public XMLSchemaGrammar(ExpressionPool pool)
public final ExpressionPool getPool()
Grammar
public final Expression getTopLevel()
Grammar
getTopLevel
in interface Grammar
public XMLSchemaSchema getByNamespace(java.lang.String targetNamesapce)
public java.util.Iterator iterateSchemas()