Package org.apache.sis.metadata
Class ValueMap.Property
java.lang.Object
org.apache.sis.internal.util.AbstractMapEntry<String,Object>
org.apache.sis.metadata.ValueMap.Property
- Enclosing class:
- ValueMap
A map entry for a given property.
- Since:
- 0.3
- Version:
- 0.3
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.sis.internal.util.AbstractMapEntry
equals, hashCode, toString
-
Field Details
-
index
final int indexThe property index.
-
-
Constructor Details
-
Property
Property(int index) Creates an entry for the property at the given index.
-
-
Method Details
-
getKey
Returns the key corresponding to this entry. -
getValueType
Returns value type as declared in the interface method signature. It may be a primitive type. -
getValue
Returns the value corresponding to this entry. -
setValue
Replaces the value corresponding to this entry with the specified value.- Specified by:
setValue
in interfaceMap.Entry<String,
Object> - Overrides:
setValue
in classAbstractMapEntry<String,
Object> - Parameters:
value
- the new value to be stored in this entry.- Returns:
- the previous value (may be
null
). - Throws:
ClassCastException
- if the given value is not of the expected type.UnmodifiableMetadataException
- if the property for this entry is read-only.
-