public class FindAssociationsInOccurrenceSimple extends AbstractWandoraTool implements WandoraTool
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BASE_SI |
static boolean |
CASE_INSENSITIVE |
static boolean |
LOOK_BASE_NAME |
static boolean |
LOOK_SIS |
static boolean |
LOOK_VARIANT_NAMES |
static java.lang.String |
OPTIONS_PREFIX |
private boolean |
requiresRefresh |
Constructor and Description |
---|
FindAssociationsInOccurrenceSimple()
Creates a new instance of FindAssociationsInOccurrenceSimple
|
FindAssociationsInOccurrenceSimple(Context preferredContext) |
Modifier and Type | Method and Description |
---|---|
void |
configure(Wandora wandora,
Options options,
java.lang.String prefix)
If the tool is configurable, shows an user interface to configure the tool.
|
boolean |
contains(java.lang.String s1,
java.lang.String s2) |
void |
execute(Wandora admin,
Context context)
Runs the tool.
|
java.lang.String |
getDescription()
AdminToolManager views tool descriptions while user browses available
tools and build user customizable GUI elements such as Tools menu.
|
java.lang.String |
getName()
Tools name represent the tool in UI unless the tool has been given
explicitly another GUI name.
|
Topic |
getOrCreateTopic(TopicMap tm,
java.lang.String basename,
java.lang.String si) |
void |
initialize(Wandora wandora,
Options options,
java.lang.String prefix)
Initializes a tool with options saved in the options.
|
boolean |
isConfigurable()
Whether this tool is configurable.
|
boolean |
isMatch(java.lang.String occurrence,
Topic t) |
boolean |
requiresRefresh()
If any visible topic has been changed during tool execution GUI is
automatically refreshed.
|
void |
writeOptions(Wandora wandora,
Options options,
java.lang.String prefix)
If the tool is configurable, saves all current tool options.
|
addUndoMarker, addUndoMarker, allowMultipleInvocations, clearAllThreads, clearThreads, clearThreads, clearToolLock, clearToolLock, clearToolLocks, execute, execute, forceStop, forceStop, getContext, getCurrentLogger, getDefaultLogger, getHistory, getIcon, getLastLogger, getState, getThreads, getThreads, getToolMenuItem, getToolMenuItem, getTopicName, getType, hlog, interruptAllThreads, interruptThreads, interruptThreads, isRunning, isRunning, lockLog, log, log, log, log, run, runInOwnThread, setContext, setDefaultLogger, setLogTitle, setProgress, setProgressMax, setState, setToolLogger, singleLog, singleLog, singleLog, solveContextTopicMap, solveNameForTopicMap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute, execute, getContext, getIcon, getToolMenuItem, getType, hlog, isRunning, log, log, log, log, setContext, setToolLogger
forceStop, getHistory, getState, lockLog, setLogTitle, setProgress, setProgressMax, setState
public static final java.lang.String OPTIONS_PREFIX
private boolean requiresRefresh
public static boolean LOOK_BASE_NAME
public static boolean LOOK_VARIANT_NAMES
public static boolean LOOK_SIS
public static boolean CASE_INSENSITIVE
public static java.lang.String BASE_SI
public FindAssociationsInOccurrenceSimple()
public FindAssociationsInOccurrenceSimple(Context preferredContext)
public java.lang.String getName()
AbstractWandoraTool
getName
in interface WandoraTool
getName
in class AbstractWandoraTool
public java.lang.String getDescription()
AbstractWandoraTool
getDescription
in interface WandoraTool
getDescription
in class AbstractWandoraTool
public boolean requiresRefresh()
AbstractWandoraTool
If any visible topic has been changed during tool execution GUI is automatically refreshed. If tool doesn't change topics but GUI still requires refresh, tool should override this method and return true.
For example tools that alter the GUI but change no topics should return true.
requiresRefresh
in interface WandoraTool
requiresRefresh
in class AbstractWandoraTool
public void initialize(Wandora wandora, Options options, java.lang.String prefix) throws TopicMapException
AbstractWandoraTool
initialize
in interface WandoraTool
initialize
in class AbstractWandoraTool
TopicMapException
public boolean isConfigurable()
AbstractWandoraTool
isConfigurable
in interface WandoraTool
isConfigurable
in class AbstractWandoraTool
public void configure(Wandora wandora, Options options, java.lang.String prefix) throws TopicMapException
AbstractWandoraTool
configure
in interface WandoraTool
configure
in class AbstractWandoraTool
TopicMapException
public void writeOptions(Wandora wandora, Options options, java.lang.String prefix)
AbstractWandoraTool
writeOptions
in interface WandoraTool
writeOptions
in class AbstractWandoraTool
public void execute(Wandora admin, Context context)
WandoraTool
execute
in interface WandoraTool
public boolean isMatch(java.lang.String occurrence, Topic t)
public boolean contains(java.lang.String s1, java.lang.String s2)
public Topic getOrCreateTopic(TopicMap tm, java.lang.String basename, java.lang.String si) throws TopicMapException
TopicMapException
Copyright 2004-2015 Wandora Team