org.apache.tapestry.spec
Class BindingSpecification

java.lang.Object
  extended by org.apache.hivemind.impl.BaseLocatable
      extended by org.apache.tapestry.spec.BindingSpecification
All Implemented Interfaces:
org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder, IBindingSpecification

public class BindingSpecification
extends org.apache.hivemind.impl.BaseLocatable
implements IBindingSpecification

Stores a binding specification, which identifies the static value or OGNL expression for the binding. The name of the binding (which matches a bindable property of the contined component) is implicitly known.

Author:
Howard Lewis Ship

Constructor Summary
BindingSpecification()
           
 
Method Summary
 BindingType getType()
          Returns the type of binding specification; this is generally BindingType.PREFIXED.
 String getValue()
          For a prefixed binding specification (the typical type), the value is a binding reference; a string used to contruct the actual binding, and consists of a prefix (such as "ognl:" or "message:") and a locator.
 void setType(BindingType type)
           
 void setValue(String value)
           
 
Methods inherited from class org.apache.hivemind.impl.BaseLocatable
getLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hivemind.LocationHolder
setLocation
 
Methods inherited from interface org.apache.hivemind.Locatable
getLocation
 

Constructor Detail

BindingSpecification

public BindingSpecification()
Method Detail

getType

public BindingType getType()
Description copied from interface: IBindingSpecification
Returns the type of binding specification; this is generally BindingType.PREFIXED.

Specified by:
getType in interface IBindingSpecification

getValue

public String getValue()
Description copied from interface: IBindingSpecification
For a prefixed binding specification (the typical type), the value is a binding reference; a string used to contruct the actual binding, and consists of a prefix (such as "ognl:" or "message:") and a locator. The prefix selects a BindingFactory, and the locator is passed to the factory, which uses it to construct the IBindinginstance.

Specified by:
getValue in interface IBindingSpecification

setType

public void setType(BindingType type)
Specified by:
setType in interface IBindingSpecification

setValue

public void setValue(String value)
Specified by:
setValue in interface IBindingSpecification


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