public class JcrPropertyStatementListener extends com.hp.hpl.jena.rdf.listeners.StatementListener
Constructor and Description |
---|
JcrPropertyStatementListener(IdentifierConverter<com.hp.hpl.jena.rdf.model.Resource,FedoraResource> idTranslator,
JcrRdfTools jcrRdfTools,
com.hp.hpl.jena.graph.Node topic)
Construct a statement listener within the given session
|
JcrPropertyStatementListener(IdentifierConverter<com.hp.hpl.jena.rdf.model.Resource,FedoraResource> idTranslator,
javax.jcr.Session session,
com.hp.hpl.jena.graph.Node topic)
Construct a statement listener within the given session
|
Modifier and Type | Method and Description |
---|---|
void |
addedStatement(com.hp.hpl.jena.rdf.model.Statement input)
When a statement is added to the graph, serialize it to a JCR property
|
void |
assertNoExceptions()
Assert that no exceptions were thrown while this listener was processing change
|
void |
removedStatement(com.hp.hpl.jena.rdf.model.Statement s)
When a statement is removed, remove it from the JCR properties
|
public JcrPropertyStatementListener(IdentifierConverter<com.hp.hpl.jena.rdf.model.Resource,FedoraResource> idTranslator, javax.jcr.Session session, com.hp.hpl.jena.graph.Node topic)
idTranslator
- the id translatorsession
- the sessiontopic
- the topic of the RDF statementpublic JcrPropertyStatementListener(IdentifierConverter<com.hp.hpl.jena.rdf.model.Resource,FedoraResource> idTranslator, JcrRdfTools jcrRdfTools, com.hp.hpl.jena.graph.Node topic)
idTranslator
- the id translatorjcrRdfTools
- the jcr rdf toolstopic
- the topic of the RDF statementpublic void addedStatement(com.hp.hpl.jena.rdf.model.Statement input)
addedStatement
in interface com.hp.hpl.jena.rdf.model.ModelChangedListener
addedStatement
in class com.hp.hpl.jena.rdf.listeners.StatementListener
input
- the input statementpublic void removedStatement(com.hp.hpl.jena.rdf.model.Statement s)
removedStatement
in interface com.hp.hpl.jena.rdf.model.ModelChangedListener
removedStatement
in class com.hp.hpl.jena.rdf.listeners.StatementListener
s
- the given statementpublic void assertNoExceptions()
Copyright © 2013–2016 DuraSpace, Inc.. All rights reserved.