|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.mmm.util.pojo.path.base.AbstractPojoPathNavigator.PojoPathState
protected static class AbstractPojoPathNavigator.PojoPathState
This inner class represents the state for a
PojoPath evaluation.
| Field Summary | |
|---|---|
private Map<String,AbstractPojoPathNavigator.CachingPojoPath> |
cache
The actual cache that maps a PojoPath to
the resulting Pojo. |
private boolean |
cachingDisabled
|
private PojoPathMode |
mode
|
private String |
pojoPath
|
private AbstractPojoPathNavigator.CachingPojoPath |
rootPath
The root path. |
| Constructor Summary | |
|---|---|
protected |
AbstractPojoPathNavigator.PojoPathState(AbstractPojoPathNavigator.CachingPojoPath rootPath,
PojoPathMode mode,
String pojoPath)
The constructor for no caching. |
protected |
AbstractPojoPathNavigator.PojoPathState(AbstractPojoPathNavigator.CachingPojoPath rootPath,
PojoPathMode mode,
String pojoPath,
Map<String,AbstractPojoPathNavigator.CachingPojoPath> cache)
The constructor. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final Map<String,AbstractPojoPathNavigator.CachingPojoPath> cache
PojoPath to
the resulting Pojo.
private AbstractPojoPathNavigator.CachingPojoPath rootPath
private final PojoPathMode mode
getMode()private final String pojoPath
getPojoPath()private boolean cachingDisabled
setCachingDisabled()| Constructor Detail |
|---|
protected AbstractPojoPathNavigator.PojoPathState(AbstractPojoPathNavigator.CachingPojoPath rootPath,
PojoPathMode mode,
String pojoPath)
rootPath - is the PojoPath
with the initial Pojo.mode - is the mode that determines how to deal
null values.pojoPath - is the pojo-path.
protected AbstractPojoPathNavigator.PojoPathState(AbstractPojoPathNavigator.CachingPojoPath rootPath,
PojoPathMode mode,
String pojoPath,
Map<String,AbstractPojoPathNavigator.CachingPojoPath> cache)
rootPath - is the PojoPath
with the initial Pojo.mode - is the mode that determines how to deal
null values.pojoPath - is the pojo-path.cache - is the underlying Map used for caching.| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||