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_EXTRACTOR
CLOSE, EXECUTE, INVISIBLE, VISIBLE, WAIT
RETURN_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, 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 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()
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 AbstractExtractor
public javax.swing.Icon getIcon()
AbstractWandoraTool
getIcon
should return Icon
object of
the tool.getIcon
in interface WandoraTool
getIcon
in class AbstractExtractor
public boolean useURLCrawler()
useURLCrawler
in class AbstractExtractor
public boolean _extractTopicsFrom(java.io.File f, TopicMap tm) throws java.lang.Exception
_extractTopicsFrom
in class AbstractExtractor
java.lang.Exception
public boolean _extractTopicsFrom(java.net.URL u, TopicMap tm) throws java.lang.Exception
_extractTopicsFrom
in class AbstractExtractor
java.lang.Exception
public boolean _extractTopicsFrom(java.lang.String str, TopicMap tm) throws java.lang.Exception
_extractTopicsFrom
in class AbstractExtractor
java.lang.Exception
public 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
TopicMapException
public Topic getEmailType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getPhoneType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getWWWType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getAbbrType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getDataSourceType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getUnitConnectionType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getConnectionType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getProviderTypeType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getProviderTypeTopic(long provider_type, TopicMap tm) throws TopicMapException
TopicMapException
public Topic getServiceTopic(long serviceID, TopicMap tm) throws TopicMapException
TopicMapException
public Topic getServiceType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getServiceRelationType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getParentServiceRole(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getChildServiceRole(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getOrganizationTopic(long organizationID, TopicMap tm) throws TopicMapException
TopicMapException
public Topic getOrganizationType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getDepartmentTopicWithAbbr(java.lang.String abbr, TopicMap tm) throws TopicMapException
TopicMapException
public Topic getDepartmentTopic(java.lang.String departmentID, TopicMap tm) throws TopicMapException
TopicMapException
public Topic getDepartmentType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getDepartmentOrganizationType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getUnitTopic(long unitID, TopicMap tm) throws TopicMapException
TopicMapException
public Topic getUnitType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getUnitDepartmentType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getUnitOrganizationType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getUnitServiceType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getUnitCityType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getCityType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getStreetAddressType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getGeoLocationType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getCityTopic(java.lang.String city_fi, java.lang.String city_sv, java.lang.String city_en, TopicMap tm) throws TopicMapException
TopicMapException
public Topic getZipTopic(java.lang.String zip, TopicMap tm) throws TopicMapException
TopicMapException
public Topic getZipType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getUnitZipType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getPalvelukarttaType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getWandoraClass(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getDefaultLangTopic(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 Topic getOrCreateTopic(TopicMap tm, java.lang.String si, java.lang.String bn, Topic type) throws TopicMapException
TopicMapException
protected static void makeSubclassOf(TopicMap tm, Topic t, Topic superclass) throws TopicMapException
TopicMapException
protected Topic getATopic(java.lang.String str, java.lang.String si, Topic type, TopicMap tm) throws TopicMapException
TopicMapException
protected Topic getUTopic(java.lang.String si, Topic type, TopicMap tm) throws TopicMapException
TopicMapException
public void associateServices(Topic parentService, Topic childService, TopicMap tm) throws TopicMapException
TopicMapException
Copyright 2004-2015 Wandora Team