org.topbraid.sparqlmotion.modules.impl
Class AbstractModule

java.lang.Object
  extended by org.topbraid.sparqlmotion.modules.impl.AbstractModule
All Implemented Interfaces:
IModule
Direct Known Subclasses:
AbstractRDFInputModule, AbstractXMLInputModule, LoadExcelCellInstancesModule, LoadSesameNativeRepositoryModule, LoadSesameRemoteRepositoryModule

public abstract class AbstractModule
extends java.lang.Object
implements IModule


Field Summary
protected  java.util.Collection<IModule> inputModules
           
 
Constructor Summary
AbstractModule()
           
 
Method Summary
 java.lang.String bindInputURL(java.lang.String input, IVarBindings bindings)
           
 java.lang.String bindInputURL(java.lang.String input, IVarBindings bindings, java.lang.String strategy)
           
protected  java.lang.IllegalArgumentException createError(com.hp.hpl.jena.rdf.model.Property predicate, java.lang.String message)
           
protected static void dumpNamespaces(com.hp.hpl.jena.graph.Graph graph)
           
 com.hp.hpl.jena.rdf.model.Resource getConfig()
           
protected  boolean getConfigBoolean(com.hp.hpl.jena.rdf.model.Property predicate)
           
protected  org.eclipse.core.resources.IFile getConfigFile(com.hp.hpl.jena.rdf.model.Property predicate, boolean required)
           
protected  com.hp.hpl.jena.rdf.model.Resource getConfigResource(com.hp.hpl.jena.rdf.model.Property predicate, boolean required)
           
protected  java.lang.String getConfigString(com.hp.hpl.jena.rdf.model.Property predicate, boolean required)
           
 IExecutionContext getContext()
           
 java.util.Collection<IModule> getInputModules()
           
protected  java.lang.String getModuleLabel()
           
protected  java.util.List<java.lang.String> getQueryStrings(com.hp.hpl.jena.rdf.model.Property predicate)
           
protected  java.lang.String getVarInsertion(com.hp.hpl.jena.rdf.model.RDFNode node, java.lang.String strategy)
           
 void init(com.hp.hpl.jena.rdf.model.Resource config)
           
protected  void moni(org.eclipse.core.runtime.IProgressMonitor monitor, java.lang.String message)
           
 void setContext(IExecutionContext value)
           
 void setInputModules(java.util.Collection<IModule> values)
           
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inputModules

protected java.util.Collection<IModule> inputModules
Constructor Detail

AbstractModule

public AbstractModule()
Method Detail

bindInputURL

public java.lang.String bindInputURL(java.lang.String input,
                                     IVarBindings bindings)

bindInputURL

public java.lang.String bindInputURL(java.lang.String input,
                                     IVarBindings bindings,
                                     java.lang.String strategy)

createError

protected java.lang.IllegalArgumentException createError(com.hp.hpl.jena.rdf.model.Property predicate,
                                                         java.lang.String message)

dumpNamespaces

protected static void dumpNamespaces(com.hp.hpl.jena.graph.Graph graph)

getConfig

public com.hp.hpl.jena.rdf.model.Resource getConfig()
Specified by:
getConfig in interface IModule

getConfigBoolean

protected boolean getConfigBoolean(com.hp.hpl.jena.rdf.model.Property predicate)

getConfigFile

protected org.eclipse.core.resources.IFile getConfigFile(com.hp.hpl.jena.rdf.model.Property predicate,
                                                         boolean required)

getConfigString

protected java.lang.String getConfigString(com.hp.hpl.jena.rdf.model.Property predicate,
                                           boolean required)

getConfigResource

protected com.hp.hpl.jena.rdf.model.Resource getConfigResource(com.hp.hpl.jena.rdf.model.Property predicate,
                                                               boolean required)

getContext

public IExecutionContext getContext()
Specified by:
getContext in interface IModule

getInputModules

public java.util.Collection<IModule> getInputModules()
Specified by:
getInputModules in interface IModule

getModuleLabel

protected java.lang.String getModuleLabel()

getQueryStrings

protected java.util.List<java.lang.String> getQueryStrings(com.hp.hpl.jena.rdf.model.Property predicate)

getVarInsertion

protected java.lang.String getVarInsertion(com.hp.hpl.jena.rdf.model.RDFNode node,
                                           java.lang.String strategy)

init

public void init(com.hp.hpl.jena.rdf.model.Resource config)
Specified by:
init in interface IModule

moni

protected void moni(org.eclipse.core.runtime.IProgressMonitor monitor,
                    java.lang.String message)

setContext

public void setContext(IExecutionContext value)
Specified by:
setContext in interface IModule

setInputModules

public void setInputModules(java.util.Collection<IModule> values)
Specified by:
setInputModules in interface IModule

validate

public void validate()
Specified by:
validate in interface IModule