public abstract class FlickrExtractor extends AbstractWandoraTool
| Modifier and Type | Class and Description |
|---|---|
protected static class |
FlickrExtractor.ExtractionFailure |
protected static class |
FlickrExtractor.RequestFailure |
static class |
FlickrExtractor.UserCancellation |
| Modifier and Type | Field and Description |
|---|---|
protected TopicMap |
currentMap |
private static FlickrState |
staticState |
| Constructor and Description |
|---|
FlickrExtractor() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Wandora admin,
Options options,
java.lang.String prefix)
If the tool is configurable, shows an user interface to configure the tool.
|
protected static java.lang.String |
createSignature(java.util.SortedMap<java.lang.String,java.lang.String> arguments) |
void |
execute(Wandora admin,
Context context)
Runs the tool.
|
protected abstract boolean |
extract(Wandora admin,
Context context) |
Topic |
getAssociation(FlickrAssoc assocClass) |
TopicMap |
getCurrentMap() |
Topic |
getFlickrClass() |
protected FlickrState |
getFlickrState() |
protected static java.lang.String |
getFrob() |
javax.swing.Icon |
getIcon()
All tools may have identifying graphic icon used within tool GUI elements.
|
Topic |
getLanguage(java.lang.String id) |
Topic |
getLicenseTopic(int licenseID) |
java.lang.String |
getName()
Tools name represent the tool in UI unless the tool has been given
explicitly another GUI name.
|
Topic |
getOccurrence(FlickrOccur occurrenceClass) |
Topic |
getTopic(FlickrTopic topicClass) |
WandoraToolType |
getType()
Tool type is used to categorize tools.
|
Topic |
getWandoraClass() |
java.util.Collection<Topic> |
getWithType(Context context,
Topic type) |
boolean |
isConfigurable()
Whether this tool is configurable.
|
static void |
main(java.lang.String[] args) |
protected static void |
throwOnAPIError(org.json.JSONObject obj) |
protected static java.lang.String |
url(java.lang.String str) |
addUndoMarker, addUndoMarker, allowMultipleInvocations, clearAllThreads, clearThreads, clearThreads, clearToolLock, clearToolLock, clearToolLocks, execute, execute, forceStop, forceStop, getContext, getCurrentLogger, getDefaultLogger, getDescription, getHistory, getLastLogger, getState, getThreads, getThreads, getToolMenuItem, getToolMenuItem, getTopicName, hlog, initialize, 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, writeOptionsprotected TopicMap currentMap
private static FlickrState staticState
public WandoraToolType getType()
AbstractWandoraToolTool type is used to categorize tools. Tool type has no real effect today, it is merely an informative property of a tool.
getType in interface WandoraToolgetType in class AbstractWandoraToolpublic java.lang.String getName()
AbstractWandoraToolgetName in interface WandoraToolgetName in class AbstractWandoraToolpublic javax.swing.Icon getIcon()
AbstractWandoraToolgetIcon should return Icon object of
the tool.getIcon in interface WandoraToolgetIcon in class AbstractWandoraToolpublic boolean isConfigurable()
AbstractWandoraToolisConfigurable in interface WandoraToolisConfigurable in class AbstractWandoraToolpublic void configure(Wandora admin, Options options, java.lang.String prefix)
AbstractWandoraToolconfigure in interface WandoraToolconfigure in class AbstractWandoraToolpublic void execute(Wandora admin, Context context)
WandoraToolpublic static void main(java.lang.String[] args)
protected static java.lang.String url(java.lang.String str)
public TopicMap getCurrentMap()
protected static java.lang.String createSignature(java.util.SortedMap<java.lang.String,java.lang.String> arguments)
throws FlickrExtractor.RequestFailure
FlickrExtractor.RequestFailureprotected static java.lang.String getFrob()
throws FlickrExtractor.RequestFailure
FlickrExtractor.RequestFailurepublic Topic getLanguage(java.lang.String id) throws TopicMapException
TopicMapExceptionpublic Topic getFlickrClass() throws TopicMapException
TopicMapExceptionpublic Topic getWandoraClass() throws TopicMapException
TopicMapExceptionpublic Topic getLicenseTopic(int licenseID) throws TopicMapException
TopicMapExceptionpublic Topic getTopic(FlickrTopic topicClass) throws TopicMapException
TopicMapExceptionpublic Topic getOccurrence(FlickrOccur occurrenceClass) throws TopicMapException
TopicMapExceptionpublic Topic getAssociation(FlickrAssoc assocClass) throws TopicMapException
TopicMapExceptionprotected static void throwOnAPIError(org.json.JSONObject obj)
throws FlickrExtractor.RequestFailure
FlickrExtractor.RequestFailureprotected FlickrState getFlickrState()
protected abstract boolean extract(Wandora admin, Context context) throws FlickrExtractor.ExtractionFailure
Copyright 2004-2015 Wandora Team