org.apache.tapestry.binding
Class FieldBinding
java.lang.Object
|
+--org.apache.tapestry.binding.AbstractBinding
|
+--org.apache.tapestry.binding.FieldBinding
- All Implemented Interfaces:
- IBinding, ILocatable
Deprecated. To be removed in 2.5 with no replacement. Can be accomplished using OGNL expressions.
- public class FieldBinding
- extends AbstractBinding
A type of static IBinding
that gets it value from a public field
(static class variable) of some class or interface.
The binding uses a field name, which consists of a fully qualified class name and
a static field of that class seperated by a dot. For example: com.foobar.SomeClass.SOME_FIELD
.
If the class specified is for the java.lang
package, then the package may be
ommitted. This allows Boolean.TRUE
to be recognized as a valid value.
The org.apache.tapestry.IPageSource
maintains a cache of FieldBindings. This means that
each field will be represented by a single binding ... that means that for any field,
the accessValue()
method (which obtains the value for the field using
reflection) will only be invoked once.
- Version:
- $Id: FieldBinding.java,v 1.4 2003/05/28 13:41:37 hlship Exp $
- Author:
- Howard Lewis Ship
Methods inherited from class org.apache.tapestry.binding.AbstractBinding |
createReadOnlyBindingException, getBoolean, getDouble, getInt, getLocation, getObject, getString, isInvariant, isWrapper, setBoolean, setDouble, setInt, setObject, setString |
FieldBinding
public FieldBinding(IResourceResolver resolver,
String fieldName,
ILocation location)
- Deprecated.
toString
public String toString()
- Deprecated.
- Overrides:
toString
in class Object
getObject
public Object getObject()
- Deprecated.
- Description copied from interface:
IBinding
- Returns the value of this binding. This is the essential method. Other methods
get this value and cast or coerce the value.