com.sun.msv.grammar.xmlschema

Class XMLSchemaGrammar

public class XMLSchemaGrammar extends Object implements Grammar

set of XML Schema. This set can be used to validate a document.

Author: Kohsuke KAWAGUCHI

Field Summary
ExpressiontopLevel
Constructor Summary
XMLSchemaGrammar()
XMLSchemaGrammar(ExpressionPool pool)
Method Summary
XMLSchemaSchemagetByNamespace(String targetNamesapce)
gets XMLSchemaSchema object that has the given target namespace.
ExpressionPoolgetPool()
ExpressiongetTopLevel()
IteratoriterateSchemas()
returns an Iterator that enumerates XMLSchemaSchema objects that are defined in this grammar.

Field Detail

topLevel

public Expression topLevel

Constructor Detail

XMLSchemaGrammar

public XMLSchemaGrammar()

XMLSchemaGrammar

public XMLSchemaGrammar(ExpressionPool pool)

Method Detail

getByNamespace

public XMLSchemaSchema getByNamespace(String targetNamesapce)
gets XMLSchemaSchema object that has the given target namespace.

Returns: null if no schema is associated with that namespace.

getPool

public final ExpressionPool getPool()

getTopLevel

public final Expression getTopLevel()

iterateSchemas

public Iterator iterateSchemas()
returns an Iterator that enumerates XMLSchemaSchema objects that are defined in this grammar.