001 // Copyright 2004, 2005 The Apache Software Foundation 002 // 003 // Licensed under the Apache License, Version 2.0 (the "License"); 004 // you may not use this file except in compliance with the License. 005 // You may obtain a copy of the License at 006 // 007 // http://www.apache.org/licenses/LICENSE-2.0 008 // 009 // Unless required by applicable law or agreed to in writing, software 010 // distributed under the License is distributed on an "AS IS" BASIS, 011 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 012 // See the License for the specific language governing permissions and 013 // limitations under the License. 014 015 package org.apache.tapestry.spec; 016 017 import org.apache.hivemind.impl.BaseLocatable; 018 019 /** 020 * Stores a binding specification, which identifies the static value 021 * or OGNL expression for the binding. The name of the binding (which 022 * matches a bindable property of the contined component) is implicitly known. 023 * 024 * @author Howard Lewis Ship 025 * 026 **/ 027 028 public class BindingSpecification extends BaseLocatable implements IBindingSpecification 029 { 030 private BindingType _type; 031 private String _value; 032 033 public BindingType getType() 034 { 035 return _type; 036 } 037 038 public String getValue() 039 { 040 return _value; 041 } 042 043 public void setType(BindingType type) 044 { 045 _type = type; 046 } 047 048 public void setValue(String value) 049 { 050 _value = value; 051 } 052 }