|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.specrunner.parameters.core.AccessImpl
public class AccessImpl
Default implementation of IAccess.
| Constructor Summary | |
|---|---|
AccessImpl(Field field)
Basic filed access constructor. |
|
AccessImpl(Method method)
Basic method access constructor. |
|
AccessImpl(PropertyDescriptor property)
Basic bean access constructor. |
|
| 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. |
protected Annotation[] |
getMethodAnnotations(Method method)
Get annotation for methods. |
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. |
String |
toString()
|
boolean |
valid(Object target,
String name,
Object... args)
Check if the given arguments are compatible with the feature named. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AccessImpl(Field field)
field - The field.public AccessImpl(PropertyDescriptor property)
property - The bean property.public AccessImpl(Method method)
method - The method.| Method Detail |
|---|
public void set(Object target,
String name,
Object... args)
throws Exception
IAccess
set in interface IAccesstarget - The target object.name - The feature reference.args - The arguments.
Exception - On processing errors.protected Annotation[] getMethodAnnotations(Method method)
method - The write method.
public Object get(Object target,
String name,
Object... args)
throws Exception
IAccess
get in interface IAccesstarget - The target object.name - The feature reference.args - The arguments, if any.
Exception - On processing errors.
public boolean valid(Object target,
String name,
Object... args)
IAccess
valid in interface IAccesstarget - The target object.name - The feature reference.args - The arguments.
public Class<?>[] expected(Object target,
String name,
Object... args)
IAccess
expected in interface IAccesstarget - The target object.name - The feature reference.args - The arguments.
public boolean hasFeature()
IAccess
hasFeature in interface IAccesspublic Annotation[] getAnnotations()
IAccess
getAnnotations in interface IAccesspublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||