public interface ModelChangedListener
NOTE that the listener is supplied with more-or-less faithful copies of the original items that were added to, or removed from, the model. In particular, graph-level updates to the model appear as statements, not triples.
Modifier and Type | Method and Description |
---|---|
void |
addedStatement(Statement s)
Method to call when a single statement has been added to the attached model.
|
void |
addedStatements(List<Statement> statements)
Method to call when a list of statements has been added to the attached model.
|
void |
addedStatements(Model m)
Method to call when a model has been used to define the statements to
be added to our attached model.
|
void |
addedStatements(Statement[] statements)
Method to call when an array of statements has been added to the attached
model.
|
void |
addedStatements(StmtIterator statements)
Method to call when a statement iterator has supplied elements to be added
to the attached model.
|
void |
notifyEvent(Model m,
Object event) |
void |
removedStatement(Statement s)
Method to call when a single statement has been removed from the attached model.
|
void |
removedStatements(List<Statement> statements)
Method to call when a list of statements has been deleted from the attached
model.
|
void |
removedStatements(Model m)
Method to call when a model has been used to remove statements from
our attached model.
|
void |
removedStatements(Statement[] statements)
Method to call when an array of statements has been removed from the
attached model.
|
void |
removedStatements(StmtIterator statements)
Method to call when a statement iterator has been used to remove
statements from the attached model.
|
void addedStatement(Statement s)
s
- the statement that has been presented for addition.void addedStatements(Statement[] statements)
statements
- the array of added statementsvoid addedStatements(List<Statement> statements)
statements
- the list of statements that has been removed.void addedStatements(StmtIterator statements)
statements
is a copy of the
original iterator.statements
- void addedStatements(Model m)
m
- a model equivalent to [and sharing with] the added modelvoid removedStatement(Statement s)
s
- the statement that has been presented for removal.void removedStatements(Statement[] statements)
statements
- the array of removed statementsvoid removedStatements(List<Statement> statements)
statements
- the list of statements that have been removed.void removedStatements(StmtIterator statements)
statements
- a statement-type copy of the updating iteratorvoid removedStatements(Model m)
m
- a model equivalent to [and sharing with] the one removedLicenced under the Apache License, Version 2.0