public class FlattenTimeApellations extends AbstractWandoraTool implements WandoraTool
Constructor and Description |
---|
FlattenTimeApellations() |
Modifier and Type | Method and Description |
---|---|
static void |
addCenturyTopic(TopicMap tm,
Topic t,
java.lang.String year) |
static void |
addDecadeTopic(TopicMap tm,
Topic t,
java.lang.String year) |
static void |
addMonthTopic(TopicMap tm,
Topic t,
java.lang.String month) |
static void |
addYearTopic(TopicMap tm,
Topic t,
java.lang.String year) |
static java.lang.String |
chop(java.lang.String text) |
static void |
createDateTopics(TopicMap tm) |
static void |
createRelated(TopicMap tm,
Topic t,
java.lang.String fn) |
static void |
createTopic(TopicMap tm,
java.lang.String si,
java.lang.String fname,
java.lang.String ename,
java.lang.String[] types) |
static void |
createTopic(TopicMap tm,
java.lang.String si,
java.lang.String bname,
java.lang.String fname,
java.lang.String ename,
java.lang.String[] types) |
void |
execute(Wandora admin,
Context context)
Runs the tool.
|
static java.lang.String |
fixTime(java.lang.String oldTime) |
java.lang.String |
getName()
Tools name represent the tool in UI unless the tool has been given
explicitly another GUI name.
|
static void |
main(java.lang.String[] args) |
static void |
process(TopicMap tm) |
static void |
removeMonthTypes(TopicMap tm,
Topic t) |
static void |
setDisplayName(Topic t,
java.lang.String lang,
java.lang.String name) |
static java.lang.String |
trimEndingSpaces(java.lang.String string) |
static java.lang.String |
trimExtraSpaces(java.lang.String string) |
static java.lang.String |
trimStartingSpaces(java.lang.String string) |
addUndoMarker, addUndoMarker, allowMultipleInvocations, clearAllThreads, clearThreads, clearThreads, clearToolLock, clearToolLock, clearToolLocks, configure, execute, execute, forceStop, forceStop, getContext, getCurrentLogger, getDefaultLogger, getDescription, getHistory, getIcon, getLastLogger, getState, getThreads, getThreads, getToolMenuItem, getToolMenuItem, getTopicName, getType, hlog, initialize, interruptAllThreads, interruptThreads, interruptThreads, isConfigurable, isRunning, isRunning, lockLog, log, log, log, log, requiresRefresh, run, runInOwnThread, setContext, setDefaultLogger, setLogTitle, setProgress, setProgressMax, setState, setToolLogger, singleLog, singleLog, singleLog, solveContextTopicMap, solveNameForTopicMap, writeOptions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
configure, execute, execute, getContext, getDescription, getIcon, getToolMenuItem, getType, hlog, initialize, isConfigurable, isRunning, log, log, log, log, requiresRefresh, setContext, setToolLogger, writeOptions
forceStop, getHistory, getState, lockLog, setLogTitle, setProgress, setProgressMax, setState
public void execute(Wandora admin, Context context)
WandoraTool
execute
in interface WandoraTool
public java.lang.String getName()
AbstractWandoraTool
getName
in interface WandoraTool
getName
in class AbstractWandoraTool
public static java.lang.String trimExtraSpaces(java.lang.String string)
public static java.lang.String chop(java.lang.String text)
public static java.lang.String trimEndingSpaces(java.lang.String string)
public static java.lang.String trimStartingSpaces(java.lang.String string)
public static java.lang.String fixTime(java.lang.String oldTime)
public static void setDisplayName(Topic t, java.lang.String lang, java.lang.String name) throws TopicMapException
TopicMapException
public static void createTopic(TopicMap tm, java.lang.String si, java.lang.String fname, java.lang.String ename, java.lang.String[] types) throws TopicMapException
TopicMapException
public static void createTopic(TopicMap tm, java.lang.String si, java.lang.String bname, java.lang.String fname, java.lang.String ename, java.lang.String[] types) throws TopicMapException
TopicMapException
public static void process(TopicMap tm) throws TopicMapException
TopicMapException
public static void createDateTopics(TopicMap tm) throws TopicMapException
TopicMapException
public static void addDecadeTopic(TopicMap tm, Topic t, java.lang.String year) throws TopicMapException
TopicMapException
public static void addCenturyTopic(TopicMap tm, Topic t, java.lang.String year) throws TopicMapException
TopicMapException
public static void addMonthTopic(TopicMap tm, Topic t, java.lang.String month) throws TopicMapException
TopicMapException
public static void addYearTopic(TopicMap tm, Topic t, java.lang.String year) throws TopicMapException
TopicMapException
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
Copyright 2004-2015 Wandora Team