protected static class AbstractPojoPathNavigator.PojoPathState extends Object
PojoPath
evaluation.Modifier and Type | Field and Description |
---|---|
private Map<String,AbstractPojoPathNavigator.CachingPojoPath> |
cache
|
private boolean |
cachingDisabled |
private PojoPathMode |
mode |
private String |
pojoPath |
private AbstractPojoPathNavigator.CachingPojoPath |
rootPath
The root path.
|
Modifier | Constructor and Description |
---|---|
protected |
PojoPathState(AbstractPojoPathNavigator.CachingPojoPath rootPath,
PojoPathMode mode,
String pojoPath)
The constructor for no caching.
|
protected |
PojoPathState(AbstractPojoPathNavigator.CachingPojoPath rootPath,
PojoPathMode mode,
String pojoPath,
Map<String,AbstractPojoPathNavigator.CachingPojoPath> cache)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
AbstractPojoPathNavigator.CachingPojoPath |
getCachedPath(String currentPojoPath)
This method gets the
AbstractPojoPathNavigator.CachingPojoPath from the cache. |
PojoPathMode |
getMode()
This method gets the
PojoPathMode that determines how to deal with null -values. |
String |
getPojoPath() |
AbstractPojoPathNavigator.CachingPojoPath |
getRootPath() |
boolean |
isCachingDisabled()
This method determines if this cache has been
disabled . |
boolean |
isGetType()
This method determines if we have been invoked from
getType . |
void |
removeCachedPath(String currentPojoPath)
This method removes a
AbstractPojoPathNavigator.CachingPojoPath from the cache. |
void |
setCachedPath(String currentPojoPath,
AbstractPojoPathNavigator.CachingPojoPath evaluatedPojoPath)
This method stored a
AbstractPojoPathNavigator.CachingPojoPath in the cache. |
void |
setCachingDisabled()
This method disables further
caching . |
private final Map<String,AbstractPojoPathNavigator.CachingPojoPath> cache
private AbstractPojoPathNavigator.CachingPojoPath rootPath
private final PojoPathMode mode
private final String pojoPath
private boolean cachingDisabled
protected PojoPathState(AbstractPojoPathNavigator.CachingPojoPath rootPath, PojoPathMode mode, String pojoPath)
protected PojoPathState(AbstractPojoPathNavigator.CachingPojoPath rootPath, PojoPathMode mode, String pojoPath, Map<String,AbstractPojoPathNavigator.CachingPojoPath> cache)
public AbstractPojoPathNavigator.CachingPojoPath getCachedPath(String currentPojoPath)
AbstractPojoPathNavigator.CachingPojoPath
from the cache.currentPojoPath
- is the PojoPath
to lookup.AbstractPojoPathNavigator.CachingPojoPath
or null
if NOT (yet) cached.public void setCachedPath(String currentPojoPath, AbstractPojoPathNavigator.CachingPojoPath evaluatedPojoPath)
AbstractPojoPathNavigator.CachingPojoPath
in the cache. This method will do nothing if this state is
disabled
.currentPojoPath
- is the PojoPath
leading to the given pojo
.evaluatedPojoPath
- is the AbstractPojoPathNavigator.CachingPojoPath
that has been evaluated and should be cached.public void removeCachedPath(String currentPojoPath)
AbstractPojoPathNavigator.CachingPojoPath
from the cache. This method will do nothing if this state is
disabled
.currentPojoPath
- is the PojoPath
to purge from the cache.public AbstractPojoPathNavigator.CachingPojoPath getRootPath()
public PojoPathMode getMode()
PojoPathMode
that determines how to deal with null
-values.public String getPojoPath()
public boolean isGetType()
getType
.true
if invoked via getType, false
if invoked from get
or set
.public boolean isCachingDisabled()
disabled
.true
if this cache is disabled, false
otherwise.public void setCachingDisabled()
caching
.Copyright © 2001–2016 mmm-Team. All rights reserved.