|
|||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| BindingType.java | - | 50% | 50% | 50% |
|
||||||||||||||
| 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 | /** | |
| 18 | * Defines the different types of bindings possible for a component. These are used in the | |
| 19 | * {@link IBindingSpecification} and ultimately used to create an instance of | |
| 20 | * {@link org.apache.tapestry.IBinding}. | |
| 21 | * | |
| 22 | * @author Howard Lewis Ship | |
| 23 | */ | |
| 24 | ||
| 25 | public final class BindingType | |
| 26 | { | |
| 27 | /** | |
| 28 | * Indicates that the binding value is a prefixed locator, ready for use with | |
| 29 | * {@link org.apache.tapestry.binding.BindingSource}. | |
| 30 | */ | |
| 31 | ||
| 32 | public static final BindingType PREFIXED = new BindingType("PREFIXED"); | |
| 33 | ||
| 34 | public static final BindingType INHERITED = new BindingType("INHERITED"); | |
| 35 | ||
| 36 | private final String _name; | |
| 37 | ||
| 38 | 6 | private BindingType(String name) |
| 39 | { | |
| 40 | 6 | _name = name; |
| 41 | } | |
| 42 | ||
| 43 | 0 | public String toString() |
| 44 | { | |
| 45 | 0 | return "BindingType[" + _name + "]"; |
| 46 | } | |
| 47 | } |
|
||||||||||