X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.xml.sax.base%2Fsrc%2Forg%2Fsimantics%2Fxml%2Fsax%2Fbase%2FXMLElementParser.java;h=27c0ac79c1de9e56f77054e210e4658cc4097302;hb=dd3b2c7ecd5f4b60734f2602b16637aa8be2a263;hp=c3b380401db4a8744b6d1da5e841923e779990c0;hpb=ada38ab0a1a98dcb413bef3273064da36ce2d273;p=simantics%2Finterop.git diff --git a/org.simantics.xml.sax.base/src/org/simantics/xml/sax/base/XMLElementParser.java b/org.simantics.xml.sax.base/src/org/simantics/xml/sax/base/XMLElementParser.java index c3b3804..27c0ac7 100644 --- a/org.simantics.xml.sax.base/src/org/simantics/xml/sax/base/XMLElementParser.java +++ b/org.simantics.xml.sax.base/src/org/simantics/xml/sax/base/XMLElementParser.java @@ -28,7 +28,7 @@ public interface XMLElementParser { * @return * @throws DatabaseException */ - public Resource create(WriteGraph graph, Element element) throws DatabaseException; + public Resource create(WriteGraph graph, ParserElement element) throws DatabaseException; /** * Configures the element. * @@ -38,7 +38,7 @@ public interface XMLElementParser { * @param element * @throws DatabaseException */ - public void configure(WriteGraph graph, Deque parents, Element element) throws DatabaseException; + public void configure(WriteGraph graph, Deque parents, ParserElement element) throws DatabaseException; /** * Configures element with characters content * @@ -48,7 +48,7 @@ public interface XMLElementParser { * @param string * @throws DatabaseException */ - public void configure(WriteGraph graph, Element element, String string) throws DatabaseException; + public void configure(WriteGraph graph, ParserElement element, String string) throws DatabaseException; /** * Adds child element. Primary method for connecting elements. @@ -58,7 +58,7 @@ public interface XMLElementParser { * @return true, if connection was done, otherwise return false. * @throws DatabaseException */ - public abstract boolean connectChild(WriteGraph graph, Element element, Element child) throws DatabaseException; + public abstract boolean connectChild(WriteGraph graph, ParserElement element, ParserElement child) throws DatabaseException; /** * Adds element to a parent. Secondary method for connecting elements. Called only if primary method fails. * @param graph @@ -67,7 +67,7 @@ public interface XMLElementParser { * @return true, if connection was done, otherwise return false. * @throws DatabaseException */ - public abstract boolean connectParent(WriteGraph graph, Element parent, Element element) throws DatabaseException; + public abstract boolean connectParent(WriteGraph graph, ParserElement parent, ParserElement element) throws DatabaseException; //public void configureChild(WriteGraph graph, Stack parents, Element element, Element child) throws DatabaseException;