|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This interface describe the proxy pattern. Resource can be proxied: a given resource can act as if it was some other resource; this interface describe how to access the proxy resource attributes in such cases.
| Method Summary | |
boolean |
definesTargetAttribute(int idx)
Does this shadow object defines the given attribute. |
boolean |
definesTargetAttribute(java.lang.String name)
Does this shadow object defines the given attribute (by name). |
Attribute[] |
getTargetAttributes()
Get the list of attributes shadowed byt htis shadowing resource. |
Resource |
getTargetResource()
Get the resource shadowed by this object. |
java.lang.Object |
getTargetValue(int idx,
java.lang.Object def)
Get a shadowed attribute value. |
java.lang.Object |
getTargetValue(java.lang.String name,
java.lang.Object def)
Get a shadowed attribute value (by name). |
void |
setTargetValue(int idx,
java.lang.Object value)
Set a shadowed attribute value. |
void |
setTargetValue(java.lang.String name,
java.lang.Object def)
Set a shadowed attribute value by name. |
| Method Detail |
public Resource getTargetResource()
public Attribute[] getTargetAttributes()
public java.lang.Object getTargetValue(int idx,
java.lang.Object def)
idx - The index of the shadowed attribute.def - The default return value (if no shadow value defined).
public java.lang.Object getTargetValue(java.lang.String name,
java.lang.Object def)
name - The name of the shadowed attribute.def - The default return value (if no shadow value defined).
public void setTargetValue(int idx,
java.lang.Object value)
idx - The index of the attribute to set.value - Its new value.
public void setTargetValue(java.lang.String name,
java.lang.Object def)
name - The name of the shadowed attribute.value - Its new value.public boolean definesTargetAttribute(int idx)
idx - The index of the shadowed attribute to test.public boolean definesTargetAttribute(java.lang.String name)
name - The name of the target attribute.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||