Codota Logo
NotifyingModelLayer.<init>
Code IndexAdd Codota to your IDE (free)

How to use
org.ontoware.rdf2go.model.impl.NotifyingModelLayer
constructor

Best Java code snippets using org.ontoware.rdf2go.model.impl.NotifyingModelLayer.<init> (Showing top 7 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: org.semweb4j/rdf2go.api

@Override
public Model getModel(URI contextURI) {
  Model model = super.getModel(contextURI);
  NotifyingModelLayer notifyingModel = new NotifyingModelLayer(model);
  for (Map.Entry<ModelChangedListener, QuadPattern> entry : this.modelsetChangeListener
      .entrySet()) {
    if (entry.getValue().getContext() == Variable.ANY
        || entry.getValue().getContext().equals(contextURI)) {
      notifyingModel.addModelChangedListener(entry.getKey(), entry
          .getValue());
    }
  }
  return notifyingModel;
}
origin: org.semweb4j/rdf2go.api

@Override
public Model getDefaultModel() {
  Model model = super.getDefaultModel();
  NotifyingModelLayer notifyingModel = new NotifyingModelLayer(model);
  for (Map.Entry<ModelChangedListener, QuadPattern> entry : this.modelsetChangeListener
      .entrySet()) {
    // only if listening for (*, x,y,z) changes in default model are
    // detected
    if (entry.getValue().getContext() == Variable.ANY) {
      notifyingModel.addModelChangedListener(entry.getKey(), entry
          .getValue());
    }
  }
  return notifyingModel;
}
origin: org.semweb4j/rdf2go.impl.base

@Override
public Model getModel(URI contextURI) {
  Model model = super.getModel(contextURI);
  NotifyingModelLayer notifyingModel = new NotifyingModelLayer(model);
  for (Map.Entry<ModelChangedListener, QuadPattern> entry : this.modelsetChangeListener
      .entrySet()) {
    if (entry.getValue().getContext() == Variable.ANY
        || entry.getValue().getContext().equals(contextURI)) {
      notifyingModel.addModelChangedListener(entry.getKey(), entry
          .getValue());
    }
  }
  return notifyingModel;
}
origin: org.semweb4j/rdf2go.impl.base

@Override
public Model getDefaultModel() {
  Model model = super.getDefaultModel();
  NotifyingModelLayer notifyingModel = new NotifyingModelLayer(model);
  for (Map.Entry<ModelChangedListener, QuadPattern> entry : this.modelsetChangeListener
      .entrySet()) {
    // only if listening for (*, x,y,z) changes in default model are
    // detected
    if (entry.getValue().getContext() == Variable.ANY) {
      notifyingModel.addModelChangedListener(entry.getKey(), entry
          .getValue());
    }
  }
  return notifyingModel;
}
origin: org.semweb4j/rdf2go.api

@Override
public ClosableIterator<Model> getModels() {
  List<Model> models = new ArrayList<Model>();
  ClosableIterator<? extends Model> it = super.getModels();
  // wrap all into NotifyingModels
  while (it.hasNext()) {
    Model model = it.next();
    NotifyingModelLayer notifyingModel = new NotifyingModelLayer(model);
    for (Map.Entry<ModelChangedListener, QuadPattern> entry : this.modelsetChangeListener
        .entrySet()) {
      notifyingModel.addModelChangedListener(entry.getKey(), entry
          .getValue());
    }
    models.add(notifyingModel);
  }
  it.close();
  return new PseudoClosableIterator<Model>(models.iterator());
}
origin: org.semweb4j/rdf2go.impl.base

@Override
public ClosableIterator<Model> getModels() {
  List<Model> models = new ArrayList<Model>();
  ClosableIterator<? extends Model> it = super.getModels();
  // wrap all into NotifyingModels
  while (it.hasNext()) {
    Model model = it.next();
    NotifyingModelLayer notifyingModel = new NotifyingModelLayer(model);
    for (Map.Entry<ModelChangedListener, QuadPattern> entry : this.modelsetChangeListener
        .entrySet()) {
      notifyingModel.addModelChangedListener(entry.getKey(), entry
          .getValue());
    }
    models.add(notifyingModel);
  }
  it.close();
  return new PseudoClosableIterator<Model>(models.iterator());
}
origin: org.semweb4j/rdf2go.impl.test

@Override
public void setUp() {
  super.setUp();
  Model plainModel = getModelFactory().createModel();
  assertNotNull(plainModel);
  this.notifyingModel = new NotifyingModelLayer(plainModel);
}
org.ontoware.rdf2go.model.implNotifyingModelLayer<init>

Popular methods of NotifyingModelLayer

  • addModelChangedListener
  • addStatement
  • getDelegatedModel
  • removeStatement
  • findStatements
  • removeAll
  • close
  • isOpen
  • open
  • removeModelChangedListener
  • update
  • update

Popular in Java

  • Reading from database using SQL prepared statement
  • runOnUiThread (Activity)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • startActivity (Activity)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now