gate.util
Class SimpleFeatureMapImpl
java.lang.Object
|
+--gate.util.SimpleMapImpl
|
+--gate.util.SimpleFeatureMapImpl
- All Implemented Interfaces:
- Cloneable, FeatureMap, Map, Serializable
- public class SimpleFeatureMapImpl
- extends gate.util.SimpleMapImpl
- implements FeatureMap, Serializable, Cloneable
Simple case of features.
- See Also:
- Serialized Form
theKeysHere
public static transient HashMap theKeysHere
SimpleFeatureMapImpl
public SimpleFeatureMapImpl()
subsumes
public boolean subsumes(FeatureMap aFeatureMap)
- Test if this featureMap includes all features from aFeatureMap
- Specified by:
subsumes
in interface FeatureMap
- Parameters:
aFeatureMap
- object which will be included or not in
this FeatureMap obj.If this param is null then it will return true.- Returns:
true
if aFeatureMap is incuded in this obj.
and false
if not.
subsumes
public boolean subsumes(FeatureMap aFeatureMap,
Set aFeatureNamesSet)
- Tests if this featureMap object includes aFeatureMap but only
for the those features present in the aFeatureNamesSet.
- Specified by:
subsumes
in interface FeatureMap
- Parameters:
aFeatureMap
- 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.- Returns:
true
if all features present in the aFeaturesNameSet
from aFeatureMap are included in this obj, or false
otherwise.
put
public Object put(Object key,
Object value)
- Overriden to fire events, so that the persistent objects
can keep track of what's updated
- Specified by:
put
in interface Map
- Overrides:
put
in class gate.util.SimpleMapImpl
remove
public Object remove(Object key)
- Overriden to fire events, so that the persistent objects
can keep track of what's updated
- Specified by:
remove
in interface Map
- Overrides:
remove
in class gate.util.SimpleMapImpl
clear
public void clear()
- Specified by:
clear
in interface Map
- Overrides:
clear
in class gate.util.SimpleMapImpl
clone
public Object clone()
- Overrides:
clone
in class gate.util.SimpleMapImpl
equals
public boolean equals(Object o)
- Specified by:
equals
in interface Map
- Overrides:
equals
in class gate.util.SimpleMapImpl
removeFeatureMapListener
public void removeFeatureMapListener(FeatureMapListener l)
- Removes a gate listener
- Specified by:
removeFeatureMapListener
in interface FeatureMap
addFeatureMapListener
public void addFeatureMapListener(FeatureMapListener l)
- Adds a gate listener
- Specified by:
addFeatureMapListener
in interface FeatureMap
size
public int size()
- Specified by:
size
in interface Map
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface Map
values
public Collection values()
- Specified by:
values
in interface Map
keySet
public Set keySet()
- Specified by:
keySet
in interface Map
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interface Map
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in interface Map
get
public Object get(Object key)
- Specified by:
get
in interface Map
putAll
public void putAll(Map t)
- Specified by:
putAll
in interface Map
entrySet
public Set entrySet()
- Specified by:
entrySet
in interface Map
hashCode
public int hashCode()
- Specified by:
hashCode
in interface Map
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object