public class DiigoBookmarkExtractor extends AbstractExtractor
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String[] |
contentTypes |
private java.lang.String |
defaultEncoding |
static java.lang.String |
defaultLanguage |
static java.lang.String |
DIIGO_ANNOTATIONS_SI |
static java.lang.String |
DIIGO_BOOKMARK_SI |
static java.lang.String |
DIIGO_COMMENT_SI |
static java.lang.String |
DIIGO_CREATION_DATE_SI |
static java.lang.String |
DIIGO_DATE_SI |
static java.lang.String |
DIIGO_DESCRIPTION_SI |
static java.lang.String |
DIIGO_LOCATION_SI |
static java.lang.String |
DIIGO_SHARED_SI |
static java.lang.String |
DIIGO_SI |
static java.lang.String |
DIIGO_TAG_SI |
static java.lang.String |
DIIGO_UPDATED_DATE_SI |
static java.lang.String |
DIIGO_USER_SI |
private java.lang.String |
password |
private java.lang.String |
user |
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_EXTRACTORCLOSE, EXECUTE, INVISIBLE, VISIBLE, WAITRETURN_ERROR, RETURN_INFO| Constructor and Description |
|---|
DiigoBookmarkExtractor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
_extractTopicsFrom(java.io.File file,
TopicMap topicMap) |
boolean |
_extractTopicsFrom(java.io.InputStream in,
TopicMap topicMap) |
boolean |
_extractTopicsFrom(java.lang.String in,
TopicMap tm) |
boolean |
_extractTopicsFrom(java.net.URL url,
TopicMap topicMap) |
void |
createDateAssociation(java.lang.String d,
Topic dateType,
Topic bookmarkTopic,
Topic bookmarkType,
TopicMap tm) |
void |
execute(Wandora wandora,
Context context)
Runs the tool.
|
protected Topic |
getBookmarkTypeTopic(TopicMap tm) |
java.lang.String[] |
getContentTypes()
Returns an array of String containing the content-types this
ContentHandler can process. |
protected Topic |
getCreationDateTypeTopic(TopicMap tm) |
protected Topic |
getDateTypeTopic(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.
|
protected Topic |
getDescriptionTypeTopic(TopicMap tm) |
javax.swing.Icon |
getIcon()
All tools may have identifying graphic icon used within tool GUI elements.
|
protected Topic |
getLocationTypeTopic(TopicMap tm) |
java.lang.String |
getName()
Tools name represent the tool in UI unless the tool has been given
explicitly another GUI name.
|
protected Topic |
getOrCreateTopic(TopicMap tm,
java.lang.String si) |
protected Topic |
getOrCreateTopic(TopicMap tm,
java.lang.String si,
java.lang.String bn) |
protected Topic |
getSharedTypeTopic(TopicMap tm) |
Topic |
getTagTypeTopic(TopicMap tm) |
protected Topic |
getUpdatedDateTypeTopic(TopicMap tm) |
protected Topic |
getUserTypeTopic(TopicMap tm) |
Topic |
getWandoraClass(TopicMap tm) |
int |
handleDiigoData(org.json.JSONArray data,
TopicMap tm) |
protected void |
makeSubclassOf(TopicMap tm,
Topic t,
Topic superclass) |
void |
resetAuthorization() |
void |
setAuthorization(java.lang.String u,
java.lang.String pass) |
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, 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, runInOwnThread, setData, setDisplayName, setForceContent, setForceFiles, setForceUrls, setMasterSubject, setMasterSubject, setTopicMap, setupCrawler, setWandora, takeNap, urlEncode, useTempTopicMapaddUndoMarker, 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, writeOptionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconfigure, execute, execute, getContext, getToolMenuItem, hlog, initialize, isConfigurable, isRunning, log, log, log, log, requiresRefresh, setContext, setToolLogger, writeOptionsforceStop, getHistory, getState, lockLog, setLogTitle, setProgress, setProgressMax, setStateprivate java.lang.String defaultEncoding
public static java.lang.String defaultLanguage
public static final java.lang.String DIIGO_SI
public static final java.lang.String DIIGO_LOCATION_SI
public static final java.lang.String DIIGO_USER_SI
public static final java.lang.String DIIGO_TAG_SI
public static final java.lang.String DIIGO_BOOKMARK_SI
public static final java.lang.String DIIGO_DESCRIPTION_SI
public static final java.lang.String DIIGO_DATE_SI
public static final java.lang.String DIIGO_CREATION_DATE_SI
public static final java.lang.String DIIGO_UPDATED_DATE_SI
public static final java.lang.String DIIGO_COMMENT_SI
public static final java.lang.String DIIGO_ANNOTATIONS_SI
public static final java.lang.String DIIGO_SHARED_SI
private final java.lang.String[] contentTypes
private java.lang.String password
private java.lang.String user
public java.lang.String getName()
AbstractWandoraToolgetName in interface WandoraToolgetName in class AbstractExtractorpublic java.lang.String getDescription()
AbstractWandoraToolgetDescription in interface WandoraToolgetDescription in class AbstractExtractorpublic javax.swing.Icon getIcon()
AbstractWandoraToolgetIcon should return Icon object of
the tool.getIcon in interface WandoraToolgetIcon in class AbstractExtractorpublic java.lang.String[] getContentTypes()
HandlerContentHandler can process.getContentTypes in interface HandlergetContentTypes in class AbstractExtractorpublic boolean useURLCrawler()
useURLCrawler in class AbstractExtractorpublic void execute(Wandora wandora, Context context)
WandoraToolexecute in interface WandoraToolexecute in class AbstractExtractorpublic void resetAuthorization()
public void setAuthorization(java.lang.String u,
java.lang.String pass)
public boolean _extractTopicsFrom(java.net.URL url,
TopicMap topicMap)
throws java.lang.Exception
_extractTopicsFrom in class AbstractExtractorjava.lang.Exceptionpublic boolean _extractTopicsFrom(java.io.File file,
TopicMap topicMap)
throws java.lang.Exception
_extractTopicsFrom in class AbstractExtractorjava.lang.Exceptionpublic boolean _extractTopicsFrom(java.io.InputStream in,
TopicMap topicMap)
throws java.lang.Exception
java.lang.Exceptionpublic boolean _extractTopicsFrom(java.lang.String in,
TopicMap tm)
throws java.lang.Exception
_extractTopicsFrom in class AbstractExtractorjava.lang.Exceptionpublic int handleDiigoData(org.json.JSONArray data,
TopicMap tm)
public void createDateAssociation(java.lang.String d,
Topic dateType,
Topic bookmarkTopic,
Topic bookmarkType,
TopicMap tm)
throws java.lang.Exception
java.lang.Exceptionpublic Topic getTagTypeTopic(TopicMap tm) throws TopicMapException
TopicMapExceptionprotected Topic getLocationTypeTopic(TopicMap tm) throws TopicMapException
TopicMapExceptionprotected Topic getUpdatedDateTypeTopic(TopicMap tm) throws TopicMapException
TopicMapExceptionprotected Topic getCreationDateTypeTopic(TopicMap tm) throws TopicMapException
TopicMapExceptionprotected Topic getDateTypeTopic(TopicMap tm) throws TopicMapException
TopicMapExceptionprotected Topic getUserTypeTopic(TopicMap tm) throws TopicMapException
TopicMapExceptionprotected Topic getBookmarkTypeTopic(TopicMap tm) throws TopicMapException
TopicMapExceptionprotected Topic getDescriptionTypeTopic(TopicMap tm) throws TopicMapException
TopicMapExceptionprotected Topic getSharedTypeTopic(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getWandoraClass(TopicMap tm) throws TopicMapException
TopicMapExceptionprotected Topic getOrCreateTopic(TopicMap tm, java.lang.String si) throws TopicMapException
TopicMapExceptionprotected Topic getOrCreateTopic(TopicMap tm, java.lang.String si, java.lang.String bn) throws TopicMapException
TopicMapExceptionprotected void makeSubclassOf(TopicMap tm, Topic t, Topic superclass) throws TopicMapException
TopicMapExceptionCopyright 2004-2015 Wandora Team