|
||||||||||
| 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 IBindingimplementations.
| Constructor Summary | |
|---|---|
protected |
AbstractBinding(String description,
ValueConverter valueConverter,
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. |
Location |
getLocation()
|
Object |
getObject(Class type)
Returns the value for the binding after performing some basic checks. |
ValueConverter |
getValueConverter()
|
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 |
| Constructor Detail |
|---|
protected AbstractBinding(String description,
ValueConverter valueConverter,
Location location)
| Method Detail |
|---|
public Location getLocation()
getLocation in interface Locatablepublic void setObject(Object value)
setObject in interface IBindingReadOnlyBindingException - always.public boolean isInvariant()
isInvariant in interface IBindingpublic Object getObject(Class type)
IBindingNote: In release 4.0, the parameterName parameter was removed.
getObject in interface IBindingtype - if not null, the value must be assignable to the specific classpublic Object getComponent()
protected BindingException createReadOnlyBindingException(IBinding binding)
public String getDescription()
IBinding
getDescription in interface IBindingpublic ValueConverter getValueConverter()
public String toString()
toString in class Objectprotected void extendDescription(StringBuffer buffer)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||