|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ParameterAccess
A wrapper around a named parameter provided by InternalComponentResources. The
parameter may be bound or unbound.
| Method Summary | ||
|---|---|---|
Class |
getBoundType()
Returns the actual type of the bound parameter, or null if the parameter is not bound. |
|
boolean |
isBound()
Is the parameter bound? |
|
boolean |
isInvariant()
Returns true if the binding is bound, and the binding is invariant. |
|
|
read(Class<T> expectedType)
Reads the value of a parameter, via the parameter's Binding. |
|
Object |
read(String desiredTypeName)
Reads the current value of the parameter via the parameter's Binding. |
|
|
write(T parameterValue)
Updates the parameter to a new value. |
|
| Methods inherited from interface org.apache.tapestry5.ioc.AnnotationProvider |
|---|
getAnnotation |
| Method Detail |
|---|
boolean isBound()
Object read(String desiredTypeName)
Binding. This method is
intended for use from generated code (where it is easier to specify the type as a name than a Class instance).
desiredTypeName - the fully qualified name of the Java type to coerce the result to
NullPointerException - if the parameter's value is null and null is not allowed<T> T read(Class<T> expectedType)
Binding.
T - expectedType - the expected type of parameter
<T> void write(T parameterValue)
T - parameterValue - new value for parameterboolean isInvariant()
Binding.isInvariant()Class getBoundType()
Binding.getBindingType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||