Coverage Report - javax.faces.component.UIMessage
 
Classes in this File Line Coverage Branch Coverage Complexity
UIMessage
0%
0/46
0%
0/12
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._UIMessage.
 27  
 //
 28  
 // WARNING: This file was automatically generated. Do not edit it directly,
 29  
 //          or you will lose your changes.
 30  
 public class UIMessage extends javax.faces.component.UIComponentBase
 31  
 {
 32  
 
 33  
     static public final String COMPONENT_FAMILY =
 34  
         "javax.faces.Message";
 35  
     static public final String COMPONENT_TYPE =
 36  
         "javax.faces.Message";
 37  
 
 38  
 
 39  
     public UIMessage()
 40  0
     {
 41  0
         setRendererType("javax.faces.Message");
 42  0
     }
 43  
 
 44  
     @Override    
 45  
     public String getFamily()
 46  
     {
 47  0
         return COMPONENT_FAMILY;
 48  
     }
 49  
     
 50  
 
 51  
     // Property: for
 52  
     private String _for;
 53  
     
 54  
     public String getFor()
 55  
     {
 56  0
         if (_for != null)
 57  
         {
 58  0
             return _for;
 59  
         }
 60  0
         ValueExpression vb = getValueExpression("for");
 61  0
         if (vb != null)
 62  
         {
 63  0
             return (String) vb.getValue(getFacesContext().getELContext());
 64  
         }
 65  0
         return null;
 66  
     }
 67  
 
 68  
     public void setFor(String forParam)
 69  
     {
 70  0
         this._for = forParam;
 71  0
     }
 72  
     // Property: showDetail
 73  
     private boolean _showDetail;
 74  
     
 75  
     private boolean _showDetailSet;
 76  
     
 77  
     public boolean isShowDetail()
 78  
     {
 79  0
         if (_showDetailSet)
 80  
         {
 81  0
             return _showDetail;
 82  
         }
 83  0
         ValueExpression vb = getValueExpression("showDetail");
 84  0
         if (vb != null)
 85  
         {
 86  0
             return ((Boolean) vb.getValue(getFacesContext().getELContext())).booleanValue();
 87  
         }
 88  0
         return true; 
 89  
     }
 90  
 
 91  
     public void setShowDetail(boolean showDetail)
 92  
     {
 93  0
         this._showDetail = showDetail;
 94  0
         this._showDetailSet = true;        
 95  0
     }
 96  
     // Property: showSummary
 97  
     private boolean _showSummary;
 98  
     
 99  
     private boolean _showSummarySet;
 100  
     
 101  
     public boolean isShowSummary()
 102  
     {
 103  0
         if (_showSummarySet)
 104  
         {
 105  0
             return _showSummary;
 106  
         }
 107  0
         ValueExpression vb = getValueExpression("showSummary");
 108  0
         if (vb != null)
 109  
         {
 110  0
             return ((Boolean) vb.getValue(getFacesContext().getELContext())).booleanValue();
 111  
         }
 112  0
         return false; 
 113  
     }
 114  
 
 115  
     public void setShowSummary(boolean showSummary)
 116  
     {
 117  0
         this._showSummary = showSummary;
 118  0
         this._showSummarySet = true;        
 119  0
     }
 120  
 
 121  
     @Override
 122  
     public Object saveState(FacesContext facesContext)
 123  
     {
 124  0
         Object[] values = new Object[6];
 125  0
         values[0] = super.saveState(facesContext);
 126  0
         values[1] = _for;
 127  0
         values[2] = Boolean.valueOf(_showDetail);
 128  0
         values[3] = Boolean.valueOf(_showDetailSet);
 129  0
         values[4] = Boolean.valueOf(_showSummary);
 130  0
         values[5] = Boolean.valueOf(_showSummarySet);
 131  0
         return values; 
 132  
     }
 133  
 
 134  
     @Override
 135  
     public void restoreState(FacesContext facesContext, Object state)
 136  
     {
 137  0
         Object[] values = (Object[])state;
 138  0
         super.restoreState(facesContext,values[0]);
 139  0
         _for = (java.lang.String) values[1];
 140  0
         _showDetail = ((Boolean) values[2]).booleanValue();
 141  0
         _showDetailSet = ((Boolean) values[3]).booleanValue();
 142  0
         _showSummary = ((Boolean) values[4]).booleanValue();
 143  0
         _showSummarySet = ((Boolean) values[5]).booleanValue();
 144  0
     }
 145  
 }