com.sun.msv.grammar

Interface Grammar

public interface Grammar extends Serializable

base interface of the "grammar". This interface characterizes very basic part of grammar.

Author: Kohsuke KAWAGUCHI

Method Summary
ExpressionPoolgetPool()
gets ExpressionPool object which was used to construct this grammar.
ExpressiongetTopLevel()
gets top-level expression.

Method Detail

getPool

public ExpressionPool getPool()
gets ExpressionPool object which was used to construct this grammar. Never return null.

getTopLevel

public Expression getTopLevel()
gets top-level expression. This expression shall be the constraint over the document element. Never return null.