public class ModelPathResolver extends Object
| Modifier and Type | Class | Description |
|---|---|---|
static class |
ModelPathResolver.ResolvedModelPathResult |
Static class that holds the result of the resolved path.
|
| Modifier and Type | Field | Description |
|---|---|---|
static ThreadLocal<Map<String,Object>> |
modelMapThreadLocal |
| Constructor | Description |
|---|---|
ModelPathResolver() |
| Modifier and Type | Method | Description |
|---|---|---|
protected static String |
getGetter(Object instance,
String fieldNameOrGetter) |
Gets the name of the getter.
|
static ModelPathResolver.ResolvedModelPathResult |
resolveModelPath(String path) |
Resolves path on the model.
|
static ModelPathResolver.ResolvedModelPathResult |
resolveModelPath(Map<String,Object> model,
String path) |
Resolves path on the model.
|
public static ThreadLocal<Map<String,Object>> modelMapThreadLocal
public static ModelPathResolver.ResolvedModelPathResult resolveModelPath(String path)
path - the path to resolvepublic static ModelPathResolver.ResolvedModelPathResult resolveModelPath(Map<String,Object> model, String path)
model - the modelpath - the path to resolveprotected static String getGetter(Object instance, String fieldNameOrGetter)
instance - the instance to search the getter infieldNameOrGetter - the name of the field or method to get the getter forCopyright © 2017–2020 Holisticon AG. All rights reserved.