org.ontoware.rdf2go.model.impl
Class NotifyingModelSetLayer
java.lang.Object
org.ontoware.rdf2go.model.impl.AbstractModelSetImpl
org.ontoware.rdf2go.model.impl.DelegatingModelSet
org.ontoware.rdf2go.model.impl.NotifyingModelSetLayer
- All Implemented Interfaces:
- java.lang.Iterable<Statement>, ClosableIterable<Statement>, Commitable, FindableModelSet, Lockable, ModelSet, ModelSetAddRemove, ModelSetIO, ModelValueFactory, NamespaceSupport, NotifyingModelSet, ReificationSupport, Sparqlable
public class NotifyingModelSetLayer
- extends DelegatingModelSet
- implements NotifyingModelSet
Adds notifying capabilites to existing models.
Reads from streams and readers are not detectable.
- Author:
- voelkel
| Methods inherited from class org.ontoware.rdf2go.model.impl.DelegatingModelSet |
addModel, addModelSet, addReificationOf, addReificationOf, close, commit, containsModel, containsStatements, createBlankNode, createQuadPattern, createURI, deleteReification, findStatements, getAllReificationsOf, getDelegatedModelSet, getModelURIs, getNamespace, getNamespaces, getUnderlyingModelImplementation, getUnderlyingModelSetImplementation, hasReifications, isEmpty, isOpen, open, queryConstruct, querySelect, readFrom, readFrom, readFrom, readFrom, readFrom, readFrom, removeModel, removeNamespace, setAutocommit, setNamespace, size, sparqlAsk, sparqlConstruct, sparqlDescribe, sparqlSelect, writeTo, writeTo, writeTo, writeTo |
| Methods inherited from class org.ontoware.rdf2go.model.impl.AbstractModelSetImpl |
addAll, addStatement, contains, countStatements, createBlankNode, createDatatypeLiteral, createLanguageTagLiteral, createPlainLiteral, createStatement, createStatement, dump, findStatements, isLocked, isValidURI, iterator, lock, newRandomUniqueURI, removeAll, removeAll, removeStatement, removeStatements, removeStatements, serialize, unlock |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NotifyingModelSetLayer
public NotifyingModelSetLayer(ModelSet modelset)
addModelSetChangedListener
public void addModelSetChangedListener(ModelChangedListener listener)
- Specified by:
addModelSetChangedListener in interface NotifyingModelSet
addModelSetChangedListener
public void addModelSetChangedListener(ModelChangedListener listener,
QuadPattern pattern)
- Specified by:
addModelSetChangedListener in interface NotifyingModelSet
removeModelSetChangedListener
public void removeModelSetChangedListener(ModelChangedListener listener)
- Specified by:
removeModelSetChangedListener in interface NotifyingModelSet
addModel
public boolean addModel(Model model)
- Specified by:
addModel in interface ModelSet- Overrides:
addModel in class DelegatingModelSet
addStatement
public void addStatement(Statement statement)
throws ModelRuntimeException
- Specified by:
addStatement in interface ModelSetAddRemove- Overrides:
addStatement in class DelegatingModelSet
- Throws:
ModelRuntimeException
getDefaultModel
public Model getDefaultModel()
- Specified by:
getDefaultModel in interface ModelSet- Overrides:
getDefaultModel in class DelegatingModelSet
getModel
public Model getModel(URI contextURI)
- Specified by:
getModel in interface ModelSet- Overrides:
getModel in class DelegatingModelSet
getModels
public ClosableIterator<Model> getModels()
- Specified by:
getModels in interface ModelSet- Overrides:
getModels in class DelegatingModelSet
removeStatement
public void removeStatement(Statement statement)
throws ModelRuntimeException
- Specified by:
removeStatement in interface ModelSetAddRemove- Overrides:
removeStatement in class DelegatingModelSet
- Throws:
ModelRuntimeException
update
public void update(DiffReader diff)
throws ModelRuntimeException
- Specified by:
update in interface ModelSetAddRemove- Overrides:
update in class DelegatingModelSet
- Throws:
ModelRuntimeException - if the ModelSet is locked
Copyright © 2005-2008 FZI - Forschungszentrum Informatik | Karlsruhe | Germany. All Rights Reserved.