Coverage Report - org.apache.myfaces.taglib.core.SelectItemsTag
 
Classes in this File Line Coverage Branch Coverage Complexity
SelectItemsTag
0%
0/46
0%
0/16
1.75
 
 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.core;
 22  
 
 23  
 import javax.faces.component.UIComponent;
 24  
 import javax.el.ValueExpression;
 25  
 import javax.el.MethodExpression;
 26  
 import javax.faces.component.UIComponent;
 27  
 
 28  
 
 29  
 // Generated from class javax.faces.component._UISelectItems.
 30  
 //
 31  
 // WARNING: This file was automatically generated. Do not edit it directly,
 32  
 //          or you will lose your changes.
 33  
 public class SelectItemsTag
 34  
     extends javax.faces.webapp.UIComponentELTag
 35  
 {
 36  
     public SelectItemsTag()
 37  0
     {    
 38  0
     }
 39  
     
 40  
     @Override
 41  
     public String getComponentType()
 42  
     {
 43  0
         return "javax.faces.SelectItems";
 44  
     }
 45  
 
 46  
     public String getRendererType()
 47  
     {
 48  0
         return null;
 49  
     }
 50  
 
 51  
     private ValueExpression _value;
 52  
     
 53  
     public void setValue(ValueExpression value)
 54  
     {
 55  0
         _value = value;
 56  0
     }
 57  
     private java.lang.String _var;
 58  
     
 59  
     public void setVar(java.lang.String var)
 60  
     {
 61  0
         _var = var;
 62  0
     }
 63  
     private ValueExpression _itemValue;
 64  
     
 65  
     public void setItemValue(ValueExpression itemValue)
 66  
     {
 67  0
         _itemValue = itemValue;
 68  0
     }
 69  
     private ValueExpression _itemLabel;
 70  
     
 71  
     public void setItemLabel(ValueExpression itemLabel)
 72  
     {
 73  0
         _itemLabel = itemLabel;
 74  0
     }
 75  
     private ValueExpression _itemDescription;
 76  
     
 77  
     public void setItemDescription(ValueExpression itemDescription)
 78  
     {
 79  0
         _itemDescription = itemDescription;
 80  0
     }
 81  
     private ValueExpression _itemDisabled;
 82  
     
 83  
     public void setItemDisabled(ValueExpression itemDisabled)
 84  
     {
 85  0
         _itemDisabled = itemDisabled;
 86  0
     }
 87  
     private ValueExpression _itemLabelEscaped;
 88  
     
 89  
     public void setItemLabelEscaped(ValueExpression itemLabelEscaped)
 90  
     {
 91  0
         _itemLabelEscaped = itemLabelEscaped;
 92  0
     }
 93  
 
 94  
     @Override
 95  
     protected void setProperties(UIComponent component)
 96  
     {
 97  0
         if (!(component instanceof javax.faces.component.UISelectItems ))
 98  
         {
 99  0
             throw new IllegalArgumentException("Component "+
 100  
                 component.getClass().getName() +" is no javax.faces.component.UISelectItems");
 101  
         }
 102  
         
 103  0
         javax.faces.component.UISelectItems comp = (javax.faces.component.UISelectItems) component;
 104  
         
 105  0
         super.setProperties(component);
 106  
         
 107  
 
 108  0
         if (_value != null)
 109  
         {
 110  0
             comp.setValueExpression("value", _value);
 111  
         } 
 112  0
         if (_var != null)
 113  
         {
 114  0
             comp.getAttributes().put("var", _var);
 115  
         } 
 116  0
         if (_itemValue != null)
 117  
         {
 118  0
             comp.setValueExpression("itemValue", _itemValue);
 119  
         } 
 120  0
         if (_itemLabel != null)
 121  
         {
 122  0
             comp.setValueExpression("itemLabel", _itemLabel);
 123  
         } 
 124  0
         if (_itemDescription != null)
 125  
         {
 126  0
             comp.setValueExpression("itemDescription", _itemDescription);
 127  
         } 
 128  0
         if (_itemDisabled != null)
 129  
         {
 130  0
             comp.setValueExpression("itemDisabled", _itemDisabled);
 131  
         } 
 132  0
         if (_itemLabelEscaped != null)
 133  
         {
 134  0
             comp.setValueExpression("itemLabelEscaped", _itemLabelEscaped);
 135  
         } 
 136  0
     }
 137  
 
 138  
     @Override
 139  
     public void release()
 140  
     {
 141  0
         super.release();
 142  0
         _value = null;
 143  0
         _var = null;
 144  0
         _itemValue = null;
 145  0
         _itemLabel = null;
 146  0
         _itemDescription = null;
 147  0
         _itemDisabled = null;
 148  0
         _itemLabelEscaped = null;
 149  0
     }
 150  
 }