Package com.sun.msv.writer
Interface GrammarWriter
-
- All Known Implementing Classes:
RELAXNGWriter
public interface GrammarWriter
Converter from AGM to the XML representation.- Author:
- Kohsuke KAWAGUCHI
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
setDocumentHandler(DocumentHandler handler)
Sets DocumentHandler.void
write(Grammar grammar)
Converts this grammar to the XML representation.
-
-
-
Method Detail
-
setDocumentHandler
void setDocumentHandler(DocumentHandler handler)
Sets DocumentHandler. This handler will receive the result of conversion.
-
write
void write(Grammar grammar) throws UnsupportedOperationException, SAXException
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.
-
-