Package com.sun.msv.writer
Interface GrammarWriter
-
- All Known Implementing Classes:
RELAXNGWriter
public interface GrammarWriterConverter from AGM to the XML representation.- Author:
- Kohsuke KAWAGUCHI
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsetDocumentHandler(DocumentHandler handler)Sets DocumentHandler.voidwrite(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.
-
-