| org.geotools.util.DerivedMap org.geotools.referencing.crs.UnprefixedMap
UnprefixedMap | final class UnprefixedMap extends DerivedMap (Code) | | A map without the "conversion." prefix in front of property keys. This
implementation performs a special processing for the
.name
key: if it doesn't exists, then the plain
name key is used. In other words,
this map inherits the "name" property from the
map.
version: $Id: UnprefixedMap.java 20874 2006-08-07 10:00:01Z jgarnett $ author: Martin Desruisseaux since: 2.0 |
Constructor Summary | |
public | UnprefixedMap(Map base, String prefix) Creates a new unprefixed map from the specified base map and prefix. |
UnprefixedMap | public UnprefixedMap(Map base, String prefix)(Code) | | Creates a new unprefixed map from the specified base map and prefix.
Parameters: base - The base map. Parameters: prefix - The prefix to remove from the keys in the base map. |
baseToDerived | protected Object baseToDerived(Object key)(Code) | | Remove the prefix from the specified key. If the key doesn't begins with
the prefix, then this method returns
null .
Parameters: key - A key from the map. The key that this view should contains instead of key ,or null . |
derivedToBase | protected Object derivedToBase(Object key)(Code) | | Add the prefix to the specified key.
Parameters: key - A key in this map. The key stored in the map. |
|
|