|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jcreme.filters.NaiveFilterCache
This implementation of the FilterCache interface is naive because for a filter to be valid it must have been explicitly validated. Actually any Filter that equals a registered Filter will be considered valid.
Constructor Summary | |
NaiveFilterCache()
|
Method Summary | |
Filter[] |
getFilters()
Enables access to the filters stored in this instance. |
void |
invalidate(Filter filter)
"Invalidates" the given filter. |
void |
invalidate(java.lang.Object obj)
Invalidates all the filters contained in this class that "accept" the object. |
void |
invalidateAll()
Invalidate all the filters contained in this instance. |
boolean |
isValid(Filter filter)
Tells whether a filter is a "valid" one. |
void |
validate(Filter filter)
Tags the given filter as "valid". |
boolean |
validates(java.lang.Object obj)
This method enables to test whether an Object is accepted by at least one of the Caches present in the FilterCache. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NaiveFilterCache()
Method Detail |
public boolean isValid(Filter filter)
isValid
in interface FilterCache
filter
- The Filter object we want to know about.
public void validate(Filter filter)
validate
in interface FilterCache
filter
- The filter we want to set as "valid".public void invalidate(Filter filter)
invalidate
in interface FilterCache
filter
- The Filter object we want to invalidate.public void invalidate(java.lang.Object obj)
invalidate
in interface FilterCache
obj
- the object to be tested against the Filters present in this
FilterCache.public boolean validates(java.lang.Object obj)
validates
in interface FilterCache
obj
- the object to be tested against the Filters present in this
FilterCache.
public Filter[] getFilters()
FilterCache
getFilters
in interface FilterCache
FilterCache.getFilters()
public void invalidateAll()
FilterCache
invalidateAll
in interface FilterCache
FilterCache.invalidateAll()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |