Interface MappingService
- All Known Implementing Classes:
BidiMappingService, SpringBidiMappingService
Deprecated, for removal: This API element is subject to removal in a future version.
Interface for mapping a set of keysets into corresponding values.
The back end mapping implementation is not defined by this interface. Examples
could be a simple Map or a remote terminology service, for
which proper implementations of this interface must be provided.
- Author:
- Christian Ohr
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Reverse mapping (Optional implementation)Deprecated, for removal: This API element is subject to removal in a future version.Reverse mapping (Optional implementation)getKeySystem(Object mappingKey) Deprecated, for removal: This API element is subject to removal in a future version.getValueSystem(Object mappingKey) Deprecated, for removal: This API element is subject to removal in a future version.Set<?> Deprecated, for removal: This API element is subject to removal in a future version.Set<?> Deprecated, for removal: This API element is subject to removal in a future version.Collection<?> Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Details
-
get
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
mappingKey- mapping namekey- left side of the mapping- Returns:
- the value mapped by a registered mapping. The implementation of the mapping implements the behavior if the key does not exist.
- Throws:
IllegalArgumentException- if the mappingKey is not registered.
-
get
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
mappingKey- mapping namekey- left side of the mappingdefaultValue- default right side if there is no mapping for the code- Returns:
- the value mapped by a registered mapping. If no mapping exists, the default value if returned. The implementation of the mapping implements the behavior if the key does not exist.
- Throws:
IllegalArgumentException- if the mappingKey is not registered.
-
getKey
Deprecated, for removal: This API element is subject to removal in a future version.Reverse mapping (Optional implementation)- Parameters:
mappingKey- mapping namevalue- right side of the mapping- Returns:
- the key mapped by a registered mapping. The implementation of the mapping implements the behavior if the value does not exist.
- Throws:
IllegalArgumentException- if the mappingKey is not registered.
-
getKey
Deprecated, for removal: This API element is subject to removal in a future version.Reverse mapping (Optional implementation)- Parameters:
mappingKey- mapping namevalue- right side of the mappingdefaultKey- default left side- Returns:
- the key mapped by a registered mapping. If no mapping exists, the default value if returned. The implementation of the mapping implements the behavior if the key does not exist.
- Throws:
IllegalArgumentException- if the mappingKey is not registered.
-
getKeySystem
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
mappingKey- mapping name- Returns:
- a formal identification of the key system (e.g. an OID)
- Throws:
IllegalArgumentException- if the mappingKey is not registered.
-
getValueSystem
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
mappingKey- mapping name- Returns:
- a formal identification of the value system (e.g. an OID)
- Throws:
IllegalArgumentException- if the mappingKey is not registered.
-
mappingKeys
Set<?> mappingKeys()Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- a set of names of all registered mappings. Changes to the set do not change the registry itself.
-
keys
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
mappingKey- mapping key- Returns:
- key set of a registered mapping. Changes to the set do not change the registry itself.
- Throws:
IllegalArgumentException- if the mappingKey is not registered.
-
values
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
mappingKey- mapping key- Returns:
- value set of a registered mapping. Changes to the set do not change the registry itself.
- Throws:
IllegalArgumentException- if the mappingKey is not registered.
-
Mappings, which isString-typed, returnsOptionalrather thannull, and has neither of the two string conventions this interface's implementations carry. Scheduled for removal in IPF 7.0.