Package com.sun.msv.writer
Interface GrammarWriter
-
- All Known Implementing Classes:
RELAXNGWriter
public interface GrammarWriter
Converter from AGM to the XML representation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
setDocumentHandler(org.xml.sax.DocumentHandler handler)
Sets DocumentHandler.void
write(Grammar grammar)
Converts this grammar to the XML representation.
-
-
-
Method Detail
-
setDocumentHandler
void setDocumentHandler(org.xml.sax.DocumentHandler handler)
Sets DocumentHandler. This handler will receive the result of conversion.
-
write
void write(Grammar grammar) throws java.lang.UnsupportedOperationException, org.xml.sax.SAXException
Converts this grammar to the XML representation.- Throws:
java.lang.UnsupportedOperationException
- if this grammar cannot be serialized. this exception can be thrown on the half way of the conversion.org.xml.sax.SAXException
- DocumentHandler may throw a SAXException.
-
-