|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hp.hpl.jena.rdf.listeners.StatementListener
public class StatementListener
A listener that filters all its listening down to the single-statement level. Users of this
class override addedStatement(Statement)
and
removedStatement(Statement)
.
Constructor Summary | |
---|---|
StatementListener()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StatementListener()
Method Detail |
---|
public void addedStatement(Statement s)
addedStatement
in interface ModelChangedListener
s
- the statement that has been presented for addition.public void removedStatement(Statement s)
removedStatement
in interface ModelChangedListener
s
- the statement that has been presented for removal.public void addedStatements(Statement[] statements)
ModelChangedListener
addedStatements
in interface ModelChangedListener
statements
- the array of added statementspublic void addedStatements(List<Statement> statements)
ModelChangedListener
addedStatements
in interface ModelChangedListener
statements
- the list of statements that has been removed.public void addedStatements(StmtIterator statements)
ModelChangedListener
statements
is a copy of the
original iterator.
addedStatements
in interface ModelChangedListener
public void addedStatements(Model m)
ModelChangedListener
addedStatements
in interface ModelChangedListener
m
- a model equivalent to [and sharing with] the added modelpublic void removedStatements(Statement[] statements)
ModelChangedListener
removedStatements
in interface ModelChangedListener
statements
- the array of removed statementspublic void removedStatements(List<Statement> statements)
ModelChangedListener
removedStatements
in interface ModelChangedListener
statements
- the list of statements that have been removed.public void removedStatements(StmtIterator statements)
ModelChangedListener
removedStatements
in interface ModelChangedListener
statements
- a statement-type copy of the updating iteratorpublic void removedStatements(Model m)
ModelChangedListener
removedStatements
in interface ModelChangedListener
m
- a model equivalent to [and sharing with] the one removedpublic void notifyEvent(Model m, Object event)
notifyEvent
in interface ModelChangedListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |