Coverage Report - org.apache.tapestry5.internal.model.ParameterModelImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
ParameterModelImpl
100%
10/10
N/A
1
 
 1  
 // Copyright 2006, 2008 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.tapestry5.internal.model;
 16  
 
 17  
 import org.apache.tapestry5.model.ParameterModel;
 18  
 
 19  
 public class ParameterModelImpl implements ParameterModel
 20  
 {
 21  
     private final String name;
 22  
 
 23  
     private final boolean required;
 24  
 
 25  
     private final boolean allowNull;
 26  
 
 27  
     private final String defaultBindingPrefix;
 28  
 
 29  
     public ParameterModelImpl(String name, boolean required, boolean allowNull, String defaultBindingPrefix)
 30  900
     {
 31  900
         this.name = name;
 32  900
         this.required = required;
 33  900
         this.allowNull = allowNull;
 34  900
         this.defaultBindingPrefix = defaultBindingPrefix;
 35  900
     }
 36  
 
 37  
     public String getName()
 38  
     {
 39  2
         return name;
 40  
     }
 41  
 
 42  
     public boolean isRequired()
 43  
     {
 44  4230
         return required;
 45  
     }
 46  
 
 47  
     public String getDefaultBindingPrefix()
 48  
     {
 49  6456
         return defaultBindingPrefix;
 50  
     }
 51  
 
 52  
     public boolean isAllowNull()
 53  
     {
 54  11503
         return allowNull;
 55  
     }
 56  
 }