org.ontoware.rdf2go.model
Interface NotifyingModel


public interface NotifyingModel

A Model that can notify listeners when triples are added or removed from the model. Note that not all models support listening, for example a model hosted on a remote server may not support notifications of operations done on the model to remote clients. Reads from streams and readers are not detectable.

Author:
sauermann, voelkel

Method Summary
 void addModelChangedListener(ModelChangedListener listener)
           
 void addModelChangedListener(ModelChangedListener listener, TriplePattern pattern)
           
 void removeModelChangedListener(ModelChangedListener listener)
           
 

Method Detail

addModelChangedListener

void addModelChangedListener(ModelChangedListener listener,
                             TriplePattern pattern)
Parameters:
listener -
pattern - all add or remove statement events matching the pattern will be send to the listener. Updates are always send.

addModelChangedListener

void addModelChangedListener(ModelChangedListener listener)

removeModelChangedListener

void removeModelChangedListener(ModelChangedListener listener)


Copyright © 2005-2008 FZI - Forschungszentrum Informatik | Karlsruhe | Germany. All Rights Reserved.