Package org.apache.sis.metadata
Class NameMap
Map of property names for a given implementation class. This map is read-only.
- Since:
- 0.3
- Version:
- 0.3
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sis.metadata.PropertyMap
PropertyMap.Entries, PropertyMap.IterNested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final KeyNamePolicyDetermines the string representation of values in this map.Fields inherited from class org.apache.sis.metadata.PropertyMap
accessor, entrySet, keyPolicy -
Constructor Summary
ConstructorsConstructorDescriptionNameMap(PropertyAccessor accessor, KeyNamePolicy keyPolicy, KeyNamePolicy valuePolicy) Creates a name map for the specified accessor. -
Method Summary
Methods inherited from class org.apache.sis.metadata.PropertyMap
containsKey, entrySet, sizeMethods inherited from class java.util.AbstractMap
clear, clone, containsValue, equals, hashCode, isEmpty, keySet, put, putAll, remove, toString, valuesMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
valuePolicy
Determines the string representation of values in this map.
-
-
Constructor Details
-
NameMap
NameMap(PropertyAccessor accessor, KeyNamePolicy keyPolicy, KeyNamePolicy valuePolicy) Creates a name map for the specified accessor.- Parameters:
accessor- the accessor to use for the metadata.keyPolicy- determines the string representation of keys in the map.valuePolicy- determines the string representation of values in this map.
-
-
Method Details
-
get
Returns the value to which the specified key is mapped, ornullif this map contains no mapping for the key. -
iterator
Returns an iterator over the entries contained in this map.- Specified by:
iteratorin classPropertyMap<String>
-