com.sun.msv.writer

Interface GrammarWriter

public interface GrammarWriter

Converter from AGM to the XML representation.

Author: Kohsuke KAWAGUCHI

Method Summary
voidsetDocumentHandler(DocumentHandler handler)
Sets DocumentHandler.
voidwrite(Grammar grammar)
Converts this grammar to the XML representation.

Method Detail

setDocumentHandler

public void setDocumentHandler(DocumentHandler handler)
Sets DocumentHandler. This handler will receive the result of conversion.

write

public void write(Grammar grammar)
Converts this grammar to the XML representation.

Throws: 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.