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, writeOptions
protected TopicMap currentMap
private static FlickrState staticState
public WandoraToolType getType()
AbstractWandoraTool
Tool 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 WandoraTool
getType
in class AbstractWandoraTool
public java.lang.String getName()
AbstractWandoraTool
getName
in interface WandoraTool
getName
in class AbstractWandoraTool
public javax.swing.Icon getIcon()
AbstractWandoraTool
getIcon
should return Icon
object of
the tool.getIcon
in interface WandoraTool
getIcon
in class AbstractWandoraTool
public boolean isConfigurable()
AbstractWandoraTool
isConfigurable
in interface WandoraTool
isConfigurable
in class AbstractWandoraTool
public void configure(Wandora admin, Options options, java.lang.String prefix)
AbstractWandoraTool
configure
in interface WandoraTool
configure
in class AbstractWandoraTool
public void execute(Wandora admin, Context context)
WandoraTool
public 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.RequestFailure
protected static java.lang.String getFrob() throws FlickrExtractor.RequestFailure
FlickrExtractor.RequestFailure
public Topic getLanguage(java.lang.String id) throws TopicMapException
TopicMapException
public Topic getFlickrClass() throws TopicMapException
TopicMapException
public Topic getWandoraClass() throws TopicMapException
TopicMapException
public Topic getLicenseTopic(int licenseID) throws TopicMapException
TopicMapException
public Topic getTopic(FlickrTopic topicClass) throws TopicMapException
TopicMapException
public Topic getOccurrence(FlickrOccur occurrenceClass) throws TopicMapException
TopicMapException
public Topic getAssociation(FlickrAssoc assocClass) throws TopicMapException
TopicMapException
protected static void throwOnAPIError(org.json.JSONObject obj) throws FlickrExtractor.RequestFailure
FlickrExtractor.RequestFailure
protected FlickrState getFlickrState()
protected abstract boolean extract(Wandora admin, Context context) throws FlickrExtractor.ExtractionFailure
Copyright 2004-2015 Wandora Team