|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IAccess
Abstraction for object feature access. The features can be a public attribute, a bean property, or a single method.
| Method Summary | |
|---|---|
Class<?>[] |
expected(Object target,
String name,
Object... args)
Get the expected type(s) for a feature. |
Object |
get(Object target,
String name,
Object... args)
Get the feature value. |
Annotation[] |
getAnnotations()
Get the annotation information of a given access. |
boolean |
hasFeature()
Check if access has feature associated or null. |
void |
set(Object target,
String name,
Object... args)
Set the value to a given feature. |
boolean |
valid(Object target,
String name,
Object... args)
Check if the given arguments are compatible with the feature named. |
| Method Detail |
|---|
void set(Object target,
String name,
Object... args)
throws Exception
target - The target object.name - The feature reference.args - The arguments.
Exception - On processing errors.
Object get(Object target,
String name,
Object... args)
throws Exception
target - The target object.name - The feature reference.args - The arguments, if any.
Exception - On processing errors.
boolean valid(Object target,
String name,
Object... args)
target - The target object.name - The feature reference.args - The arguments.
Class<?>[] expected(Object target,
String name,
Object... args)
target - The target object.name - The feature reference.args - The arguments.
boolean hasFeature()
Annotation[] getAnnotations()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||