Revision: 518
Author:
aal...@gmail.com
Date: Thu Oct 2 19:28:40 2014 UTC
Log: oops. check in renderable.
https://code.google.com/p/genxdm/source/detail?r=518
Added:
/trunk/project/api/src/main/java/org/genxdm/io/Renderable.java
=======================================
--- /dev/null
+++ /trunk/project/api/src/main/java/org/genxdm/io/Renderable.java Thu Oct
2 19:28:40 2014 UTC
@@ -0,0 +1,17 @@
+package
org.genxdm.io;
+
+import org.genxdm.exceptions.GenXDMException;
+
+/** Designed as a tool for XML-based component model APIs.
+ *
+ * By extending the Renderable interface in a component model that is
parsed from
+ * XML, the component model undertakes to represent itself as a stream of
XML
+ * events, driving a ContentHandler (which may generate a tree or write to
a
+ * file or a socket or run a converter or whatever).
+ *
+ */
+public interface Renderable
+{
+ void render(ContentHandler handler)
+ throws GenXDMException;
+}