|
||||||||||
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.ObjectListener
public class ObjectListener
Listener that funnels all the changes into add/removed(Object) x, ie, leaves discrimination to be done on the type of object added or removed.
Constructor Summary | |
---|---|
ObjectListener()
|
Method Summary | |
---|---|
void |
added(Object x)
Override this to track all the objects added; each object will be a Statement, a Statement [], a List (Statement), an Iterator (Statement), or a Model. |
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 |
removed(Object x)
Override this to track all the objects removed; each object will be a Statement, a Statement [], a List (Statement), an Iterator (Statement), or a Model. |
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectListener()
Method Detail |
---|
public void added(Object x)
public void removed(Object x)
public void addedStatement(Statement s)
ModelChangedListener
addedStatement
in interface ModelChangedListener
s
- the statement that has been presented for addition.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 removedStatement(Statement s)
ModelChangedListener
removedStatement
in interface ModelChangedListener
s
- the statement that has been presented for removal.public 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 |