com.sun.msv.writer

Interface GrammarWriter

Known Implementing Classes:
RELAXNGWriter

public interface GrammarWriter

Converter from AGM to the XML representation.
Author:
Kohsuke KAWAGUCHI

Method Summary

void
setDocumentHandler(DocumentHandler handler)
Sets DocumentHandler.
void
write(Grammar grammar)
Converts this grammar to the XML representation.

Method Details

setDocumentHandler

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

write

public void write(Grammar grammar)
            throws UnsupportedOperationException,
                   SAXException
Converts this grammar to the XML representation.