public class PropertyChangedListener extends org.apache.jena.rdf.listeners.StatementListener
Constructor and Description |
---|
PropertyChangedListener(org.apache.jena.rdf.model.Resource property,
AtomicBoolean changed)
Create a listener for a particular RDF predicate.
|
Modifier and Type | Method and Description |
---|---|
void |
addedStatement(org.apache.jena.rdf.model.Statement s) |
void |
removedStatement(org.apache.jena.rdf.model.Statement s) |
public PropertyChangedListener(org.apache.jena.rdf.model.Resource property, AtomicBoolean changed)
property
- the predicate for which to watchchanged
- a value to keep track of whether the value changedpublic void addedStatement(org.apache.jena.rdf.model.Statement s)
addedStatement
in interface org.apache.jena.rdf.model.ModelChangedListener
addedStatement
in class org.apache.jena.rdf.listeners.StatementListener
public void removedStatement(org.apache.jena.rdf.model.Statement s)
removedStatement
in interface org.apache.jena.rdf.model.ModelChangedListener
removedStatement
in class org.apache.jena.rdf.listeners.StatementListener
Copyright © 2013–2017 DuraSpace, Inc.. All rights reserved.