public abstract class AbstractMusicBrainzExtractor extends AbstractWandoraTool
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ARTIST_ALIAS_SI |
static java.lang.String |
ARTIST_ALIAS_TYPE_SI |
static java.lang.String |
ARTIST_SI |
static java.lang.String |
ARTIST_TYPE_SI |
static java.lang.String |
DATE_SI |
static java.lang.String |
LANG |
static java.lang.String |
MBID_SI |
static java.lang.String |
RELEASE_DATE_SI |
static java.lang.String |
RELEASE_SI |
static java.lang.String |
RELEASE_TYPE_SI |
static java.lang.String |
SIPREFIX |
static java.lang.String |
TAG_SI |
static java.lang.String |
TRACK_DURATION_SI |
static java.lang.String |
TRACK_SI |
static boolean |
USE_EXISTING_TOPICS
Try to retrieve topic before new is created.
|
| Constructor and Description |
|---|
AbstractMusicBrainzExtractor() |
| Modifier and Type | Method and Description |
|---|---|
static Association |
createAssociation(TopicMap tm,
java.lang.String associationType,
Topic player1Topic,
java.lang.String role1,
Topic player2Topic,
java.lang.String role2) |
static Association |
createAssociation(TopicMap tm,
java.lang.String associationType,
Topic player1Topic,
java.lang.String role1,
Topic player2Topic,
java.lang.String role2,
Topic player3Topic,
java.lang.String role3) |
static Topic |
createSchemaTopic(TopicMap tm,
java.lang.String schemaName) |
protected static Topic |
getArtistTopic(TopicMap tm,
org.musicbrainz.model.Artist theArtist) |
protected static Topic |
getArtistTypeTopic(TopicMap tm) |
javax.swing.Icon |
getIcon()
All tools may have identifying graphic icon used within tool GUI elements.
|
protected static Topic |
getOrCreateTopic(TopicMap tm,
java.lang.String si) |
protected static Topic |
getOrCreateTopic(TopicMap tm,
java.lang.String si,
java.lang.String bn) |
protected static Topic |
getReleaseTopic(TopicMap tm,
org.musicbrainz.model.Release theRelease) |
protected static Topic |
getReleaseTypeTopic(TopicMap tm) |
protected static Topic |
getTagTypeTopic(TopicMap tm) |
protected static Topic |
getTrackTopic(TopicMap tm,
org.musicbrainz.model.Track theTrack) |
protected static Topic |
getTrackTypeTopic(TopicMap tm) |
WandoraToolType |
getType()
Tool type is used to categorize tools.
|
protected static Topic |
getWandoraClassTopic(TopicMap tm) |
static java.lang.String |
makeMBID(java.lang.String urlId) |
protected static void |
makeSubclassOf(TopicMap tm,
Topic t,
Topic superclass) |
private static void |
setData(TopicMap tm,
Topic t,
Topic type,
java.lang.String text) |
addUndoMarker, addUndoMarker, allowMultipleInvocations, clearAllThreads, clearThreads, clearThreads, clearToolLock, clearToolLock, clearToolLocks, configure, execute, execute, forceStop, forceStop, getContext, getCurrentLogger, getDefaultLogger, getDescription, getHistory, getLastLogger, getName, 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, writeOptionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecutepublic static java.lang.String LANG
public static boolean USE_EXISTING_TOPICS
public static java.lang.String SIPREFIX
public static java.lang.String ARTIST_SI
public static java.lang.String RELEASE_SI
public static java.lang.String TRACK_SI
public static java.lang.String ARTIST_ALIAS_SI
public static java.lang.String ARTIST_ALIAS_TYPE_SI
public static java.lang.String TAG_SI
public static java.lang.String RELEASE_TYPE_SI
public static java.lang.String ARTIST_TYPE_SI
public static java.lang.String TRACK_DURATION_SI
public static java.lang.String RELEASE_DATE_SI
public static java.lang.String DATE_SI
public static java.lang.String MBID_SI
public javax.swing.Icon getIcon()
AbstractWandoraToolgetIcon should return Icon object of
the tool.getIcon in interface WandoraToolgetIcon in class AbstractWandoraToolpublic 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 AbstractWandoraToolprotected static Topic getOrCreateTopic(TopicMap tm, java.lang.String si) throws TopicMapException
TopicMapExceptionprotected static Topic getOrCreateTopic(TopicMap tm, java.lang.String si, java.lang.String bn) throws TopicMapException
TopicMapExceptionprotected static void makeSubclassOf(TopicMap tm, Topic t, Topic superclass) throws TopicMapException
TopicMapExceptionprotected static Topic getArtistTypeTopic(TopicMap tm) throws TopicMapException
TopicMapExceptionprotected static Topic getReleaseTypeTopic(TopicMap tm) throws TopicMapException
TopicMapExceptionprotected static Topic getTrackTypeTopic(TopicMap tm) throws TopicMapException
TopicMapExceptionprotected static Topic getTagTypeTopic(TopicMap tm) throws TopicMapException
TopicMapExceptionprotected static Topic getWandoraClassTopic(TopicMap tm) throws TopicMapException
TopicMapExceptionprotected static Topic getArtistTopic(TopicMap tm, org.musicbrainz.model.Artist theArtist) throws TopicMapException
TopicMapExceptionprotected static Topic getReleaseTopic(TopicMap tm, org.musicbrainz.model.Release theRelease) throws TopicMapException
TopicMapExceptionprotected static Topic getTrackTopic(TopicMap tm, org.musicbrainz.model.Track theTrack) throws TopicMapException
TopicMapExceptionpublic static java.lang.String makeMBID(java.lang.String urlId)
public static Association createAssociation(TopicMap tm, java.lang.String associationType, Topic player1Topic, java.lang.String role1, Topic player2Topic, java.lang.String role2) throws TopicMapException
TopicMapExceptionpublic static Association createAssociation(TopicMap tm, java.lang.String associationType, Topic player1Topic, java.lang.String role1, Topic player2Topic, java.lang.String role2, Topic player3Topic, java.lang.String role3) throws TopicMapException
TopicMapExceptionpublic static Topic createSchemaTopic(TopicMap tm, java.lang.String schemaName) throws TopicMapException
TopicMapExceptionprivate static void setData(TopicMap tm, Topic t, Topic type, java.lang.String text) throws TopicMapException
TopicMapExceptionCopyright 2004-2015 Wandora Team