Grammar
, Serializable
public class XMLSchemaGrammar extends Object implements Grammar
Modifier and Type | Field | Description |
---|---|---|
protected ExpressionPool |
pool |
pool object which was used to construct this grammar.
|
protected Map |
schemata |
map from namespace URI to loaded XMLSchemaSchema object.
|
Expression |
topLevel |
Constructor | Description |
---|---|
XMLSchemaGrammar() |
|
XMLSchemaGrammar(ExpressionPool pool) |
Modifier and Type | Method | Description |
---|---|---|
XMLSchemaSchema |
getByNamespace(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.
|
Iterator |
iterateSchemas() |
returns an Iterator that enumerates XMLSchemaSchema objects
that are defined in this grammar.
|
protected final ExpressionPool pool
public Expression topLevel
protected final Map schemata
public XMLSchemaGrammar()
public XMLSchemaGrammar(ExpressionPool pool)
public final ExpressionPool getPool()
Grammar
public final Expression getTopLevel()
Grammar
getTopLevel
in interface Grammar
public XMLSchemaSchema getByNamespace(String targetNamesapce)
public Iterator iterateSchemas()
Copyright © 2019 Oracle Corporation. All rights reserved.