Top Description Methods
com.sun.msv.writer

public Interface GrammarWriter

Known Direct Implementers
com.sun.msv.writer.relaxng.RELAXNGWriter
Annotations
@SuppressWarnings:deprecation
Imports
org.xml.sax.DocumentHandler, .SAXException, com.sun.msv.grammar.Grammar

Converter from AGM to the XML representation.
Author
Kohsuke KAWAGUCHI

Method Summary

Modifier and TypeMethod and Description
public void
setDocumentHandler(DocumentHandler handler)

Deprecated as a consequence of DocumentHandler being deprecated.
Sets DocumentHandler.
public void
write(Grammar grammar)

Converts this grammar to the XML representation.

Method Detail

setDocumentHandlerback to summary
public void setDocumentHandler(DocumentHandler handler)

Deprecated

as a consequence of DocumentHandler being deprecated. See corresponding docs for further information.

Sets DocumentHandler. This handler will receive the result of conversion.

writeback to summary
public void write(Grammar grammar) throws UnsupportedOperationException, SAXException

Converts this grammar to the XML representation.

Exceptions
UnsupportedOperationException:
if this grammar cannot be serialized. this exception can be thrown on the half way of the conversion.
SAXException:
DocumentHandler may throw a SAXException.