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