org.topbraid.sparqlmotion.scripts.impl
Class Script

java.lang.Object
  extended by org.topbraid.sparqlmotion.scripts.impl.Script
All Implemented Interfaces:
IScript

public class Script
extends java.lang.Object
implements IScript


Constructor Summary
Script()
           
 
Method Summary
 void addTargetModule(IModule value)
           
 IModule getModule(com.hp.hpl.jena.rdf.model.Resource config)
          Gets the IModule representing a given configuration Resource.
 java.util.Set<IModule> getTargetModules()
          Gets a Set of all IModules that do not have any next modules.
 void setConfig2Module(java.util.Map<com.hp.hpl.jena.rdf.model.Resource,IModule> value)
           
 void validate()
          Validates whether this script is well-formed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Script

public Script()
Method Detail

addTargetModule

public void addTargetModule(IModule value)

getModule

public IModule getModule(com.hp.hpl.jena.rdf.model.Resource config)
Description copied from interface: IScript
Gets the IModule representing a given configuration Resource.

Specified by:
getModule in interface IScript
Parameters:
config - the Resource
Returns:
the IModule or null

getTargetModules

public java.util.Set<IModule> getTargetModules()
Description copied from interface: IScript
Gets a Set of all IModules that do not have any next modules.

Specified by:
getTargetModules in interface IScript
Returns:
the target modules

setConfig2Module

public void setConfig2Module(java.util.Map<com.hp.hpl.jena.rdf.model.Resource,IModule> value)

validate

public void validate()
              throws java.lang.Throwable
Description copied from interface: IScript
Validates whether this script is well-formed.

Specified by:
validate in interface IScript
Throws:
java.lang.Throwable - if the script is not well-formed