public class SimbergExport extends AbstractExportTool implements WandoraTool
Modifier and Type | Field and Description |
---|---|
private static java.util.regex.Pattern |
numberPattern |
Constructor and Description |
---|
SimbergExport() |
Modifier and Type | Method and Description |
---|---|
static java.util.Collection<ModelTopic> |
buildModel(TopicMap tm,
java.lang.String imagesDir,
java.util.ArrayList<java.lang.String> keywordList) |
static java.util.ArrayList<ResultRow> |
doQuery(Directive d,
Topic context,
TopicMap tm,
java.lang.String lang) |
void |
execute(Wandora admin,
Context context)
Runs the tool.
|
static Topic |
getAssociatedTopic(Topic t,
Topic atype,
Topic role,
java.util.HashMap<Topic,Topic> constraints,
Topic orderT) |
static java.util.ArrayList<Topic> |
getAssociatedTopics(Topic t,
Topic atype,
Topic role,
java.util.HashMap<Topic,Topic> constraints,
Topic orderT) |
static java.util.ArrayList<Association> |
getAssociations(Topic t,
Topic atype,
java.util.HashMap<Topic,Topic> constraints,
Topic orderT) |
java.lang.String |
getDescription()
AdminToolManager views tool descriptions while user browses available
tools and build user customizable GUI elements such as Tools menu.
|
javax.swing.Icon |
getIcon()
All tools may have identifying graphic icon used within tool GUI elements.
|
static int[] |
getImageDimensions(java.io.File f) |
java.lang.String |
getName()
Tools name represent the tool in UI unless the tool has been given
explicitly another GUI name.
|
static ModelTopic |
getOrMakeTopic(java.lang.Object t,
ModelClass cls,
java.lang.String nameField,
java.util.HashMap<Tuples.T2<ModelClass,java.lang.Object>,ModelTopic> modelTopics) |
static ModelTopic |
getOrMakeTopic(java.lang.Object t,
ModelClass cls,
java.lang.String nameField,
java.util.HashMap<Tuples.T2<ModelClass,java.lang.Object>,ModelTopic> modelTopics,
java.lang.String lang) |
static java.util.ArrayList<ModelTopic> |
getOrMakeTopics(java.util.Collection ts,
ModelClass cls,
java.lang.String nameField,
java.util.HashMap<Tuples.T2<ModelClass,java.lang.Object>,ModelTopic> modelTopics) |
static java.util.ArrayList<ModelTopic> |
getOrMakeTopics(java.util.Collection ts,
ModelClass cls,
java.lang.String nameField,
java.util.HashMap<Tuples.T2<ModelClass,java.lang.Object>,ModelTopic> modelTopics,
java.lang.String lang) |
static java.lang.Object |
getResult(java.util.ArrayList<ResultRow> res,
java.lang.String role) |
static Topic |
getTopicResult(java.util.ArrayList<ResultRow> rows,
java.lang.String role) |
static java.util.ArrayList<Topic> |
getTopicResults(java.util.ArrayList<ResultRow> rows,
java.lang.String role) |
static int[] |
levenshtein(java.lang.String text,
java.lang.String query) |
static java.lang.String |
makeFileName(Topic digikuva) |
static Tuples.T2<java.util.ArrayList<java.lang.String>,java.lang.String> |
matchKeywords(java.lang.String keywordString,
java.util.ArrayList<java.lang.String> keywordList) |
static java.lang.String |
parseMeasure(java.lang.Object valueO,
java.lang.Object unitO) |
static boolean |
parseNegative(java.lang.Object o) |
static java.util.ArrayList<java.lang.String> |
readKeywords(java.io.File f) |
getType, makeTopicMapWith, makeTopicMapWith
addUndoMarker, addUndoMarker, allowMultipleInvocations, clearAllThreads, clearThreads, clearThreads, clearToolLock, clearToolLock, clearToolLocks, configure, execute, execute, forceStop, forceStop, getContext, getCurrentLogger, getDefaultLogger, getHistory, getLastLogger, getState, getThreads, getThreads, getToolMenuItem, getToolMenuItem, getTopicName, 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, getToolMenuItem, getType, hlog, initialize, isConfigurable, isRunning, log, log, log, log, requiresRefresh, setContext, setToolLogger, writeOptions
forceStop, getHistory, getState, lockLog, setLogTitle, setProgress, setProgressMax, setState
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 javax.swing.Icon getIcon()
AbstractWandoraTool
getIcon
should return Icon
object of
the tool.getIcon
in interface WandoraTool
getIcon
in class AbstractExportTool
public static Topic getAssociatedTopic(Topic t, Topic atype, Topic role, java.util.HashMap<Topic,Topic> constraints, Topic orderT) throws TopicMapException
TopicMapException
public static java.util.ArrayList<Association> getAssociations(Topic t, Topic atype, java.util.HashMap<Topic,Topic> constraints, Topic orderT) throws TopicMapException
TopicMapException
public static java.util.ArrayList<Topic> getAssociatedTopics(Topic t, Topic atype, Topic role, java.util.HashMap<Topic,Topic> constraints, Topic orderT) throws TopicMapException
TopicMapException
public static java.util.ArrayList<ModelTopic> getOrMakeTopics(java.util.Collection ts, ModelClass cls, java.lang.String nameField, java.util.HashMap<Tuples.T2<ModelClass,java.lang.Object>,ModelTopic> modelTopics) throws TopicMapException
TopicMapException
public static java.util.ArrayList<ModelTopic> getOrMakeTopics(java.util.Collection ts, ModelClass cls, java.lang.String nameField, java.util.HashMap<Tuples.T2<ModelClass,java.lang.Object>,ModelTopic> modelTopics, java.lang.String lang) throws TopicMapException
TopicMapException
public static ModelTopic getOrMakeTopic(java.lang.Object t, ModelClass cls, java.lang.String nameField, java.util.HashMap<Tuples.T2<ModelClass,java.lang.Object>,ModelTopic> modelTopics) throws TopicMapException
TopicMapException
public static ModelTopic getOrMakeTopic(java.lang.Object t, ModelClass cls, java.lang.String nameField, java.util.HashMap<Tuples.T2<ModelClass,java.lang.Object>,ModelTopic> modelTopics, java.lang.String lang) throws TopicMapException
TopicMapException
public static java.lang.String makeFileName(Topic digikuva) throws TopicMapException
TopicMapException
public static java.util.ArrayList<ResultRow> doQuery(Directive d, Topic context, TopicMap tm, java.lang.String lang)
public static java.lang.String parseMeasure(java.lang.Object valueO, java.lang.Object unitO)
public static boolean parseNegative(java.lang.Object o)
public static java.lang.Object getResult(java.util.ArrayList<ResultRow> res, java.lang.String role)
public static Topic getTopicResult(java.util.ArrayList<ResultRow> rows, java.lang.String role)
public static java.util.ArrayList<Topic> getTopicResults(java.util.ArrayList<ResultRow> rows, java.lang.String role)
public static int[] levenshtein(java.lang.String text, java.lang.String query)
public static java.util.ArrayList<java.lang.String> readKeywords(java.io.File f) throws java.io.IOException
java.io.IOException
public static Tuples.T2<java.util.ArrayList<java.lang.String>,java.lang.String> matchKeywords(java.lang.String keywordString, java.util.ArrayList<java.lang.String> keywordList)
public static int[] getImageDimensions(java.io.File f) throws java.io.IOException
java.io.IOException
public static java.util.Collection<ModelTopic> buildModel(TopicMap tm, java.lang.String imagesDir, java.util.ArrayList<java.lang.String> keywordList) throws TopicMapException
TopicMapException
public void execute(Wandora admin, Context context) throws TopicMapException
WandoraTool
execute
in interface WandoraTool
TopicMapException
Copyright 2004-2015 Wandora Team