public class BidiMappingService extends Object implements MappingService, groovy.lang.GroovyObject
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ELSE |
protected static String |
KEYSYSTEM |
protected static String |
SEPARATOR |
protected static String |
VALUESYSTEM |
| Constructor and Description |
|---|
BidiMappingService() |
BidiMappingService(String separator) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMappingScript(URL script) |
void |
addMappingScripts(URL... scripts) |
protected void |
checkMappingKey(Map<Object,Map> map,
Object mappingKey) |
void |
clearMappings() |
Object |
get(Object mappingKey,
Object key) |
Object |
get(Object mappingKey,
Object key,
Object defaultValue) |
boolean |
getIgnoreResourceNotFound() |
Object |
getKey(Object mappingKey,
Object value)
Reverse mapping (Optional implementation)
|
Object |
getKey(Object mappingKey,
Object value,
Object defaultValue)
Reverse mapping (Optional implementation)
|
Object |
getKeySystem(Object mappingKey) |
Map<Object,Map> |
getMap() |
groovy.lang.MetaClass |
getMetaClass() |
Object |
getProperty(String property) |
Map |
getReverseMap() |
List<URL> |
getScripts() |
String |
getSeparator() |
Object |
getValueSystem(Object mappingKey) |
Object |
invokeMethod(String method,
Object arguments) |
boolean |
isIgnoreResourceNotFound() |
protected Object |
joinKey(Object x) |
Set<?> |
keys(Object mappingKey) |
Set<?> |
mappingKeys() |
protected Object |
retrieve(Map<Object,Map> m,
Object mappingKey,
Object key) |
protected Object |
retrieveElse(Map<Object,Map> m,
Object mappingKey,
Object key) |
void |
setIgnoreResourceNotFound(boolean value) |
void |
setMap(Map<Object,Map> value) |
void |
setMappingScript(URL script) |
void |
setMappingScripts(URL... scripts) |
void |
setMetaClass(groovy.lang.MetaClass mc) |
void |
setProperty(String property,
Object value) |
void |
setReverseMap(Map value) |
void |
setScripts(List<URL> value) |
void |
setSeparator(String value) |
protected Object |
splitKey(Object x) |
protected void |
updateReverseMap() |
Collection<?> |
values(Object mappingKey) |
protected static final String KEYSYSTEM
protected static final String VALUESYSTEM
protected static final String ELSE
protected static final String SEPARATOR
public BidiMappingService()
public BidiMappingService(String separator)
public groovy.lang.MetaClass getMetaClass()
getMetaClass in interface groovy.lang.GroovyObjectpublic void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass in interface groovy.lang.GroovyObjectpublic Object invokeMethod(String method, Object arguments)
invokeMethod in interface groovy.lang.GroovyObjectpublic Object getProperty(String property)
getProperty in interface groovy.lang.GroovyObjectpublic void setProperty(String property, Object value)
setProperty in interface groovy.lang.GroovyObjectpublic Map getReverseMap()
public void setReverseMap(Map value)
public String getSeparator()
public void setSeparator(String value)
public boolean getIgnoreResourceNotFound()
public boolean isIgnoreResourceNotFound()
public void setIgnoreResourceNotFound(boolean value)
public void setMappingScript(URL script)
public void setMappingScripts(URL... scripts)
public void addMappingScript(URL script)
public void addMappingScripts(URL... scripts)
public void clearMappings()
public Object get(Object mappingKey, Object key)
get in interface MappingServicemappingKey - mapping namekey - left side of the mappingpublic Object getKey(Object mappingKey, Object value)
MappingServicegetKey in interface MappingServicemappingKey - mapping namevalue - right side of the mappingpublic Object get(Object mappingKey, Object key, Object defaultValue)
get in interface MappingServicemappingKey - mapping namekey - left side of the mappingdefaultValue - default right side if there is no mapping for the codepublic Object getKey(Object mappingKey, Object value, Object defaultValue)
MappingServicegetKey in interface MappingServicemappingKey - mapping namevalue - right side of the mappingdefaultValue - default left sidepublic Object getKeySystem(Object mappingKey)
getKeySystem in interface MappingServicemappingKey - mapping namepublic Object getValueSystem(Object mappingKey)
getValueSystem in interface MappingServicemappingKey - mapping namepublic Set<?> mappingKeys()
mappingKeys in interface MappingServicepublic Set<?> keys(Object mappingKey)
keys in interface MappingServicemappingKey - mapping keypublic Collection<?> values(Object mappingKey)
values in interface MappingServicemappingKey - mapping keyprotected void updateReverseMap()
Copyright © 2018 Open eHealth Foundation. All rights reserved.