APIdia Launch Partner
Top Description Methods
com.sun.org.apache.xerces.internal.xni.grammars

public Interface XSGrammar

extends Grammar
Known Direct Implementers
com.sun.org.apache.xerces.internal.impl.xs.SchemaGrammar
Imports
com.sun.org.apache.xerces.internal.xs.XSModel

Representing a schema grammar. It contains declaratoin/definitions from a certain namespace. When a grammar is preparsed, and its grammar type is XML Schema, it can be casted to this interface. Objects of this interface can be converted to XSModel, from which further information about components in this grammar can be obtained.
Author
Sandy Gao, IBM

Method Summary

Modifier and TypeMethod and Description
public XSModel

Returns:

an XSModel representing this schema grammar
toXSModel
()

Return an XSModel that represents components in this schema grammar and any schema grammars that are imported by this grammar directly or indirectly.

public XSModel

Returns:

an XSModel representing these schema grammars
toXSModel
(XSGrammar[] grammars)

Return an XSModel that represents components in this schema grammar and the grammars in the grammarsparameter, any schema grammars that are imported by them directly or indirectly.

Inherited from com.sun.org.apache.xerces.internal.xni.grammars.Grammar:
getGrammarDescription

Method Detail

toXSModelback to summary
public XSModel toXSModel()

Return an XSModel that represents components in this schema grammar and any schema grammars that are imported by this grammar directly or indirectly.

Returns:XSModel

an XSModel representing this schema grammar

toXSModelback to summary
public XSModel toXSModel(XSGrammar[] grammars)

Return an XSModel that represents components in this schema grammar and the grammars in the grammarsparameter, any schema grammars that are imported by them directly or indirectly.

Returns:XSModel

an XSModel representing these schema grammars