Coverage Report - javax.faces.component.UIParameter
 
Classes in this File Line Coverage Branch Coverage Complexity
UIParameter
0%
0/32
0%
0/8
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.component;
 20  
 
 21  
 import javax.el.ValueExpression;
 22  
 import javax.faces.context.FacesContext;
 23  
 import javax.faces.component.UIComponent;
 24  
 
 25  
 
 26  
 // Generated from class javax.faces.component._UIParameter.
 27  
 //
 28  
 // WARNING: This file was automatically generated. Do not edit it directly,
 29  
 //          or you will lose your changes.
 30  
 public class UIParameter extends javax.faces.component.UIComponentBase
 31  
 {
 32  
 
 33  
     static public final String COMPONENT_FAMILY =
 34  
         "javax.faces.Parameter";
 35  
     static public final String COMPONENT_TYPE =
 36  
         "javax.faces.Parameter";
 37  
 
 38  
     //BEGIN CODE COPIED FROM javax.faces.component._UIParameter 
 39  
     public void setRendered(boolean state)
 40  
     {
 41  0
       super.setRendered(state);
 42  
       //call parent method due TCK problems
 43  
       //throw new UnsupportedOperationException();
 44  0
   }
 45  
 
 46  
 
 47  
     //END CODE COPIED FROM javax.faces.component._UIParameter
 48  
 
 49  
     public UIParameter()
 50  0
     {
 51  0
         setRendererType(null);
 52  0
     }
 53  
 
 54  
     @Override    
 55  
     public String getFamily()
 56  
     {
 57  0
         return COMPONENT_FAMILY;
 58  
     }
 59  
     
 60  
 
 61  
     // Property: value
 62  
     private Object _value;
 63  
     
 64  
     public Object getValue()
 65  
     {
 66  0
         if (_value != null)
 67  
         {
 68  0
             return _value;
 69  
         }
 70  0
         ValueExpression vb = getValueExpression("value");
 71  0
         if (vb != null)
 72  
         {
 73  0
             return  vb.getValue(getFacesContext().getELContext());
 74  
         }
 75  0
         return null;
 76  
     }
 77  
 
 78  
     public void setValue(Object value)
 79  
     {
 80  0
         this._value = value;
 81  0
     }
 82  
     // Property: name
 83  
     private String _name;
 84  
     
 85  
     public String getName()
 86  
     {
 87  0
         if (_name != null)
 88  
         {
 89  0
             return _name;
 90  
         }
 91  0
         ValueExpression vb = getValueExpression("name");
 92  0
         if (vb != null)
 93  
         {
 94  0
             return (String) vb.getValue(getFacesContext().getELContext());
 95  
         }
 96  0
         return null;
 97  
     }
 98  
 
 99  
     public void setName(String name)
 100  
     {
 101  0
         this._name = name;
 102  0
     }
 103  
 
 104  
     @Override
 105  
     public Object saveState(FacesContext facesContext)
 106  
     {
 107  0
         Object[] values = new Object[3];
 108  0
         values[0] = super.saveState(facesContext);
 109  0
         values[1] = _value;
 110  0
         values[2] = _name;
 111  0
         return values; 
 112  
     }
 113  
 
 114  
     @Override
 115  
     public void restoreState(FacesContext facesContext, Object state)
 116  
     {
 117  0
         Object[] values = (Object[])state;
 118  0
         super.restoreState(facesContext,values[0]);
 119  0
         _value =  values[1];
 120  0
         _name = (java.lang.String) values[2];
 121  0
     }
 122  
 }