01: package org.ontoware.rdf2go.model;
02:
03: import java.util.Iterator;
04:
05: /**
06: * A listener that gets informed when model change operations are executed.
07: * This is intentionally simple, no Event objects are passed to make
08: * this interface as simple as possible.
09: * The implementations don't guarantee that you are informed when
10: * statements are added or removed, but they should do.
11: * If an implementation does not support listening in the native model,
12: * you will get notified by the RDF2Go wrapper, if the manipulations
13: * are invoked via the wrapper.
14: * @author sauermann
15: */
16: public interface ModelChangedListener {
17:
18: public void addedStatement(Statement statement);
19:
20: public void addedStatements(Iterator<? extends Statement> statements);
21:
22: public void removedStatement(Statement statement);
23:
24: public void removedStatements(
25: Iterator<? extends Statement> statements);
26:
27: public void performedUpdate(DiffReader diff);
28: }
|