1 package org.simantics.xml.sax.base;
\r
3 import java.util.Collection;
\r
4 import java.util.Set;
\r
6 import javax.xml.stream.XMLStreamException;
\r
7 import javax.xml.stream.XMLStreamWriter;
\r
9 import org.simantics.db.ReadGraph;
\r
10 import org.simantics.db.Resource;
\r
11 import org.simantics.db.Statement;
\r
12 import org.simantics.db.exception.DatabaseException;
\r
14 public interface XMLElementWriter {
\r
16 public java.lang.String getElementId();
\r
17 public Resource getType(ReadGraph graph) throws DatabaseException;
\r
18 //public int idPriority();
\r
19 public void start(ReadGraph graph, WriterElement instance, XMLStreamWriter writer) throws XMLStreamException, DatabaseException;
\r
20 public void attributes(ReadGraph graph, WriterElement instance, Collection<Statement> attributes, XMLStreamWriter writer) throws XMLStreamException, DatabaseException;
\r
21 public void characters(ReadGraph graph, WriterElement instance, XMLStreamWriter writer) throws XMLStreamException, DatabaseException;
\r
22 public void children(ReadGraph graph, WriterElement instance, Set<Resource> writer) throws XMLStreamException, DatabaseException;
\r
23 public void end(ReadGraph graph, WriterElement instance, XMLStreamWriter writer) throws XMLStreamException, DatabaseException;
\r