VALUE
- is the value this function traverses to starting from the actual POJO.public abstract class AbstractMapPojoPathFunction<VALUE> extends AbstractPojoPathFunction<Map<String,Object>,VALUE>
PojoPathFunction
that operates
on a Map
.FUNCTION_NAME_PREFIX
Constructor and Description |
---|
AbstractMapPojoPathFunction() |
Modifier and Type | Method and Description |
---|---|
VALUE |
get(Map<String,Object> current,
String functionName,
PojoPathContext context)
This method gets the value of this function.
|
VALUE |
set(Map<String,Object> current,
String functionName,
VALUE value,
PojoPathContext context)
|
create, getFunctionDescription, isDeterministic, toString
createLogger, doInitialize, getLogger
doInitialized, getInitializationState, initialize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getInputClass, getValueClass
public VALUE get(Map<String,Object> current, String functionName, PojoPathContext context)
PojoPathFunction
PojoPathNavigator
.
get
independent of the
PojoPathMode
. A regular implementation should only return what is already there. However in specific cases
this may NOT (initially) be available from the given Pojo
actual
and
therefore be retrieved from somewhere else (e.g. a database using a primary key given via a
property
of the given context
). Further it can be legal to modify
the actual
Pojo
e.g. by attaching the externally retrieved result.get
in interface PojoPathFunction<Map<String,Object>,VALUE>
get
in class AbstractPojoPathFunction<Map<String,Object>,VALUE>
current
- is the actual Pojo
where this function is invoked on. Typically the
returned value should be retrieved via this object.functionName
- is the name under which this PojoPathFunction
was invoked via the
PojoPathNavigator
excluding the PojoPathFunction.FUNCTION_NAME_PREFIX
.context
- is the PojoPathContext
providing additional context information. Objects traversed between
actual
and the returned value should be recognized
via the recognizer
.null
if NOT available.public VALUE set(Map<String,Object> current, String functionName, VALUE value, PojoPathContext context)
PojoPathFunction
value
for the given actual
Pojo
. get
should return the same value
for identical arguments.set
in interface PojoPathFunction<Map<String,Object>,VALUE>
set
in class AbstractPojoPathFunction<Map<String,Object>,VALUE>
current
- is the actual Pojo
where this function is invoked on. Typically the
given value
should be set in this object.functionName
- is the name under which this PojoPathFunction
was invoked via the
PojoPathNavigator
excluding the PojoPathFunction.FUNCTION_NAME_PREFIX
.value
- is the value to set.context
- is the PojoPathContext
providing additional context information. Objects traversed between
actual
and the returned value should be recognized
via the recognizer
.null
.Copyright © 2001–2016 mmm-Team. All rights reserved.