Coverage Report - javax.faces.render.RenderKitWrapper
 
Classes in this File Line Coverage Branch Coverage Complexity
RenderKitWrapper
0%
0/13
N/A
0
 
 1  
 /*
 2  
  * Licensed to the Apache Software Foundation (ASF) under one
 3  
  * or more contributor license agreements.  See the NOTICE file
 4  
  * distributed with this work for additional information
 5  
  * regarding copyright ownership.  The ASF licenses this file
 6  
  * to you under the Apache License, Version 2.0 (the
 7  
  * "License"); you may not use this file except in compliance
 8  
  * with the License.  You may obtain a copy of the License at
 9  
  *
 10  
  *   http://www.apache.org/licenses/LICENSE-2.0
 11  
  *
 12  
  * Unless required by applicable law or agreed to in writing,
 13  
  * software distributed under the License is distributed on an
 14  
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 15  
  * KIND, either express or implied.  See the License for the
 16  
  * specific language governing permissions and limitations
 17  
  * under the License.
 18  
  */
 19  
 package javax.faces.render;
 20  
 
 21  
 import javax.faces.FacesWrapper;
 22  
 import javax.faces.context.ResponseStream;
 23  
 import javax.faces.context.ResponseWriter;
 24  
 import java.io.OutputStream;
 25  
 import java.io.Writer;
 26  
 import java.util.Iterator;
 27  
 
 28  
 /**
 29  
  * <p>
 30  
  *   Provides a simple implementation of RenderKit that can be subclassed by developers wishing 
 31  
  *   to provide specialized behavior to an existing RenderKit instance. The default implementation
 32  
  *   of all methods is to call through to the wrapped RenderKit.
 33  
  * </p>
 34  
  * <p>
 35  
  *   Usage: extend this class and override getWrapped() to return the  wrapped instance.
 36  
  * </p>
 37  
  *
 38  
  * @author Jan-Kees van Andel
 39  
  * @since 2.0
 40  
  */
 41  0
 public abstract class RenderKitWrapper extends RenderKit implements FacesWrapper<RenderKit>
 42  
 {
 43  
     @Override
 44  
     public void addClientBehaviorRenderer(String type, ClientBehaviorRenderer renderer)
 45  
     {
 46  0
         getWrapped().addClientBehaviorRenderer(type,renderer);
 47  0
     }
 48  
     
 49  
     /** {@inheritDoc} */
 50  
     @Override
 51  
     public void addRenderer(String family, String rendererType, Renderer renderer)
 52  
     {
 53  0
         getWrapped().addRenderer(family, rendererType, renderer);
 54  0
     }
 55  
 
 56  
     /** {@inheritDoc} */
 57  
     @Override
 58  
     public ResponseStream createResponseStream(OutputStream out)
 59  
     {
 60  0
         return getWrapped().createResponseStream(out);
 61  
     }
 62  
 
 63  
     /** {@inheritDoc} */
 64  
     @Override
 65  
     public ResponseWriter createResponseWriter(Writer writer, String contentTypeList, String characterEncoding)
 66  
     {
 67  0
         return getWrapped().createResponseWriter(writer, contentTypeList, characterEncoding);
 68  
     }
 69  
 
 70  
     @Override
 71  
     public ClientBehaviorRenderer getClientBehaviorRenderer(String type)
 72  
     {
 73  0
         return getWrapped().getClientBehaviorRenderer(type);
 74  
     }
 75  
     
 76  
     @Override
 77  
     public Iterator<String> getClientBehaviorRendererTypes()
 78  
     {
 79  0
         return getWrapped().getClientBehaviorRendererTypes();
 80  
     }
 81  
     
 82  
     /** {@inheritDoc} */
 83  
     @Override
 84  
     public Renderer getRenderer(String family, String rendererType)
 85  
     {
 86  0
         return getWrapped().getRenderer(family, rendererType);
 87  
     }
 88  
 
 89  
     /** {@inheritDoc} */
 90  
     @Override
 91  
     public ResponseStateManager getResponseStateManager()
 92  
     {
 93  0
         return getWrapped().getResponseStateManager();
 94  
     }
 95  
 
 96  
     /** {@inheritDoc} */
 97  
     public abstract RenderKit getWrapped();
 98  
 
 99  
     /** {@inheritDoc} */
 100  
     @Override
 101  
     public Iterator<String> getComponentFamilies()
 102  
     {
 103  0
         return getWrapped().getComponentFamilies();
 104  
     }
 105  
 
 106  
     /** {@inheritDoc} */
 107  
     @Override
 108  
     public Iterator<String> getRendererTypes(String componentFamily)
 109  
     {
 110  0
         return getWrapped().getRendererTypes(componentFamily);
 111  
     }
 112  
 }