Clover coverage report - Code Coverage for tapestry release 4.0-beta-6
Coverage timestamp: Wed Sep 7 2005 18:41:34 EDT
file stats: LOC: 55   Methods: 4
NCLOC: 21   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
ListenerBindingSpecification.java - 100% 100% 100%
coverage
 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    * Special subclass of {@link org.apache.tapestry.spec.BindingSpecification} used
 19    * to encapsulate the additional information
 20    * specific to listener bindings. In a ListenerBindingSpecification, the
 21    * value property is the actual script (and is aliased as property script),
 22    * but an additional property,
 23    * language, (which may be null) is needed. This is the language
 24    * the script is written in.
 25    *
 26    * @author Howard Lewis Ship
 27    * @since 3.0
 28    *
 29    **/
 30   
 31    public class ListenerBindingSpecification extends BindingSpecification implements IListenerBindingSpecification
 32    {
 33    protected String _language;
 34   
 35  4 public ListenerBindingSpecification()
 36    {
 37  4 setType(BindingType.LISTENER);
 38    }
 39   
 40  4 public String getLanguage()
 41    {
 42  4 return _language;
 43    }
 44   
 45  4 public String getScript()
 46    {
 47  4 return getValue();
 48    }
 49   
 50  4 public void setLanguage(String language)
 51    {
 52  4 _language = language;
 53    }
 54   
 55    }