|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.Dictionary | +--java.util.Hashtable | +--org.apache.ecs.StringFilter
Stupid implementation of Filter interface to demonstrate how easy
it is to create your own filters. This should NOT be used in/for
anything real. Anyone want to implement a regex filter?
Fields inherited from class java.util.Hashtable |
count,
ENTRIES,
entrySet,
KEYS,
keySet,
loadFactor,
modCount,
serialVersionUID,
table,
threshold,
values,
VALUES |
Constructor Summary | |
StringFilter()
|
Method Summary | |
Filter |
addAttribute(java.lang.String attribute,
java.lang.Object entity)
Put a filter somewhere we can get to it. |
java.lang.String |
getInfo()
Returns the name of the filter |
boolean |
hasAttribute(java.lang.String attribute)
Does the filter filter this? |
java.lang.String |
process(java.lang.String to_process)
this method actually performs the filtering. |
Filter |
removeAttribute(java.lang.String attribute)
Get rid of a current filter. |
private java.lang.String[] |
split(java.lang.String to_split)
Need a way to parse the stream so we can do string comparisons instead of character comparisons. |
Methods inherited from class java.util.Hashtable |
clear,
clone,
contains,
containsKey,
containsValue,
elements,
entrySet,
equals,
get,
hashCode,
isEmpty,
keys,
keySet,
put,
putAll,
readObject,
rehash,
remove,
size,
toString,
values,
writeObject |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public StringFilter()
Method Detail |
public java.lang.String getInfo()
public java.lang.String process(java.lang.String to_process)
public Filter addAttribute(java.lang.String attribute, java.lang.Object entity)
public Filter removeAttribute(java.lang.String attribute)
public boolean hasAttribute(java.lang.String attribute)
private java.lang.String[] split(java.lang.String to_split)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |