public interface MappingService
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.
Modifier and Type | Method and Description |
---|---|
Object |
get(Object mappingKey,
Object key) |
Object |
get(Object mappingKey,
Object key,
Object defaultValue) |
Object |
getKey(Object mappingKey,
Object value)
Reverse mapping (Optional implementation)
|
Object |
getKey(Object mappingKey,
Object value,
Object defaultKey)
Reverse mapping (Optional implementation)
|
Object |
getKeySystem(Object mappingKey) |
Object |
getValueSystem(Object mappingKey) |
Set<?> |
keys(Object mappingKey) |
Set<?> |
mappingKeys() |
Collection<?> |
values(Object mappingKey) |
Object get(Object mappingKey, Object key)
mappingKey
- mapping namekey
- left side of the mappingIllegalArgumentException
- if the mappingKey is not registered.Object get(Object mappingKey, Object key, Object defaultValue)
mappingKey
- mapping namekey
- left side of the mappingdefaultValue
- default right side if there is no mapping for the codeIllegalArgumentException
- if the mappingKey is not registered.Object getKey(Object mappingKey, Object value)
mappingKey
- mapping namevalue
- right side of the mappingIllegalArgumentException
- if the mappingKey is not registered.Object getKey(Object mappingKey, Object value, Object defaultKey)
mappingKey
- mapping namevalue
- right side of the mappingdefaultKey
- default left sideIllegalArgumentException
- if the mappingKey is not registered.Object getKeySystem(Object mappingKey)
mappingKey
- mapping nameIllegalArgumentException
- if the mappingKey is not registered.Object getValueSystem(Object mappingKey)
mappingKey
- mapping nameIllegalArgumentException
- if the mappingKey is not registered.Set<?> mappingKeys()
Set<?> keys(Object mappingKey)
mappingKey
- mapping keyIllegalArgumentException
- if the mappingKey is not registered.Collection<?> values(Object mappingKey)
mappingKey
- mapping keyIllegalArgumentException
- if the mappingKey is not registered.Copyright © 2018 Open eHealth Foundation. All rights reserved.