Coverage Report - org.apache.myfaces.taglib.html.HtmlOutputFormatTag
 
Classes in this File Line Coverage Branch Coverage Complexity
HtmlOutputFormatTag
0%
0/56
0%
0/22
0
 
 1  
 // WARNING: This file was automatically generated. Do not edit it directly,
 2  
 //          or you will lose your changes.
 3  
 /*
 4  
  *  Licensed to the Apache Software Foundation (ASF) under one
 5  
  *  or more contributor license agreements.  See the NOTICE file
 6  
  *  distributed with this work for additional information
 7  
  *  regarding copyright ownership.  The ASF licenses this file
 8  
  *  to you under the Apache License, Version 2.0 (the
 9  
  *  "License"); you may not use this file except in compliance
 10  
  *  with the License.  You may obtain a copy of the License at
 11  
  * 
 12  
  *  http://www.apache.org/licenses/LICENSE-2.0
 13  
  * 
 14  
  *  Unless required by applicable law or agreed to in writing,
 15  
  *  software distributed under the License is distributed on an
 16  
  *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 17  
  *  KIND, either express or implied.  See the License for the
 18  
  *  specific language governing permissions and limitations
 19  
  *  under the License.
 20  
  */
 21  
 package org.apache.myfaces.taglib.html;
 22  
 
 23  
 import javax.faces.component.UIComponent;
 24  
 import javax.el.ValueExpression;
 25  
 import javax.el.MethodExpression;
 26  
 import javax.faces.component.UIComponent;
 27  
 import javax.faces.convert.Converter;
 28  
 
 29  
 
 30  
 // Generated from class javax.faces.component.html._HtmlOutputFormat.
 31  
 //
 32  
 // WARNING: This file was automatically generated. Do not edit it directly,
 33  
 //          or you will lose your changes.
 34  
 public class HtmlOutputFormatTag
 35  
     extends javax.faces.webapp.UIComponentELTag
 36  
 {
 37  
     public HtmlOutputFormatTag()
 38  0
     {    
 39  0
     }
 40  
     
 41  
     @Override
 42  
     public String getComponentType()
 43  
     {
 44  0
         return "javax.faces.HtmlOutputFormat";
 45  
     }
 46  
 
 47  
     public String getRendererType()
 48  
     {
 49  0
         return "javax.faces.Format";
 50  
     }
 51  
 
 52  
     private ValueExpression _style;
 53  
     
 54  
     public void setStyle(ValueExpression style)
 55  
     {
 56  0
         _style = style;
 57  0
     }
 58  
     private ValueExpression _styleClass;
 59  
     
 60  
     public void setStyleClass(ValueExpression styleClass)
 61  
     {
 62  0
         _styleClass = styleClass;
 63  0
     }
 64  
     private ValueExpression _title;
 65  
     
 66  
     public void setTitle(ValueExpression title)
 67  
     {
 68  0
         _title = title;
 69  0
     }
 70  
     private ValueExpression _escape;
 71  
     
 72  
     public void setEscape(ValueExpression escape)
 73  
     {
 74  0
         _escape = escape;
 75  0
     }
 76  
     private ValueExpression _dir;
 77  
     
 78  
     public void setDir(ValueExpression dir)
 79  
     {
 80  0
         _dir = dir;
 81  0
     }
 82  
     private ValueExpression _lang;
 83  
     
 84  
     public void setLang(ValueExpression lang)
 85  
     {
 86  0
         _lang = lang;
 87  0
     }
 88  
     private ValueExpression _value;
 89  
     
 90  
     public void setValue(ValueExpression value)
 91  
     {
 92  0
         _value = value;
 93  0
     }
 94  
     private ValueExpression _converter;
 95  
     
 96  
     public void setConverter(ValueExpression converter)
 97  
     {
 98  0
         _converter = converter;
 99  0
     }
 100  
 
 101  
     @Override
 102  
     protected void setProperties(UIComponent component)
 103  
     {
 104  0
         if (!(component instanceof javax.faces.component.html.HtmlOutputFormat ))
 105  
         {
 106  0
             throw new IllegalArgumentException("Component "+
 107  
                 component.getClass().getName() +" is no javax.faces.component.html.HtmlOutputFormat");
 108  
         }
 109  
         
 110  0
         javax.faces.component.html.HtmlOutputFormat comp = (javax.faces.component.html.HtmlOutputFormat) component;
 111  
         
 112  0
         super.setProperties(component);
 113  
         
 114  
 
 115  0
         if (_style != null)
 116  
         {
 117  0
             comp.setValueExpression("style", _style);
 118  
         } 
 119  0
         if (_styleClass != null)
 120  
         {
 121  0
             comp.setValueExpression("styleClass", _styleClass);
 122  
         } 
 123  0
         if (_title != null)
 124  
         {
 125  0
             comp.setValueExpression("title", _title);
 126  
         } 
 127  0
         if (_escape != null)
 128  
         {
 129  0
             comp.setValueExpression("escape", _escape);
 130  
         } 
 131  0
         if (_dir != null)
 132  
         {
 133  0
             comp.setValueExpression("dir", _dir);
 134  
         } 
 135  0
         if (_lang != null)
 136  
         {
 137  0
             comp.setValueExpression("lang", _lang);
 138  
         } 
 139  0
         if (_value != null)
 140  
         {
 141  0
             comp.setValueExpression("value", _value);
 142  
         } 
 143  0
         if (_converter != null)
 144  
         {
 145  0
             if (!_converter.isLiteralText())
 146  
             {
 147  0
                 comp.setValueExpression("converter", _converter);
 148  
             }
 149  
             else
 150  
             {
 151  0
                 String s = _converter.getExpressionString();
 152  0
                 if (s != null)
 153  
                 {            
 154  0
                     Converter converter = getFacesContext().getApplication().createConverter(s);
 155  0
                     comp.setConverter(converter);
 156  
                 }
 157  
             }
 158  
         }
 159  0
     }
 160  
 
 161  
     @Override
 162  
     public void release()
 163  
     {
 164  0
         super.release();
 165  0
         _style = null;
 166  0
         _styleClass = null;
 167  0
         _title = null;
 168  0
         _escape = null;
 169  0
         _dir = null;
 170  0
         _lang = null;
 171  0
         _value = null;
 172  0
         _converter = null;
 173  0
     }
 174  
 }