public class OBOImport extends AbstractImportTool implements WandoraTool
Modifier and Type | Class and Description |
---|---|
protected class |
OBOImport.Category |
protected class |
OBOImport.Dbxref |
protected class |
OBOImport.Dbxrefs |
protected class |
OBOImport.Definition |
protected class |
OBOImport.Header |
class |
OBOImport.OBOParser
OBOParser class implements parser for OBO flat file format.
|
protected class |
OBOImport.PropertyValue |
protected class |
OBOImport.RelatedTerm |
protected class |
OBOImport.Stanza |
protected class |
OBOImport.Synonym |
protected class |
OBOImport.TagValuePair |
Modifier and Type | Field and Description |
---|---|
protected java.util.ArrayList<java.lang.String> |
namespaces |
ASK_SOURCE, askSource, CLOSE_LOGS, closeLogs, CUSTOM_IMPORTER, directMerge, FILE_DIALOG_TITLE_TEXT, FILE_IMPORTER, forceFiles, newLayer, RAW_IMPORTER, resetWandoraFirst, TOPICMAP_DIRECT_MERGE, TOPICMAP_MAKE_NEW_LAYER, TOPICMAP_RESET_FIRST, URL_DIALOG_MESSAGE_TEXT, URL_IMPORTER, WEB_IMPORT, webImport
Constructor and Description |
---|
OBOImport()
Creates a new instance of OBOImport
|
OBOImport(int options) |
Modifier and Type | Method and Description |
---|---|
protected void |
addNamespace(java.lang.String newNamespace) |
void |
configure(Wandora admin,
Options options,
java.lang.String prefix)
If the tool is configurable, shows an user interface to configure 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.
|
javax.swing.Icon |
getIcon()
All tools may have identifying graphic icon used within tool GUI elements.
|
java.lang.String |
getName()
Tools name represent the tool in UI unless the tool has been given
explicitly another GUI name.
|
java.util.ArrayList<java.lang.String> |
getNamespaces() |
void |
importOBO(java.io.InputStream in,
TopicMap map) |
void |
importStream(Wandora wandora,
java.lang.String streamName,
java.io.InputStream inputStream) |
void |
initialize(Wandora admin,
Options options,
java.lang.String prefix)
Initializes a tool with options saved in the options.
|
boolean |
isConfigurable()
Whether this tool is configurable.
|
void |
writeOptions(Wandora admin,
Options options,
java.lang.String prefix)
If the tool is configurable, saves all current tool options.
|
createNewLayer, execute, finalizeImport, getGUIText, getLayerNameFor, getOptions, getType, importFile, importFiles, importUrl, initializeImport, requestImports, setOptions
addUndoMarker, addUndoMarker, allowMultipleInvocations, clearAllThreads, clearThreads, clearThreads, clearToolLock, clearToolLock, clearToolLocks, execute, execute, forceStop, forceStop, getContext, getCurrentLogger, getDefaultLogger, getHistory, getLastLogger, getState, getThreads, getThreads, getToolMenuItem, getToolMenuItem, getTopicName, hlog, interruptAllThreads, interruptThreads, interruptThreads, isRunning, isRunning, lockLog, log, log, log, log, requiresRefresh, 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, execute, getContext, getToolMenuItem, getType, hlog, isRunning, log, log, log, log, requiresRefresh, setContext, setToolLogger
forceStop, getHistory, getState, lockLog, setLogTitle, setProgress, setProgressMax, setState
public OBOImport()
public OBOImport(int options)
public void initialize(Wandora admin, 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 admin, Options options, java.lang.String prefix) throws TopicMapException
AbstractWandoraTool
configure
in interface WandoraTool
configure
in class AbstractWandoraTool
TopicMapException
public void writeOptions(Wandora admin, Options options, java.lang.String prefix)
AbstractWandoraTool
writeOptions
in interface WandoraTool
writeOptions
in class AbstractWandoraTool
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 AbstractImportTool
public java.util.ArrayList<java.lang.String> getNamespaces()
protected void addNamespace(java.lang.String newNamespace)
public void importStream(Wandora wandora, java.lang.String streamName, java.io.InputStream inputStream)
importStream
in class AbstractImportTool
public void importOBO(java.io.InputStream in, TopicMap map)
Copyright 2004-2015 Wandora Team