]> gerrit.simantics Code Review - simantics/interop.git/blobdiff - org.simantics.xml.sax.base/src/org/simantics/xml/sax/base/XMLElementParser.java
Initial support for XML export (order of Elements is not kept)
[simantics/interop.git] / org.simantics.xml.sax.base / src / org / simantics / xml / sax / base / XMLElementParser.java
index c3b380401db4a8744b6d1da5e841923e779990c0..27c0ac79c1de9e56f77054e210e4658cc4097302 100644 (file)
@@ -28,7 +28,7 @@ public interface XMLElementParser {
         * @return\r
         * @throws DatabaseException\r
         */\r
-       public Resource create(WriteGraph graph, Element element) throws DatabaseException;\r
+       public Resource create(WriteGraph graph, ParserElement element) throws DatabaseException;\r
        /**\r
         * Configures the element.\r
         * \r
@@ -38,7 +38,7 @@ public interface XMLElementParser {
         * @param element\r
         * @throws DatabaseException\r
         */\r
-       public void configure(WriteGraph graph, Deque<Element> parents, Element element) throws DatabaseException;\r
+       public void configure(WriteGraph graph, Deque<ParserElement> parents, ParserElement element) throws DatabaseException;\r
        /**\r
         * Configures element with characters content\r
         * \r
@@ -48,7 +48,7 @@ public interface XMLElementParser {
         * @param string\r
         * @throws DatabaseException\r
         */\r
-       public void configure(WriteGraph graph, Element element, String string) throws DatabaseException;\r
+       public void configure(WriteGraph graph, ParserElement element, String string) throws DatabaseException;\r
        \r
        /**\r
         * Adds child element. Primary method for connecting elements.\r
@@ -58,7 +58,7 @@ public interface XMLElementParser {
         * @return true, if connection was done, otherwise return false.\r
         * @throws DatabaseException\r
         */\r
-       public abstract boolean connectChild(WriteGraph graph, Element element, Element child) throws DatabaseException;\r
+       public abstract boolean connectChild(WriteGraph graph, ParserElement element, ParserElement child) throws DatabaseException;\r
        /**\r
         * Adds element to a parent. Secondary method for connecting elements. Called only if primary method fails.\r
         * @param graph\r
@@ -67,7 +67,7 @@ public interface XMLElementParser {
         * @return true, if connection was done, otherwise return false.\r
         * @throws DatabaseException\r
         */\r
-       public abstract boolean connectParent(WriteGraph graph, Element parent, Element element) throws DatabaseException;\r
+       public abstract boolean connectParent(WriteGraph graph, ParserElement parent, ParserElement element) throws DatabaseException;\r
        \r
        \r
        //public void configureChild(WriteGraph graph, Stack<Element> parents, Element element, Element child) throws DatabaseException;\r