org.topbraid.change
Class AddDifferentStatementsChange

java.lang.Object
  extended by org.topbraid.core.change.AbstractChange
      extended by org.topbraid.change.AddDifferentStatementsChange
All Implemented Interfaces:
IChange

public class AddDifferentStatementsChange
extends AbstractChange


Constructor Summary
AddDifferentStatementsChange(com.hp.hpl.jena.rdf.model.Statement[] statements)
           
 
Method Summary
 void execute(ISession session, org.eclipse.core.runtime.IProgressMonitor monitor)
          Executes the change.
 boolean isNoop()
          Checks if this is a no-operation, i.e.
 
Methods inherited from class org.topbraid.core.change.AbstractChange
check, getImageMetadata, getLabel, setImage, setImage, setLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddDifferentStatementsChange

public AddDifferentStatementsChange(com.hp.hpl.jena.rdf.model.Statement[] statements)
Method Detail

execute

public void execute(ISession session,
                    org.eclipse.core.runtime.IProgressMonitor monitor)
Description copied from interface: IChange
Executes the change. This should perform the changes to a Jena model. In case of an unexpected state, the method may throw an IllegalStateException.

Parameters:
session - the session to execute the change on
monitor - a progress monitor for longish operations (may be null)

isNoop

public boolean isNoop()
Description copied from interface: IChange
Checks if this is a no-operation, i.e. resulting in no triple changes. This can be used by execution environments to check whether corresponding user interface components shall be activated to the user.

Specified by:
isNoop in interface IChange
Overrides:
isNoop in class AbstractChange
Returns:
true if this is a no-operation