|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.jaspira.decoration.FilteredDecorator
public abstract class FilteredDecorator
This class defines an abstract boolean decorator.
The decoration, as defined by doDecorate(java.lang.Object, java.lang.String, java.lang.Object) is only performed if qualifies(java.lang.Object) returns true.
| Constructor Summary | |
|---|---|
FilteredDecorator()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
decorate(java.lang.Object owner,
java.lang.String key,
java.lang.Object value)
Performs the decoration if qualifies (owner) yields true. |
abstract java.lang.Object |
doDecorate(java.lang.Object owner,
java.lang.String key,
java.lang.Object value)
Performs the actual decoration. |
abstract boolean |
qualifies(java.lang.Object owner)
The actual filter method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FilteredDecorator()
| Method Detail |
|---|
public final java.lang.Object decorate(java.lang.Object owner,
java.lang.String key,
java.lang.Object value)
decorate in interface Decoratorowner - Owner of the objectkey - Key under which the decorator is accessedvalue - Object to decorate (also passed to the DecorationMgr.decorate(java.lang.Object, java.lang.String, java.lang.Object) method)
public abstract java.lang.Object doDecorate(java.lang.Object owner,
java.lang.String key,
java.lang.Object value)
owner - Owner of the objectkey - Key under which the decorator is accessedvalue - Object to decorate (also passed to the DecorationMgr.decorate(java.lang.Object, java.lang.String, java.lang.Object) method)
public abstract boolean qualifies(java.lang.Object owner)
owner - Owner of the object.
This parameter is passed to the DecorationMgr.decorate(java.lang.Object, java.lang.String, java.lang.Object) method.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||