|
|||||||||||||||||||
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
IBindingSpecification.java | - | - | - | - |
|
1 |
// Copyright 2004, 2005 The Apache Software Foundation
|
|
2 |
//
|
|
3 |
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4 |
// you may not use this file except in compliance with the License.
|
|
5 |
// You may obtain a copy of the License at
|
|
6 |
//
|
|
7 |
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8 |
//
|
|
9 |
// Unless required by applicable law or agreed to in writing, software
|
|
10 |
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12 |
// See the License for the specific language governing permissions and
|
|
13 |
// limitations under the License.
|
|
14 |
|
|
15 |
package org.apache.tapestry.spec;
|
|
16 |
|
|
17 |
import org.apache.hivemind.Locatable;
|
|
18 |
import org.apache.hivemind.LocationHolder;
|
|
19 |
|
|
20 |
/**
|
|
21 |
* Stores a binding specification, which identifies the static value or OGNL expression for the
|
|
22 |
* binding. The name of the binding (which matches a bindable property of the contined component) is
|
|
23 |
* implicitly known.
|
|
24 |
*
|
|
25 |
* @author glongman@intelligentworks.com
|
|
26 |
*/
|
|
27 |
public interface IBindingSpecification extends LocationHolder, Locatable |
|
28 |
{ |
|
29 |
/**
|
|
30 |
* Returns the type of binding specification; this is generally
|
|
31 |
* {@link org.apache.tapestry.spec.BindingType#PREFIXED}.
|
|
32 |
*/
|
|
33 |
|
|
34 |
public BindingType getType();
|
|
35 |
|
|
36 |
/**
|
|
37 |
* For a prefixed binding specification (the typical type), the value is a binding reference; a
|
|
38 |
* string used to contruct the actual binding, and consists of a prefix (such as "ognl:" or
|
|
39 |
* "message:") and a locator. The prefix selects a
|
|
40 |
* {@link org.apache.tapestry.binding.BindingFactory}, and the locator is passed to the
|
|
41 |
* factory, which uses it to construct the {@link org.apache.tapestry.IBinding}instance.
|
|
42 |
*/
|
|
43 |
|
|
44 |
public String getValue();
|
|
45 |
|
|
46 |
public void setType(BindingType type); |
|
47 |
|
|
48 |
public void setValue(String value); |
|
49 |
} |
|