java.lang.Object
org.apache.jena.rdf.listeners.ObjectListener
- All Implemented Interfaces:
ModelChangedListener
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidOverride this to track all the objects added; each object will be a Statement, a Statement [], a List (Statement), an Iterator (Statement), or a Model.voidMethod to call when a single statement has been added to the attached model.voidaddedStatements(List<Statement> statements) Method to call when a list of statements has been added to the attached model.voidMethod to call when a model has been used to define the statements to be added to our attached model.voidaddedStatements(Statement[] statements) Method to call when an array of statements has been added to the attached model.voidaddedStatements(StmtIterator statements) Method to call when a statement iterator has supplied elements to be added to the attached model.voidnotifyEvent(Model m, Object event) voidOverride this to track all the objects removed; each object will be a Statement, a Statement [], a List (Statement), an Iterator (Statement), or a Model.voidMethod to call when a single statement has been removed from the attached model.voidremovedStatements(List<Statement> statements) Method to call when a list of statements has been deleted from the attached model.voidMethod to call when a model has been used to remove statements from our attached model.voidremovedStatements(Statement[] statements) Method to call when an array of statements has been removed from the attached model.voidremovedStatements(StmtIterator statements) Method to call when a statement iterator has been used to remove statements from the attached model.
-
Constructor Details
-
ObjectListener
public ObjectListener()
-
-
Method Details
-
added
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. -
removed
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. -
addedStatement
Description copied from interface:ModelChangedListenerMethod to call when a single statement has been added to the attached model.- Specified by:
addedStatementin interfaceModelChangedListener- Parameters:
s- the statement that has been presented for addition.
-
addedStatements
Description copied from interface:ModelChangedListenerMethod to call when an array of statements has been added to the attached model. NOTE. This array need not be == to the array added using Model::add(Statement[]).- Specified by:
addedStatementsin interfaceModelChangedListener- Parameters:
statements- the array of added statements
-
addedStatements
Description copied from interface:ModelChangedListenerMethod to call when a list of statements has been added to the attached model. NOTE. This list need not be == to the list added using Model::add(List).- Specified by:
addedStatementsin interfaceModelChangedListener- Parameters:
statements- the list of statements that has been removed.
-
addedStatements
Description copied from interface:ModelChangedListenerMethod to call when a statement iterator has supplied elements to be added to the attached model.statementsis a copy of the original iterator.- Specified by:
addedStatementsin interfaceModelChangedListener
-
addedStatements
Description copied from interface:ModelChangedListenerMethod to call when a model has been used to define the statements to be added to our attached model.- Specified by:
addedStatementsin interfaceModelChangedListener- Parameters:
m- a model equivalent to [and sharing with] the added model
-
removedStatement
Description copied from interface:ModelChangedListenerMethod to call when a single statement has been removed from the attached model.- Specified by:
removedStatementin interfaceModelChangedListener- Parameters:
s- the statement that has been presented for removal.
-
removedStatements
Description copied from interface:ModelChangedListenerMethod to call when an array of statements has been removed from the attached model. NOTE. This array need not be == to the array added using Model::remove(Statement[]).- Specified by:
removedStatementsin interfaceModelChangedListener- Parameters:
statements- the array of removed statements
-
removedStatements
Description copied from interface:ModelChangedListenerMethod to call when a list of statements has been deleted from the attached model. NOTE. This list need not be == to the list added using Model::remove(List).- Specified by:
removedStatementsin interfaceModelChangedListener- Parameters:
statements- the list of statements that have been removed.
-
removedStatements
Description copied from interface:ModelChangedListenerMethod to call when a statement iterator has been used to remove statements from the attached model. The iterator will be a copy, in the correct order, of the iterator supplied for the removal.- Specified by:
removedStatementsin interfaceModelChangedListener- Parameters:
statements- a statement-type copy of the updating iterator
-
removedStatements
Description copied from interface:ModelChangedListenerMethod to call when a model has been used to remove statements from our attached model.- Specified by:
removedStatementsin interfaceModelChangedListener- Parameters:
m- a model equivalent to [and sharing with] the one removed
-
notifyEvent
- Specified by:
notifyEventin interfaceModelChangedListener
-