|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HierarchicalRepository<T>
allows objects to be mapped against a regex pattern and held in order in a list
| Method Summary | |
|---|---|
void |
addMatch(java.lang.String match,
T value)
Add a new match to the repository |
T |
getMatch(java.lang.String match)
return the value held against the nearest match |
void |
registerListener(HierarchicalRepositoryChangeListener listener)
register a listener to listen for changes in the repository |
void |
removeMatch(java.lang.String match)
remove a match from the repository |
void |
setDefault(T defaultValue)
set the default value to fallback to if none found |
void |
unRegisterListener(HierarchicalRepositoryChangeListener listener)
unregister a listener |
| Method Detail |
|---|
void addMatch(java.lang.String match,
T value)
match - The regex to use to match againstvalue - the value to hold agains the matchT getMatch(java.lang.String match)
match - the match to look for
void setDefault(T defaultValue)
defaultValue - the valuevoid removeMatch(java.lang.String match)
match - the match to removevoid registerListener(HierarchicalRepositoryChangeListener listener)
listener - void unRegisterListener(HierarchicalRepositoryChangeListener listener)
listener -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||