gate.creole.gazetteer
Class AbstractOntoGazetteer

java.lang.Object
  |
  +--gate.util.AbstractFeatureBearer
        |
        +--gate.creole.AbstractResource
              |
              +--gate.creole.AbstractProcessingResource
                    |
                    +--gate.creole.AbstractLanguageAnalyser
                          |
                          +--gate.creole.gazetteer.AbstractGazetteer
                                |
                                +--gate.creole.gazetteer.AbstractOntoGazetteer
All Implemented Interfaces:
ANNIEConstants, Executable, FeatureBearer, Gazetteer, LanguageAnalyser, NameBearer, OntoGazetteer, ProcessingResource, Resource, Serializable
Direct Known Subclasses:
OntoGazetteerImpl

public abstract class AbstractOntoGazetteer
extends AbstractGazetteer
implements OntoGazetteer

AbstratOntoGazetteer This class implemnents the methods common for all ontology-aware gazetteers.

See Also:
Serialized Form

Inner classes inherited from class gate.creole.AbstractProcessingResource
AbstractProcessingResource.InternalStatusListener, AbstractProcessingResource.IntervalProgressListener
 
Field Summary
protected  Gazetteer gaz
          reference to the linear gazetteer
protected  String gazetteerName
          class name of the linear gazetteer to be called
protected  URL mappingURL
          the url of the mapping definition
 
Fields inherited from class gate.creole.gazetteer.AbstractGazetteer
annotationSetName, caseSensitive, definition, encoding, features, listeners, listsURL, mappingDefinition
 
Fields inherited from class gate.creole.AbstractLanguageAnalyser
corpus, document
 
Fields inherited from class gate.creole.AbstractProcessingResource
interrupted, progressListeners, statusListeners
 
Fields inherited from class gate.creole.AbstractResource
name, serialVersionUID
 
Fields inherited from interface gate.creole.ANNIEConstants
ANNOTATION_COREF_FEATURE_NAME, DATE_ANNOTATION_TYPE, DOCUMENT_COREF_FEATURE_NAME, LOCATION_ANNOTATION_TYPE, LOOKUP_ANNOTATION_TYPE, LOOKUP_CLASS_FEATURE_NAME, LOOKUP_MAJOR_TYPE_FEATURE_NAME, LOOKUP_MINOR_TYPE_FEATURE_NAME, LOOKUP_ONTOLOGY_FEATURE_NAME, MONEY_ANNOTATION_TYPE, ORGANIZATION_ANNOTATION_TYPE, PERSON_ANNOTATION_TYPE, PERSON_GENDER_FEATURE_NAME, PR_NAMES, SENTENCE_ANNOTATION_TYPE, SPACE_TOKEN_ANNOTATION_TYPE, TOKEN_ANNOTATION_TYPE, TOKEN_CATEGORY_FEATURE_NAME, TOKEN_KIND_FEATURE_NAME, TOKEN_LENGTH_FEATURE_NAME, TOKEN_ORTH_FEATURE_NAME, TOKEN_STRING_FEATURE_NAME
 
Constructor Summary
AbstractOntoGazetteer()
           
 
Method Summary
 Gazetteer getGazetteer()
          Gets the linear gazetteer
 String getGazetteerName()
          Gets the class name of the linear gazetteer
 LinearDefinition getLinearDefinition()
          Overrides Gazetteer and retrieves the linear definition from the underlying linear gazetteer
 URL getMappingURL()
          Gets the URL of the mapping definition
 void setGazetteer(Gazetteer gaze)
          Sets the linear gazetteer
 void setGazetteerName(String name)
          Sets the class name of the linear gazetteer to be loaded.
 void setMappingURL(URL url)
          Sets the URL of the mapping definition
 
Methods inherited from class gate.creole.gazetteer.AbstractGazetteer
addGazetteerListener, fireGazetteerEvent, getAnnotationSetName, getCaseSensitive, getEncoding, getFeatures, getListsURL, getMappingDefinition, reInit, setAnnotationSetName, setCaseSensitive, setEncoding, setFeatures, setListsURL, setMappingDefinition
 
Methods inherited from class gate.creole.AbstractLanguageAnalyser
getCorpus, getDocument, setCorpus, setDocument
 
Methods inherited from class gate.creole.AbstractProcessingResource
addProgressListener, addStatusListener, cleanup, execute, fireProcessFinished, fireProgressChanged, fireStatusChanged, init, interrupt, isInterrupted, removeProgressListener, removeStatusListener
 
Methods inherited from class gate.creole.AbstractResource
checkParameterValues, getName, getParameterValue, getParameterValue, removeResourceListeners, setName, setParameterValue, setParameterValue, setParameterValues, setParameterValues, setResourceListeners
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 
Methods inherited from interface gate.creole.gazetteer.Gazetteer
add, addGazetteerListener, fireGazetteerEvent, getAnnotationSetName, getCaseSensitive, getEncoding, getListsURL, getMappingDefinition, lookup, remove, setAnnotationSetName, setCaseSensitive, setEncoding, setListsURL, setMappingDefinition
 
Methods inherited from interface gate.LanguageAnalyser
getCorpus, getDocument, setCorpus, setDocument
 
Methods inherited from interface gate.ProcessingResource
interrupt, isInterrupted, reInit
 
Methods inherited from interface gate.Resource
cleanup, getParameterValue, init, setParameterValue, setParameterValues
 
Methods inherited from interface gate.util.FeatureBearer
getFeatures, setFeatures
 
Methods inherited from interface gate.util.NameBearer
getName, setName
 
Methods inherited from interface gate.Executable
execute
 

Field Detail

mappingURL

protected URL mappingURL
the url of the mapping definition

gazetteerName

protected String gazetteerName
class name of the linear gazetteer to be called

gaz

protected Gazetteer gaz
reference to the linear gazetteer
Constructor Detail

AbstractOntoGazetteer

public AbstractOntoGazetteer()
Method Detail

setGazetteerName

public void setGazetteerName(String name)
Sets the class name of the linear gazetteer to be loaded.
Specified by:
setGazetteerName in interface OntoGazetteer
Parameters:
name - class name of a Gazetteer

getGazetteerName

public String getGazetteerName()
Gets the class name of the linear gazetteer
Specified by:
getGazetteerName in interface OntoGazetteer
Returns:
the class name of the linear gazetteer

setMappingURL

public void setMappingURL(URL url)
Sets the URL of the mapping definition
Specified by:
setMappingURL in interface OntoGazetteer
Parameters:
url - the URL of the mapping definition

getMappingURL

public URL getMappingURL()
Gets the URL of the mapping definition
Specified by:
getMappingURL in interface OntoGazetteer
Returns:
the URL of the mapping definition

getGazetteer

public Gazetteer getGazetteer()
Gets the linear gazetteer
Specified by:
getGazetteer in interface OntoGazetteer
Returns:
the linear gazetteer

setGazetteer

public void setGazetteer(Gazetteer gaze)
Sets the linear gazetteer
Specified by:
setGazetteer in interface OntoGazetteer
Parameters:
gaze - the linear gazetteer to be associated with this onto gazetteer.

getLinearDefinition

public LinearDefinition getLinearDefinition()
Overrides Gazetteer and retrieves the linear definition from the underlying linear gazetteer
Specified by:
getLinearDefinition in interface Gazetteer
Overrides:
getLinearDefinition in class AbstractGazetteer
Following copied from interface: gate.creole.gazetteer.Gazetteer
Returns:
the linear definition of the gazetteer