public class StatementListener extends Object implements ModelChangedListener
addedStatement(Statement) and
removedStatement(Statement).| Constructor and Description |
|---|
StatementListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
addedStatement(Statement s)
Override this to listen to all incoming added statements
|
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)
Override this to listen to all incoming removed statements
|
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.
|
public void addedStatement(Statement s)
addedStatement in interface ModelChangedListeners - the statement that has been presented for addition.public void removedStatement(Statement s)
removedStatement in interface ModelChangedListeners - the statement that has been presented for removal.public void addedStatements(Statement[] statements)
ModelChangedListeneraddedStatements in interface ModelChangedListenerstatements - the array of added statementspublic void addedStatements(List<Statement> statements)
ModelChangedListeneraddedStatements in interface ModelChangedListenerstatements - the list of statements that has been removed.public void addedStatements(StmtIterator statements)
ModelChangedListenerstatements is a copy of the
original iterator.addedStatements in interface ModelChangedListenerpublic void addedStatements(Model m)
ModelChangedListeneraddedStatements in interface ModelChangedListenerm - a model equivalent to [and sharing with] the added modelpublic void removedStatements(Statement[] statements)
ModelChangedListenerremovedStatements in interface ModelChangedListenerstatements - the array of removed statementspublic void removedStatements(List<Statement> statements)
ModelChangedListenerremovedStatements in interface ModelChangedListenerstatements - the list of statements that have been removed.public void removedStatements(StmtIterator statements)
ModelChangedListenerremovedStatements in interface ModelChangedListenerstatements - a statement-type copy of the updating iteratorpublic void removedStatements(Model m)
ModelChangedListenerremovedStatements in interface ModelChangedListenerm - a model equivalent to [and sharing with] the one removedpublic void notifyEvent(Model m, Object event)
notifyEvent in interface ModelChangedListenerLicenced under the Apache License, Version 2.0