|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgate.util.SimpleMapImpl
gate.util.SimpleFeatureMapImpl
public class SimpleFeatureMapImpl
Simple case of features.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Field Summary | |
|---|---|
private static boolean |
DEBUG
Debug flag |
private Vector |
mapListeners
|
(package private) static long |
serialVersionUID
Freeze the serialization UID. |
| Fields inherited from class gate.util.SimpleMapImpl |
|---|
capacity, count, nullKey, theKeys, theKeysHere, theValues |
| Constructor Summary | |
|---|---|
SimpleFeatureMapImpl()
|
|
| Method Summary | |
|---|---|
void |
addFeatureMapListener(FeatureMapListener l)
Adds a gate listener |
void |
clear()
clear the map |
Object |
clone()
Create a copy of the map including the data. |
boolean |
equals(Object o)
|
protected void |
fireMapUpdatedEvent()
|
protected OClass |
getClassForURIOrName(Ontology ontologyLR,
String name)
Look up the given name in the given ontology. |
Object |
put(Object key,
Object value)
Overriden to fire events, so that the persistent objects can keep track of what's updated |
Object |
remove(Object key)
Overriden to fire events, so that the persistent objects can keep track of what's updated |
void |
removeFeatureMapListener(FeatureMapListener l)
Removes a gate listener |
boolean |
subsumes(FeatureMap aFeatureMap)
Test if this featureMap includes all features from aFeatureMap However, if aFeatureMap contains a feature whose value is equal to gate.creole.ANNIEConstants.LOOKUP_CLASS_FEATURE_NAME (which is normally "class"), then GATE will attempt to match that feature using an ontology which it will try to retreive from a feature in both the feature map through which this method is called and in aFeatureMap. |
boolean |
subsumes(FeatureMap aFeatureMap,
Set aFeatureNamesSet)
Tests if this featureMap object includes aFeatureMap but only for the those features present in the aFeatureNamesSet. |
boolean |
subsumes(Ontology ontologyLR,
FeatureMap aFeatureMap)
Tests if this featureMap object includes aFeatureMap features. |
| Methods inherited from class gate.util.SimpleMapImpl |
|---|
containsKey, containsValue, entrySet, get, getSubsumeKey, hashCode, isEmpty, keySet, putAll, size, toString, values |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
containsKey, containsValue, entrySet, get, hashCode, isEmpty, keySet, putAll, size, values |
| Field Detail |
|---|
private static final boolean DEBUG
static final long serialVersionUID
private transient Vector mapListeners
| Constructor Detail |
|---|
public SimpleFeatureMapImpl()
| Method Detail |
|---|
public boolean subsumes(FeatureMap aFeatureMap)
subsumes in interface FeatureMapaFeatureMap - object which will be included or not in
this FeatureMap obj.If this param is null then it will return true.
true if aFeatureMap is incuded in this obj.
and false if not.
public boolean subsumes(Ontology ontologyLR,
FeatureMap aFeatureMap)
class and (optionally) ontology features:
subsumes in interface FeatureMapontologyLR - an ontology to be used for the subsumeaFeatureMap - object which will be included or not in this
FeatureMap obj.
true if this includes aFeatureMap
and false if not.
protected OClass getClassForURIOrName(Ontology ontologyLR,
String name)
ontologyLR - the ontologyname - the URI or local resource name to look up
null if no
suitable class could be found.
public boolean subsumes(FeatureMap aFeatureMap,
Set aFeatureNamesSet)
subsumes in interface FeatureMapaFeatureMap - which will be included or not in this
FeatureMap obj.If this param is null then it will return true.aFeatureNamesSet - is a set of strings representing the names of the
features that would be considered for subsumes. If aFeatureNamesSet is
null then subsumes(FeatureMap) will be called.
true if all features present in the aFeaturesNameSet
from aFeatureMap are included in this obj, or false
otherwise.
public Object put(Object key,
Object value)
put in interface Map<Object,Object>put in class SimpleMapImplpublic Object remove(Object key)
remove in interface Map<Object,Object>remove in class SimpleMapImplpublic void clear()
SimpleMapImpl
clear in interface Map<Object,Object>clear in class SimpleMapImplpublic Object clone()
SimpleMapImpl
clone in class SimpleMapImplpublic boolean equals(Object o)
equals in interface Map<Object,Object>equals in class SimpleMapImplpublic void removeFeatureMapListener(FeatureMapListener l)
removeFeatureMapListener in interface FeatureMappublic void addFeatureMapListener(FeatureMapListener l)
addFeatureMapListener in interface FeatureMapprotected void fireMapUpdatedEvent()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||