com.sun.msv.grammar.xmlschema

Class XMLSchemaGrammar

Implemented Interfaces:
Grammar, Serializable

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

Expression
topLevel

Constructor Summary

XMLSchemaGrammar()
XMLSchemaGrammar(ExpressionPool pool)

Method Summary

XMLSchemaSchema
getByNamespace(String targetNamesapce)
gets XMLSchemaSchema object that has the given target namespace.
ExpressionPool
getPool()
Expression
getTopLevel()
Iterator
iterateSchemas()
returns an Iterator that enumerates XMLSchemaSchema objects that are defined in this grammar.

Field Details

topLevel

public Expression topLevel

Constructor Details

XMLSchemaGrammar

public XMLSchemaGrammar()

XMLSchemaGrammar

public XMLSchemaGrammar(ExpressionPool pool)

Method Details

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()
Specified by:
getPool in interface Grammar

getTopLevel

public final Expression getTopLevel()
Specified by:
getTopLevel in interface Grammar

iterateSchemas

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