public interface EPath
EPath
represents a resolver which converts String-based
expressions into Objects. Those Objects were provided by the underlying data
model and represent their properties.
For every modeled entity package within the application model, the generation
will result in a Java package containing the modeled entities as Java classes
and one global EPath
implementation per package. This
implementation will be internally used to convert expressions, e.g. to parse
JSON into entities or to get the expression value for ContentAdapters.
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getObjectForExpression(java.lang.Object root,
ExpressionFragment fragment)
Returns a Object for the passed expression or null, if the expression could
not be found.
|
void |
setObjectForExpression(java.lang.Object root,
ExpressionFragment fragment,
java.lang.Object value)
Sets a Object for the passed expressions.
|
java.lang.Object getObjectForExpression(java.lang.Object root, ExpressionFragment fragment)
ExpressionFragment.getFragment()
name.
The passed root
must be a generated entity class which is
modeled with EML.
root
- fragment
- void setObjectForExpression(java.lang.Object root, ExpressionFragment fragment, java.lang.Object value)
The passed root
must be a generated entity class which is
modeled with EML.
root
- fragment
- value
-