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)
Construct a statement listener within the given session
|
JcrPropertyStatementListener(IdentifierConverter<com.hp.hpl.jena.rdf.model.Resource,FedoraResource> idTranslator,
javax.jcr.Session session)
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)
idTranslator
- the id translatorsession
- the sessionpublic JcrPropertyStatementListener(IdentifierConverter<com.hp.hpl.jena.rdf.model.Resource,FedoraResource> idTranslator, JcrRdfTools jcrRdfTools)
idTranslator
- the id translatorjcrRdfTools
- the jcr rdf toolspublic 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() throws MalformedRdfException, javax.jcr.AccessDeniedException
MalformedRdfException
- if malformed rdf exception occurredjavax.jcr.AccessDeniedException
- if access denied exception occurredCopyright © 2013–2015 DuraSpace, Inc.. All rights reserved.