|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tapestry.binding.AbstractBinding
public abstract class AbstractBinding
Base class for IBinding
implementations.
Field Summary | |
---|---|
protected String |
_description
|
Constructor Summary | |
---|---|
protected |
AbstractBinding(String description,
ValueConverter valueConverter,
org.apache.hivemind.Location location)
|
Method Summary | |
---|---|
protected BindingException |
createReadOnlyBindingException(IBinding binding)
|
protected void |
extendDescription(StringBuffer buffer)
Does nothing, subclasses may override to add additional information. |
Object |
getComponent()
Returns the component to which this binding is connected; this is currently only used when building certain exceptions. |
String |
getDescription()
Returns a description of how the binding is used; this description is localized and incorporated into some exception messages. |
org.apache.hivemind.Location |
getLocation()
|
Object |
getObject(Class type)
Returns the value for the binding after performing some basic checks. |
ValueConverter |
getValueConverter()
Gets the converter used to coerce binding values in to their target types. |
boolean |
isInvariant()
Default implementation: returns true. |
void |
setObject(Object value)
Overridden in subclasses that are not invariant. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.tapestry.IBinding |
---|
getObject |
Field Detail |
---|
protected final String _description
Constructor Detail |
---|
protected AbstractBinding(String description, ValueConverter valueConverter, org.apache.hivemind.Location location)
Method Detail |
---|
public org.apache.hivemind.Location getLocation()
getLocation
in interface org.apache.hivemind.Locatable
public void setObject(Object value)
setObject
in interface IBinding
public boolean isInvariant()
isInvariant
in interface IBinding
public Object getObject(Class type)
IBinding
Note: In release 4.0, the parameterName parameter was removed.
getObject
in interface IBinding
type
- if not null, the value must be assignable to the specific classpublic Object getComponent()
IComponent
object this binding is set against.protected BindingException createReadOnlyBindingException(IBinding binding)
public String getDescription()
IBinding
getDescription
in interface IBinding
public ValueConverter getValueConverter()
ValueConverter
being used by this binding.public String toString()
toString
in class Object
protected void extendDescription(StringBuffer buffer)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |