|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdatabionics.modules.Module
public class Module
A group of tools with similar functions.
Field Summary | |
---|---|
protected java.lang.String |
description
description of the module |
protected java.lang.String |
iconName
name of the icon file |
protected static org.apache.log4j.Logger |
log
log4j logging |
protected java.lang.String |
name
name of the module |
protected java.util.List |
tools
list of tools |
Constructor Summary | |
---|---|
Module()
Default constructor |
Method Summary | |
---|---|
java.lang.String |
getDescription()
Get the description |
javax.swing.ImageIcon |
getIcon()
Get the icon or null if the path was invalid. |
java.util.List |
getInputTypes()
Get a List with the union of all FileTypes needed as inputfiles for the tools in this module |
java.lang.String |
getName()
Get the name |
java.util.List |
getOutputTypes()
Get a List with the union of all FileTypes created as outputfiles by the tools in this module |
java.util.List |
getTools()
Get the list of tools |
java.util.List |
getUsableTools(Project project)
Given the types of the files existing in the project, returns a List containing all tools of this module, that can be started because they only need files as input that are already present in the project. |
void |
setDescription(java.lang.String s)
Set the description |
void |
setIconName(java.lang.String s)
Set the icon |
void |
setName(java.lang.String s)
Set the name |
static Module |
valueOf(org.w3c.dom.Element el)
Create a Module from an XML tag |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static org.apache.log4j.Logger log
protected java.lang.String name
protected java.lang.String description
protected java.util.List tools
protected java.lang.String iconName
Constructor Detail |
---|
public Module()
Method Detail |
---|
public java.lang.String getName()
public java.lang.String getDescription()
public javax.swing.ImageIcon getIcon()
public java.util.List getTools()
public java.util.List getInputTypes()
public java.util.List getOutputTypes()
public java.util.List getUsableTools(Project project)
p
- the corresponding projectpublic void setName(java.lang.String s)
public void setDescription(java.lang.String s)
public void setIconName(java.lang.String s)
public static Module valueOf(org.w3c.dom.Element el)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |