Coverage Report - org.apache.tapestry5.internal.util.ValidationDecoratorWrapper
 
Classes in this File Line Coverage Branch Coverage Complexity
ValidationDecoratorWrapper
100%
15/15
N/A
1
 
 1  
 //  Copyright 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.util;
 16  
 
 17  
 import org.apache.tapestry5.Field;
 18  
 import org.apache.tapestry5.ValidationDecorator;
 19  
 import org.apache.tapestry5.dom.Element;
 20  
 
 21  
 /**
 22  
  * Implementation of {@link org.apache.tapestry5.ValidationDecorator} that delegates all method invocations. Subclasses
 23  
  * may override any of the methods.
 24  
  */
 25  
 public class ValidationDecoratorWrapper implements ValidationDecorator
 26  
 {
 27  
     private final ValidationDecorator delegate;
 28  
 
 29  
     public ValidationDecoratorWrapper(ValidationDecorator delegate)
 30  364
     {
 31  364
         this.delegate = delegate;
 32  364
     }
 33  
 
 34  
     public void beforeLabel(Field field)
 35  
     {
 36  574
         delegate.beforeLabel(field);
 37  574
     }
 38  
 
 39  
     public void insideLabel(Field field, Element labelElement)
 40  
     {
 41  574
         delegate.insideLabel(field, labelElement);
 42  574
     }
 43  
 
 44  
     public void afterLabel(Field field)
 45  
     {
 46  574
         delegate.afterLabel(field);
 47  574
     }
 48  
 
 49  
     public void beforeField(Field field)
 50  
     {
 51  840
         delegate.beforeField(field);
 52  840
     }
 53  
 
 54  
     public void insideField(Field field)
 55  
     {
 56  692
         delegate.insideField(field);
 57  692
     }
 58  
 
 59  
     public void afterField(Field field)
 60  
     {
 61  840
         delegate.afterField(field);
 62  840
     }
 63  
 }