org.apache.tapestry.binding
Class LiteralBinding

java.lang.Object
  extended by org.apache.tapestry.binding.AbstractBinding
      extended by org.apache.tapestry.binding.LiteralBinding
All Implemented Interfaces:
org.apache.hivemind.Locatable, IBinding

public class LiteralBinding
extends AbstractBinding

Stores a static (invariant) string as the value.

Note: renamed from StaticBinding to LiteralBinding in release 4.0.

Author:
Howard Lewis Ship

Field Summary
 
Fields inherited from class org.apache.tapestry.binding.AbstractBinding
_description
 
Constructor Summary
LiteralBinding(String description, ValueConverter valueConverter, org.apache.hivemind.Location location, String value)
           
 
Method Summary
 Object getObject()
          Returns the value of this binding.
 String toString()
           
 
Methods inherited from class org.apache.tapestry.binding.AbstractBinding
createReadOnlyBindingException, extendDescription, getComponent, getDescription, getLocation, getObject, getValueConverter, isInvariant, setObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LiteralBinding

public LiteralBinding(String description,
                      ValueConverter valueConverter,
                      org.apache.hivemind.Location location,
                      String value)
Method Detail

getObject

public Object getObject()
Description copied from interface: IBinding
Returns the value of this binding. This is the essential method.


toString

public String toString()
Overrides:
toString in class AbstractBinding


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.