public abstract class AbstractPalvelukarttaExtractor extends AbstractExtractor
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
API_BASE |
static java.lang.String |
LANG |
static java.lang.String |
PALVELUKARTTA_ABBR_SI |
static java.lang.String |
PALVELUKARTTA_CHILD_SERVICE_SI |
static java.lang.String |
PALVELUKARTTA_CITY_SI |
static java.lang.String |
PALVELUKARTTA_CONNECTION_SI |
static java.lang.String |
PALVELUKARTTA_CONTACT_PERSON_SI |
static java.lang.String |
PALVELUKARTTA_DATASOURCE_SI |
static java.lang.String |
PALVELUKARTTA_DEPARTMENT_ORGANIZATION_SI |
static java.lang.String |
PALVELUKARTTA_DEPARTMENT_SI |
static java.lang.String |
PALVELUKARTTA_EMAIL_SI |
static java.lang.String |
PALVELUKARTTA_GEOLOCATION_SI |
static java.lang.String |
PALVELUKARTTA_ORGANIZATION_SI |
static java.lang.String |
PALVELUKARTTA_PARENT_SERVICE_SI |
static java.lang.String |
PALVELUKARTTA_PHONE_SI |
static java.lang.String |
PALVELUKARTTA_PROVIDER_TYPE_SI |
static java.lang.String |
PALVELUKARTTA_SERVICE_RELATION_SI |
static java.lang.String |
PALVELUKARTTA_SERVICE_SI |
static java.lang.String |
PALVELUKARTTA_SI |
static java.lang.String |
PALVELUKARTTA_STREETADDRESS_SI |
static java.lang.String |
PALVELUKARTTA_UNIT_CITY_SI |
static java.lang.String |
PALVELUKARTTA_UNIT_CONNECTION_SI |
static java.lang.String |
PALVELUKARTTA_UNIT_DEPARTMENT_SI |
static java.lang.String |
PALVELUKARTTA_UNIT_ORGANIZATION_SI |
static java.lang.String |
PALVELUKARTTA_UNIT_SERVICE_SI |
static java.lang.String |
PALVELUKARTTA_UNIT_SI |
static java.lang.String |
PALVELUKARTTA_UNITZIP_SI |
static java.lang.String |
PALVELUKARTTA_WWW_SI |
static java.lang.String |
PALVELUKARTTA_ZIP_SI |
static java.lang.String |
WANDORA_BASE |
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 |
|---|
AbstractPalvelukarttaExtractor() |
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, getContentTypes, getCrawlerMode, getDescription, getExtractorType, getForceContent, getForceFiles, getForceUrls, getGUIText, getGUIText, getInterruptsHandled, getMasterSubject, getName, 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, setStatepublic static final java.lang.String LANG
public static final java.lang.String PALVELUKARTTA_SI
public static final java.lang.String API_BASE
public static final java.lang.String WANDORA_BASE
public static final java.lang.String PALVELUKARTTA_SERVICE_SI
public static final java.lang.String PALVELUKARTTA_ORGANIZATION_SI
public static final java.lang.String PALVELUKARTTA_DEPARTMENT_SI
public static final java.lang.String PALVELUKARTTA_UNIT_SI
public static final java.lang.String PALVELUKARTTA_DEPARTMENT_ORGANIZATION_SI
public static final java.lang.String PALVELUKARTTA_ABBR_SI
public static final java.lang.String PALVELUKARTTA_DATASOURCE_SI
public static final java.lang.String PALVELUKARTTA_GEOLOCATION_SI
public static final java.lang.String PALVELUKARTTA_UNIT_ORGANIZATION_SI
public static final java.lang.String PALVELUKARTTA_UNIT_DEPARTMENT_SI
public static final java.lang.String PALVELUKARTTA_UNIT_SERVICE_SI
public static final java.lang.String PALVELUKARTTA_UNIT_CITY_SI
public static final java.lang.String PALVELUKARTTA_CITY_SI
public static final java.lang.String PALVELUKARTTA_ZIP_SI
public static final java.lang.String PALVELUKARTTA_UNITZIP_SI
public static final java.lang.String PALVELUKARTTA_STREETADDRESS_SI
public static final java.lang.String PALVELUKARTTA_PROVIDER_TYPE_SI
public static final java.lang.String PALVELUKARTTA_UNIT_CONNECTION_SI
public static final java.lang.String PALVELUKARTTA_CONNECTION_SI
public static final java.lang.String PALVELUKARTTA_WWW_SI
public static final java.lang.String PALVELUKARTTA_PHONE_SI
public static final java.lang.String PALVELUKARTTA_EMAIL_SI
public static final java.lang.String PALVELUKARTTA_CONTACT_PERSON_SI
public static final java.lang.String PALVELUKARTTA_SERVICE_RELATION_SI
public static final java.lang.String PALVELUKARTTA_PARENT_SERVICE_SI
public static final java.lang.String PALVELUKARTTA_CHILD_SERVICE_SI
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 AbstractExtractorpublic javax.swing.Icon getIcon()
AbstractWandoraToolgetIcon should return Icon object of
the tool.getIcon in interface WandoraToolgetIcon in class AbstractExtractorpublic boolean useURLCrawler()
useURLCrawler in class AbstractExtractorpublic boolean _extractTopicsFrom(java.io.File f,
TopicMap tm)
throws java.lang.Exception
_extractTopicsFrom in class AbstractExtractorjava.lang.Exceptionpublic boolean _extractTopicsFrom(java.net.URL u,
TopicMap tm)
throws java.lang.Exception
_extractTopicsFrom in class AbstractExtractorjava.lang.Exceptionpublic boolean _extractTopicsFrom(java.lang.String str,
TopicMap tm)
throws java.lang.Exception
_extractTopicsFrom in class AbstractExtractorjava.lang.Exceptionpublic abstract boolean extractFrom(org.json.JSONObject json,
TopicMap tm)
public abstract boolean extractFrom(org.json.JSONArray json,
TopicMap tm)
protected double getDoubleJSONValue(org.json.JSONObject o,
java.lang.String key)
protected long getLongJSONValue(org.json.JSONObject o,
java.lang.String key)
protected java.lang.String getStringJSONValue(org.json.JSONObject o,
java.lang.String key)
protected java.lang.Object getJSONValue(org.json.JSONObject o,
java.lang.String key)
public Topic getContactPersonType(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getEmailType(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getPhoneType(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getWWWType(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getAbbrType(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getDataSourceType(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getUnitConnectionType(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getConnectionType(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getProviderTypeType(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getProviderTypeTopic(long provider_type, TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getServiceTopic(long serviceID, TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getServiceType(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getServiceRelationType(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getParentServiceRole(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getChildServiceRole(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getOrganizationTopic(long organizationID, TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getOrganizationType(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getDepartmentTopicWithAbbr(java.lang.String abbr, TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getDepartmentTopic(java.lang.String departmentID, TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getDepartmentType(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getDepartmentOrganizationType(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getUnitTopic(long unitID, TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getUnitType(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getUnitDepartmentType(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getUnitOrganizationType(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getUnitServiceType(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getUnitCityType(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getCityType(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getStreetAddressType(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getGeoLocationType(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getCityTopic(java.lang.String city_fi, java.lang.String city_sv, java.lang.String city_en, TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getZipTopic(java.lang.String zip, TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getZipType(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getUnitZipType(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getPalvelukarttaType(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getWandoraClass(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic getDefaultLangTopic(TopicMap tm) throws TopicMapException
TopicMapExceptionprotected 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 Topic getOrCreateTopic(TopicMap tm, java.lang.String si, java.lang.String bn, Topic type) throws TopicMapException
TopicMapExceptionprotected static void makeSubclassOf(TopicMap tm, Topic t, Topic superclass) throws TopicMapException
TopicMapExceptionprotected Topic getATopic(java.lang.String str, java.lang.String si, Topic type, TopicMap tm) throws TopicMapException
TopicMapExceptionprotected Topic getUTopic(java.lang.String si, Topic type, TopicMap tm) throws TopicMapException
TopicMapExceptionpublic void associateServices(Topic parentService, Topic childService, TopicMap tm) throws TopicMapException
TopicMapExceptionCopyright 2004-2015 Wandora Team