|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.makumba.analyser.PageCache
public class PageCache
Cache for the page analysis. It is passed along during analysis and holds useful caches. This class provides two methods to add/retrieve caches throughout the analysis process.
| Constructor Summary | |
|---|---|
PageCache()
|
|
| Method Summary | |
|---|---|
void |
cache(String cacheName,
Object key,
Object value)
Caches an object in a specific cache |
void |
cacheSetValues(String cacheName,
Object[] value)
Caches several objects in a specific cache, using sets, i.e. not keeping duplicate values. |
Object |
retrieve(String cacheName,
Object key)
Retrieves an object of a specific cache |
Map<Object,Object> |
retrieveCache(String cacheName)
Gets a whole cache |
org.apache.commons.collections.set.ListOrderedSet |
retrieveSetValues(String cacheName)
Retrieves a set from a specific set cache. |
String |
toString()
|
String |
toString(String key)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PageCache()
| Method Detail |
|---|
public void cache(String cacheName,
Object key,
Object value)
cacheName - the name of the cache we want to work withkey - the key of the object in this cachevalue - the value of the object to be cached
public Object retrieve(String cacheName,
Object key)
cacheName - the name of the cache we want to work withkey - the key of the object in this cache
null if no entry existspublic Map<Object,Object> retrieveCache(String cacheName)
cacheName - the name of the cache
public void cacheSetValues(String cacheName,
Object[] value)
public org.apache.commons.collections.set.ListOrderedSet retrieveSetValues(String cacheName)
public String toString()
toString in class Objectpublic String toString(String key)
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||