|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tapestry.binding.AbstractBinding
org.apache.tapestry.binding.StaticBinding
public class StaticBinding
Stores a static (invariant) String as the value.
It may be useful to cache static bindings the way FieldBindings are cached.
| Constructor Summary | |
|---|---|
StaticBinding(String value,
ILocation location)
|
|
| Method Summary | |
|---|---|
double |
getDouble()
Interprets the static value as a double. |
int |
getInt()
Interprets the static value as an integer. |
Object |
getObject()
Returns the value of this binding. |
String |
getString()
Gets the value for the binding. |
String |
toString()
|
| Methods inherited from class org.apache.tapestry.binding.AbstractBinding |
|---|
createReadOnlyBindingException, getBoolean, getLocation, getObject, isInvariant, isWrapper, setBoolean, setDouble, setInt, setObject, setString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StaticBinding(String value,
ILocation location)
| Method Detail |
|---|
public int getInt()
getInt in interface IBindinggetInt in class AbstractBindingpublic double getDouble()
getDouble in interface IBindinggetDouble in class AbstractBindingpublic String getString()
AbstractBindingtoString()) version of
the value.
getString in interface IBindinggetString in class AbstractBindingpublic Object getObject()
IBinding
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||