org.ontoware.rdf2go.model.impl
Class NotifyingModelLayer
java.lang.Object
org.ontoware.rdf2go.model.impl.AbstractModelWriter
org.ontoware.rdf2go.model.impl.AbstractModelAddRemove
org.ontoware.rdf2go.model.impl.AbstractModelRemovePatterns
org.ontoware.rdf2go.model.impl.AbstractModel
org.ontoware.rdf2go.model.impl.DelegatingModel
org.ontoware.rdf2go.model.impl.NotifyingModelLayer
- All Implemented Interfaces:
- java.lang.Iterable<Statement>, ClosableIterable<Statement>, Commitable, FindableModel, Lockable, Model, ModelAddRemove, ModelIO, ModelRemovePatterns, ModelValueFactory, ModelWriter, NamespaceSupport, NotifyingModel, QueryableModel, ReificationSupport, Sparqlable
public class NotifyingModelLayer
- extends DelegatingModel
- implements NotifyingModel
Adds notifying capabilites to existing models.
- Author:
- voelkel
|
Method Summary |
void |
addAll(java.util.Iterator<? extends Statement> other)
|
void |
addModelChangedListener(ModelChangedListener listener)
|
void |
addModelChangedListener(ModelChangedListener listener,
TriplePattern pattern)
|
void |
addStatement(Resource subject,
URI predicate,
Node object)
|
void |
addStatement(Resource subject,
URI predicate,
java.lang.String literal)
|
void |
addStatement(Resource subject,
URI predicate,
java.lang.String literal,
java.lang.String languageTag)
|
void |
addStatement(Resource subject,
URI predicate,
java.lang.String literal,
URI datatypeURI)
|
void |
addStatement(Statement statement)
|
void |
addStatement(java.lang.String subjectURIString,
URI predicate,
java.lang.String literal)
|
void |
addStatement(java.lang.String subjectURIString,
URI predicate,
java.lang.String literal,
java.lang.String languageTag)
|
void |
addStatement(java.lang.String subjectURIString,
URI predicate,
java.lang.String literal,
URI datatypeURI)
|
void |
removeAll(java.util.Iterator<? extends Statement> other)
|
void |
removeModelChangedListener(ModelChangedListener listener)
|
void |
removeStatement(Resource subject,
URI predicate,
Node object)
|
void |
removeStatement(Resource subject,
URI predicate,
java.lang.String literal)
|
void |
removeStatement(Resource subject,
URI predicate,
java.lang.String literal,
java.lang.String languageTag)
|
void |
removeStatement(Resource subject,
URI predicate,
java.lang.String literal,
URI datatypeURI)
|
void |
removeStatement(Statement statement)
|
void |
removeStatement(java.lang.String subjectURIString,
URI predicate,
java.lang.String literal)
|
void |
removeStatement(java.lang.String subjectURIString,
URI predicate,
java.lang.String literal,
java.lang.String languageTag)
|
void |
removeStatement(java.lang.String subjectURIString,
URI predicate,
java.lang.String literal,
URI datatypeURI)
|
void |
removeStatements(ResourceOrVariable subject,
UriOrVariable predicate,
NodeOrVariable object)
|
void |
update(DiffReader diff)
Implementations with support for transactions should use them instead of
this implementation. |
| Methods inherited from class org.ontoware.rdf2go.model.impl.DelegatingModel |
addModel, close, commit, contains, createBlankNode, createBlankNode, createURI, dump, findStatements, findStatements, getContextURI, getDelegatedModel, getDiff, getNamespace, getNamespaces, getProperty, getUnderlyingModelImplementation, isEmpty, isIsomorphicWith, isLocked, isOpen, isValidURI, iterator, lock, newRandomUniqueURI, open, queryConstruct, querySelect, readFrom, readFrom, readFrom, readFrom, readFrom, readFrom, removeAll, removeNamespace, setAutocommit, setDelegatedModel, setNamespace, setProperty, size, sparqlAsk, sparqlConstruct, sparqlDescribe, sparqlSelect, unlock, writeTo, writeTo, writeTo, writeTo |
| Methods inherited from class org.ontoware.rdf2go.model.impl.AbstractModel |
addReificationOf, addReificationOf, assertModel, contains, contains, countStatements, createDatatypeLiteral, createLanguageTagLiteral, createPlainLiteral, createStatement, createTriplePattern, deleteReification, getAllReificationsOf, hasReifications, removeStatements, serialize |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NotifyingModelLayer
public NotifyingModelLayer(Model model)
addAll
public void addAll(java.util.Iterator<? extends Statement> other)
throws ModelRuntimeException
- Specified by:
addAll in interface ModelWriter- Overrides:
addAll in class DelegatingModel
- Throws:
ModelRuntimeException
addStatement
public void addStatement(Resource subject,
URI predicate,
Node object)
throws ModelRuntimeException
- Specified by:
addStatement in interface ModelWriter- Overrides:
addStatement in class DelegatingModel
- Throws:
ModelRuntimeException
addStatement
public void addStatement(Resource subject,
URI predicate,
java.lang.String literal,
java.lang.String languageTag)
throws ModelRuntimeException
- Specified by:
addStatement in interface ModelWriter- Overrides:
addStatement in class DelegatingModel
- Throws:
ModelRuntimeException
addStatement
public void addStatement(Resource subject,
URI predicate,
java.lang.String literal,
URI datatypeURI)
throws ModelRuntimeException
- Specified by:
addStatement in interface ModelWriter- Overrides:
addStatement in class DelegatingModel
- Throws:
ModelRuntimeException
addStatement
public void addStatement(Resource subject,
URI predicate,
java.lang.String literal)
throws ModelRuntimeException
- Specified by:
addStatement in interface ModelWriter- Overrides:
addStatement in class DelegatingModel
- Throws:
ModelRuntimeException
addStatement
public void addStatement(Statement statement)
throws ModelRuntimeException
- Specified by:
addStatement in interface ModelWriter- Overrides:
addStatement in class DelegatingModel
- Throws:
ModelRuntimeException
addStatement
public void addStatement(java.lang.String subjectURIString,
URI predicate,
java.lang.String literal,
java.lang.String languageTag)
throws ModelRuntimeException
- Specified by:
addStatement in interface ModelWriter- Overrides:
addStatement in class DelegatingModel
- Throws:
ModelRuntimeException
addStatement
public void addStatement(java.lang.String subjectURIString,
URI predicate,
java.lang.String literal,
URI datatypeURI)
throws ModelRuntimeException
- Specified by:
addStatement in interface ModelWriter- Overrides:
addStatement in class DelegatingModel
- Throws:
ModelRuntimeException
addStatement
public void addStatement(java.lang.String subjectURIString,
URI predicate,
java.lang.String literal)
throws ModelRuntimeException
- Specified by:
addStatement in interface ModelWriter- Overrides:
addStatement in class DelegatingModel
- Throws:
ModelRuntimeException
removeAll
public void removeAll(java.util.Iterator<? extends Statement> other)
throws ModelRuntimeException
- Specified by:
removeAll in interface ModelAddRemove- Overrides:
removeAll in class DelegatingModel
- Throws:
ModelRuntimeException
removeStatement
public void removeStatement(Resource subject,
URI predicate,
Node object)
throws ModelRuntimeException
- Specified by:
removeStatement in interface ModelAddRemove- Overrides:
removeStatement in class DelegatingModel
- Throws:
ModelRuntimeException
removeStatement
public void removeStatement(Resource subject,
URI predicate,
java.lang.String literal,
java.lang.String languageTag)
throws ModelRuntimeException
- Specified by:
removeStatement in interface ModelAddRemove- Overrides:
removeStatement in class DelegatingModel
- Throws:
ModelRuntimeException
removeStatement
public void removeStatement(Resource subject,
URI predicate,
java.lang.String literal,
URI datatypeURI)
throws ModelRuntimeException
- Specified by:
removeStatement in interface ModelAddRemove- Overrides:
removeStatement in class DelegatingModel
- Throws:
ModelRuntimeException
removeStatement
public void removeStatement(Resource subject,
URI predicate,
java.lang.String literal)
throws ModelRuntimeException
- Specified by:
removeStatement in interface ModelAddRemove- Overrides:
removeStatement in class DelegatingModel
- Throws:
ModelRuntimeException
removeStatement
public void removeStatement(Statement statement)
throws ModelRuntimeException
- Specified by:
removeStatement in interface ModelAddRemove- Overrides:
removeStatement in class DelegatingModel
- Throws:
ModelRuntimeException
removeStatement
public void removeStatement(java.lang.String subjectURIString,
URI predicate,
java.lang.String literal,
java.lang.String languageTag)
throws ModelRuntimeException
- Specified by:
removeStatement in interface ModelAddRemove- Overrides:
removeStatement in class DelegatingModel
- Throws:
ModelRuntimeException
removeStatement
public void removeStatement(java.lang.String subjectURIString,
URI predicate,
java.lang.String literal,
URI datatypeURI)
throws ModelRuntimeException
- Specified by:
removeStatement in interface ModelAddRemove- Overrides:
removeStatement in class DelegatingModel
- Throws:
ModelRuntimeException
removeStatement
public void removeStatement(java.lang.String subjectURIString,
URI predicate,
java.lang.String literal)
throws ModelRuntimeException
- Specified by:
removeStatement in interface ModelAddRemove- Overrides:
removeStatement in class DelegatingModel
- Throws:
ModelRuntimeException
removeStatements
public void removeStatements(ResourceOrVariable subject,
UriOrVariable predicate,
NodeOrVariable object)
throws ModelRuntimeException
- Specified by:
removeStatements in interface ModelRemovePatterns- Overrides:
removeStatements in class DelegatingModel
- Throws:
ModelRuntimeException
update
public void update(DiffReader diff)
throws ModelRuntimeException
- Description copied from class:
AbstractModel
- Implementations with support for transactions should use them instead of
this implementation.
- Specified by:
update in interface ModelAddRemove- Overrides:
update in class DelegatingModel
- Throws:
ModelRuntimeException
addModelChangedListener
public void addModelChangedListener(ModelChangedListener listener,
TriplePattern pattern)
- Specified by:
addModelChangedListener in interface NotifyingModel
addModelChangedListener
public void addModelChangedListener(ModelChangedListener listener)
- Specified by:
addModelChangedListener in interface NotifyingModel
removeModelChangedListener
public void removeModelChangedListener(ModelChangedListener listener)
- Specified by:
removeModelChangedListener in interface NotifyingModel
Copyright © 2005-2008 FZI - Forschungszentrum Informatik | Karlsruhe | Germany. All Rights Reserved.