org.apache.tapestry.spec
Class BindingSpecification
java.lang.Object
org.apache.hivemind.impl.BaseLocatable
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
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 |
BindingSpecification
public BindingSpecification()
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
IBinding
instance.
- 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.