org.apache.tapestry.bean
Class Default
java.lang.Object
org.apache.tapestry.bean.Default
public class Default
- extends Object
A helper bean to assist with providing defaults for unspecified
parameters. It is initalized
with an IBinding
and a default value. It's value property
is either the value of the binding, but if the binding is null,
or the binding returns null, the default value is returned.
- Since:
- 1.0.5
- Author:
- Howard Lewis Ship
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Default
public Default()
resetForPool
public void resetForPool()
setBinding
public void setBinding(IBinding value)
getBinding
public IBinding getBinding()
setDefaultValue
public void setDefaultValue(Object value)
getDefaultValue
public Object getDefaultValue()
getValue
public Object getValue()
- Returns the value of the binding. However, if the binding is null, or the binding
returns null, then the defaultValue is returned instead.
discardFromPool
public void discardFromPool()
- Since:
- 3.0
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.