public class AbstractDiscogsExtractor extends AbstractExtractor
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ARTIST_SI |
static java.lang.String |
BARCODE_SI |
static java.lang.String |
CATNO_SI |
private java.lang.String[] |
contentTypes |
static java.lang.String |
COUNTRY_SI |
static java.lang.String |
DISCOG_API_SI |
static java.lang.String |
DISCOGS_SI |
static java.lang.String |
FORMAT_SI |
static java.lang.String |
GENRE_SI |
static java.lang.String |
IMAGE_SI |
static java.lang.String |
LABEL_SI |
static java.lang.String |
LANG |
static java.lang.String |
LANGUAGE_SI |
static java.lang.String |
MASTER_SI |
static java.lang.String |
RELEASE_SI |
static java.lang.String |
STYLE_SI |
static java.lang.String |
TITLE_SI |
static java.lang.String |
TYPE_SI |
static java.lang.String |
YEAR_SI |
CUSTOM_EXTRACTOR, DONE_FAILED, DONE_MANY, DONE_ONE, EXACTLY_GIVEN_URLS, FILE_EXTRACTOR, FILE_PATTERN, GIVEN_URLS_AND_ALL_CRAWLED_DOCUMENTS, GIVEN_URLS_AND_CRAWLED_DOCUMENTS_IN_URL_DOMAIN, GIVEN_URLS_AND_LINKED_DOCUMENTS, GIVEN_URLS_AND_URL_BELOW, INFO_WAIT_WHILE_WORKING, LOG_TITLE, POINT_START_URL_TEXT, RAW_EXTRACTOR, SELECT_DIALOG_TITLE, STRING_EXTRACTOR_NOT_SUPPORTED_MESSAGE, URL_EXTRACTOR
CLOSE, EXECUTE, INVISIBLE, VISIBLE, WAIT
RETURN_ERROR, RETURN_INFO
Constructor and Description |
---|
AbstractDiscogsExtractor() |
Modifier and Type | Method and Description |
---|---|
boolean |
_extractTopicsFrom(java.io.File f,
TopicMap t) |
boolean |
_extractTopicsFrom(java.lang.String str,
TopicMap t) |
boolean |
_extractTopicsFrom(java.net.URL u,
TopicMap t) |
static Topic |
getArtistTypeTopic(TopicMap tm) |
static Topic |
getBarcodeTypeTopic(TopicMap tm) |
static Topic |
getCatnoTypeTopic(TopicMap tm) |
java.lang.String[] |
getContentTypes()
Returns an array of String containing the content-types this
ContentHandler can process. |
static Topic |
getCountryTopic(java.lang.String provider,
TopicMap tm) |
static Topic |
getCountryTypeTopic(TopicMap tm) |
java.lang.String |
getDescription()
AdminToolManager views tool descriptions while user browses available
tools and build user customizable GUI elements such as Tools menu.
|
static Topic |
getDiscogsTypeTopic(TopicMap tm) |
static Topic |
getFormatTopic(java.lang.String provider,
TopicMap tm) |
static Topic |
getFormatTypeTopic(TopicMap tm) |
static Topic |
getGenreTopic(java.lang.String provider,
TopicMap tm) |
static Topic |
getGenreTypeTopic(TopicMap tm) |
javax.swing.Icon |
getIcon()
All tools may have identifying graphic icon used within tool GUI elements.
|
static Topic |
getImageTypeTopic(TopicMap tm) |
static Topic |
getLabelTopic(java.lang.String provider,
TopicMap tm) |
static Topic |
getLabelTypeTopic(TopicMap tm) |
protected static Topic |
getLangTopic(TopicMap tm) |
static Topic |
getMasterTypeTopic(TopicMap tm) |
java.lang.String |
getName()
Tools name represent the tool in UI unless the tool has been given
explicitly another GUI name.
|
protected static Topic |
getOrCreateTopic(TopicMap tm,
java.lang.String si) |
protected static Topic |
getOrCreateTopic(TopicMap tm,
java.lang.String si,
java.lang.String bn) |
static Topic |
getReleaseTypeTopic(TopicMap tm) |
static Topic |
getStyleTopic(java.lang.String provider,
TopicMap tm) |
static Topic |
getStyleTypeTopic(TopicMap tm) |
static Topic |
getTitleTypeTopic(TopicMap tm) |
static Topic |
getTypeTypeTopic(TopicMap tm) |
protected static Topic |
getWandoraClassTopic(TopicMap tm) |
static Topic |
getYearTopic(java.lang.String provider,
TopicMap tm) |
static Topic |
getYearTypeTopic(TopicMap tm) |
protected static void |
makeSubclassOf(TopicMap tm,
Topic t,
Topic superclass) |
boolean |
runInOwnThread()
Whether or not this tool should fork own thread.
|
boolean |
useURLCrawler() |
acceptBrowserExtractRequest, addCrawlerUrl, browserExtractorConsumesPlainText, buildSI, buildSL, clearMasterSubject, createAssociation, createAssociation, createTopic, createTopic, createTopic, createTopic, createTopic, createTopic, createTopic, croppedFilename, croppedFilename, croppedUrlString, croppedUrlString, doBrowserExtract, dropExtract, dropExtract, dropExtract, execute, extractTopicsFrom, extractTopicsFrom, extractTopicsFrom, extractTopicsFrom, extractTopicsFromText, getBrowserExtractorName, getCrawlerMode, getExtractorType, getForceContent, getForceFiles, getForceUrls, getGUIText, getGUIText, getInterruptsHandled, getMasterSubject, getType, getWandora, handle, handleContent, handleCustomType, handleFiles, handleForcedContent, handleInterrupt, handleStringContent, handleUrls, initializeCustomType, instantDropHandle, makeSubclassOfWandoraClass, setData, setDisplayName, setForceContent, setForceFiles, setForceUrls, setMasterSubject, setMasterSubject, setTopicMap, setupCrawler, setWandora, takeNap, urlEncode, useTempTopicMap
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, 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, hlog, initialize, isConfigurable, isRunning, log, log, log, log, requiresRefresh, setContext, setToolLogger, writeOptions
forceStop, getHistory, getState, lockLog, setLogTitle, setProgress, setProgressMax, setState
public static java.lang.String LANG
public static java.lang.String LANGUAGE_SI
public static final java.lang.String DISCOGS_SI
public static final java.lang.String DISCOG_API_SI
public static final java.lang.String RELEASE_SI
public static final java.lang.String MASTER_SI
public static final java.lang.String ARTIST_SI
public static final java.lang.String LABEL_SI
public static final java.lang.String TYPE_SI
public static final java.lang.String TITLE_SI
public static final java.lang.String COUNTRY_SI
public static final java.lang.String YEAR_SI
public static final java.lang.String STYLE_SI
public static final java.lang.String GENRE_SI
public static final java.lang.String FORMAT_SI
public static final java.lang.String IMAGE_SI
public static final java.lang.String CATNO_SI
public static final java.lang.String BARCODE_SI
private final java.lang.String[] contentTypes
public java.lang.String getName()
AbstractWandoraTool
getName
in interface WandoraTool
getName
in class AbstractExtractor
public java.lang.String getDescription()
AbstractWandoraTool
getDescription
in interface WandoraTool
getDescription
in class AbstractExtractor
public javax.swing.Icon getIcon()
AbstractWandoraTool
getIcon
should return Icon
object of
the tool.getIcon
in interface WandoraTool
getIcon
in class AbstractExtractor
public java.lang.String[] getContentTypes()
Handler
ContentHandler
can process.getContentTypes
in interface Handler
getContentTypes
in class AbstractExtractor
public boolean useURLCrawler()
useURLCrawler
in class AbstractExtractor
public boolean runInOwnThread()
AbstractWandoraTool
runInOwnThread
in class AbstractExtractor
public boolean _extractTopicsFrom(java.io.File f, TopicMap t) throws java.lang.Exception
_extractTopicsFrom
in class AbstractExtractor
java.lang.Exception
public boolean _extractTopicsFrom(java.net.URL u, TopicMap t) throws java.lang.Exception
_extractTopicsFrom
in class AbstractExtractor
java.lang.Exception
public boolean _extractTopicsFrom(java.lang.String str, TopicMap t) throws java.lang.Exception
_extractTopicsFrom
in class AbstractExtractor
java.lang.Exception
protected static Topic getLangTopic(TopicMap tm) throws TopicMapException
TopicMapException
protected static Topic getWandoraClassTopic(TopicMap tm) throws TopicMapException
TopicMapException
protected static Topic getOrCreateTopic(TopicMap tm, java.lang.String si) throws TopicMapException
TopicMapException
protected static Topic getOrCreateTopic(TopicMap tm, java.lang.String si, java.lang.String bn) throws TopicMapException
TopicMapException
protected static void makeSubclassOf(TopicMap tm, Topic t, Topic superclass) throws TopicMapException
TopicMapException
public static Topic getDiscogsTypeTopic(TopicMap tm) throws TopicMapException
TopicMapException
public static Topic getReleaseTypeTopic(TopicMap tm) throws TopicMapException
TopicMapException
public static Topic getMasterTypeTopic(TopicMap tm) throws TopicMapException
TopicMapException
public static Topic getArtistTypeTopic(TopicMap tm) throws TopicMapException
TopicMapException
public static Topic getTitleTypeTopic(TopicMap tm) throws TopicMapException
TopicMapException
public static Topic getCountryTopic(java.lang.String provider, TopicMap tm) throws TopicMapException
TopicMapException
public static Topic getCountryTypeTopic(TopicMap tm) throws TopicMapException
TopicMapException
public static Topic getYearTopic(java.lang.String provider, TopicMap tm) throws TopicMapException
TopicMapException
public static Topic getYearTypeTopic(TopicMap tm) throws TopicMapException
TopicMapException
public static Topic getStyleTopic(java.lang.String provider, TopicMap tm) throws TopicMapException
TopicMapException
public static Topic getStyleTypeTopic(TopicMap tm) throws TopicMapException
TopicMapException
public static Topic getGenreTopic(java.lang.String provider, TopicMap tm) throws TopicMapException
TopicMapException
public static Topic getGenreTypeTopic(TopicMap tm) throws TopicMapException
TopicMapException
public static Topic getLabelTopic(java.lang.String provider, TopicMap tm) throws TopicMapException
TopicMapException
public static Topic getLabelTypeTopic(TopicMap tm) throws TopicMapException
TopicMapException
public static Topic getFormatTopic(java.lang.String provider, TopicMap tm) throws TopicMapException
TopicMapException
public static Topic getFormatTypeTopic(TopicMap tm) throws TopicMapException
TopicMapException
public static Topic getImageTypeTopic(TopicMap tm) throws TopicMapException
TopicMapException
public static Topic getCatnoTypeTopic(TopicMap tm) throws TopicMapException
TopicMapException
public static Topic getBarcodeTypeTopic(TopicMap tm) throws TopicMapException
TopicMapException
public static Topic getTypeTypeTopic(TopicMap tm) throws TopicMapException
TopicMapException
Copyright 2004-2015 Wandora Team