Coverage Report - javax.faces.component.html.HtmlMessages
 
Classes in this File Line Coverage Branch Coverage Complexity
HtmlMessages
0%
0/163
0%
0/60
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.html;
 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.html._HtmlMessages.
 27  
 //
 28  
 // WARNING: This file was automatically generated. Do not edit it directly,
 29  
 //          or you will lose your changes.
 30  
 public class HtmlMessages extends javax.faces.component.UIMessages
 31  
 {
 32  
 
 33  
     static public final String COMPONENT_FAMILY =
 34  
         "javax.faces.Messages";
 35  
     static public final String COMPONENT_TYPE =
 36  
         "javax.faces.HtmlMessages";
 37  
 
 38  
 
 39  
     public HtmlMessages()
 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: layout
 52  
     private String _layout;
 53  
     
 54  
     public String getLayout()
 55  
     {
 56  0
         if (_layout != null)
 57  
         {
 58  0
             return _layout;
 59  
         }
 60  0
         ValueExpression vb = getValueExpression("layout");
 61  0
         if (vb != null)
 62  
         {
 63  0
             return (String) vb.getValue(getFacesContext().getELContext());
 64  
         }
 65  0
         return "list"; 
 66  
     }
 67  
 
 68  
     public void setLayout(String layout)
 69  
     {
 70  0
         this._layout = layout;
 71  0
     }
 72  
     // Property: style
 73  
     private String _style;
 74  
     
 75  
     public String getStyle()
 76  
     {
 77  0
         if (_style != null)
 78  
         {
 79  0
             return _style;
 80  
         }
 81  0
         ValueExpression vb = getValueExpression("style");
 82  0
         if (vb != null)
 83  
         {
 84  0
             return (String) vb.getValue(getFacesContext().getELContext());
 85  
         }
 86  0
         return null;
 87  
     }
 88  
 
 89  
     public void setStyle(String style)
 90  
     {
 91  0
         this._style = style;
 92  0
     }
 93  
     // Property: styleClass
 94  
     private String _styleClass;
 95  
     
 96  
     public String getStyleClass()
 97  
     {
 98  0
         if (_styleClass != null)
 99  
         {
 100  0
             return _styleClass;
 101  
         }
 102  0
         ValueExpression vb = getValueExpression("styleClass");
 103  0
         if (vb != null)
 104  
         {
 105  0
             return (String) vb.getValue(getFacesContext().getELContext());
 106  
         }
 107  0
         return null;
 108  
     }
 109  
 
 110  
     public void setStyleClass(String styleClass)
 111  
     {
 112  0
         this._styleClass = styleClass;
 113  0
     }
 114  
     // Property: errorClass
 115  
     private String _errorClass;
 116  
     
 117  
     public String getErrorClass()
 118  
     {
 119  0
         if (_errorClass != null)
 120  
         {
 121  0
             return _errorClass;
 122  
         }
 123  0
         ValueExpression vb = getValueExpression("errorClass");
 124  0
         if (vb != null)
 125  
         {
 126  0
             return (String) vb.getValue(getFacesContext().getELContext());
 127  
         }
 128  0
         return null;
 129  
     }
 130  
 
 131  
     public void setErrorClass(String errorClass)
 132  
     {
 133  0
         this._errorClass = errorClass;
 134  0
     }
 135  
     // Property: errorStyle
 136  
     private String _errorStyle;
 137  
     
 138  
     public String getErrorStyle()
 139  
     {
 140  0
         if (_errorStyle != null)
 141  
         {
 142  0
             return _errorStyle;
 143  
         }
 144  0
         ValueExpression vb = getValueExpression("errorStyle");
 145  0
         if (vb != null)
 146  
         {
 147  0
             return (String) vb.getValue(getFacesContext().getELContext());
 148  
         }
 149  0
         return null;
 150  
     }
 151  
 
 152  
     public void setErrorStyle(String errorStyle)
 153  
     {
 154  0
         this._errorStyle = errorStyle;
 155  0
     }
 156  
     // Property: fatalClass
 157  
     private String _fatalClass;
 158  
     
 159  
     public String getFatalClass()
 160  
     {
 161  0
         if (_fatalClass != null)
 162  
         {
 163  0
             return _fatalClass;
 164  
         }
 165  0
         ValueExpression vb = getValueExpression("fatalClass");
 166  0
         if (vb != null)
 167  
         {
 168  0
             return (String) vb.getValue(getFacesContext().getELContext());
 169  
         }
 170  0
         return null;
 171  
     }
 172  
 
 173  
     public void setFatalClass(String fatalClass)
 174  
     {
 175  0
         this._fatalClass = fatalClass;
 176  0
     }
 177  
     // Property: fatalStyle
 178  
     private String _fatalStyle;
 179  
     
 180  
     public String getFatalStyle()
 181  
     {
 182  0
         if (_fatalStyle != null)
 183  
         {
 184  0
             return _fatalStyle;
 185  
         }
 186  0
         ValueExpression vb = getValueExpression("fatalStyle");
 187  0
         if (vb != null)
 188  
         {
 189  0
             return (String) vb.getValue(getFacesContext().getELContext());
 190  
         }
 191  0
         return null;
 192  
     }
 193  
 
 194  
     public void setFatalStyle(String fatalStyle)
 195  
     {
 196  0
         this._fatalStyle = fatalStyle;
 197  0
     }
 198  
     // Property: infoClass
 199  
     private String _infoClass;
 200  
     
 201  
     public String getInfoClass()
 202  
     {
 203  0
         if (_infoClass != null)
 204  
         {
 205  0
             return _infoClass;
 206  
         }
 207  0
         ValueExpression vb = getValueExpression("infoClass");
 208  0
         if (vb != null)
 209  
         {
 210  0
             return (String) vb.getValue(getFacesContext().getELContext());
 211  
         }
 212  0
         return null;
 213  
     }
 214  
 
 215  
     public void setInfoClass(String infoClass)
 216  
     {
 217  0
         this._infoClass = infoClass;
 218  0
     }
 219  
     // Property: infoStyle
 220  
     private String _infoStyle;
 221  
     
 222  
     public String getInfoStyle()
 223  
     {
 224  0
         if (_infoStyle != null)
 225  
         {
 226  0
             return _infoStyle;
 227  
         }
 228  0
         ValueExpression vb = getValueExpression("infoStyle");
 229  0
         if (vb != null)
 230  
         {
 231  0
             return (String) vb.getValue(getFacesContext().getELContext());
 232  
         }
 233  0
         return null;
 234  
     }
 235  
 
 236  
     public void setInfoStyle(String infoStyle)
 237  
     {
 238  0
         this._infoStyle = infoStyle;
 239  0
     }
 240  
     // Property: tooltip
 241  
     private boolean _tooltip;
 242  
     
 243  
     private boolean _tooltipSet;
 244  
     
 245  
     public boolean isTooltip()
 246  
     {
 247  0
         if (_tooltipSet)
 248  
         {
 249  0
             return _tooltip;
 250  
         }
 251  0
         ValueExpression vb = getValueExpression("tooltip");
 252  0
         if (vb != null)
 253  
         {
 254  0
             return ((Boolean) vb.getValue(getFacesContext().getELContext())).booleanValue();
 255  
         }
 256  0
         return false; 
 257  
     }
 258  
 
 259  
     public void setTooltip(boolean tooltip)
 260  
     {
 261  0
         this._tooltip = tooltip;
 262  0
         this._tooltipSet = true;        
 263  0
     }
 264  
     // Property: warnClass
 265  
     private String _warnClass;
 266  
     
 267  
     public String getWarnClass()
 268  
     {
 269  0
         if (_warnClass != null)
 270  
         {
 271  0
             return _warnClass;
 272  
         }
 273  0
         ValueExpression vb = getValueExpression("warnClass");
 274  0
         if (vb != null)
 275  
         {
 276  0
             return (String) vb.getValue(getFacesContext().getELContext());
 277  
         }
 278  0
         return null;
 279  
     }
 280  
 
 281  
     public void setWarnClass(String warnClass)
 282  
     {
 283  0
         this._warnClass = warnClass;
 284  0
     }
 285  
     // Property: warnStyle
 286  
     private String _warnStyle;
 287  
     
 288  
     public String getWarnStyle()
 289  
     {
 290  0
         if (_warnStyle != null)
 291  
         {
 292  0
             return _warnStyle;
 293  
         }
 294  0
         ValueExpression vb = getValueExpression("warnStyle");
 295  0
         if (vb != null)
 296  
         {
 297  0
             return (String) vb.getValue(getFacesContext().getELContext());
 298  
         }
 299  0
         return null;
 300  
     }
 301  
 
 302  
     public void setWarnStyle(String warnStyle)
 303  
     {
 304  0
         this._warnStyle = warnStyle;
 305  0
     }
 306  
     // Property: dir
 307  
     private String _dir;
 308  
     
 309  
     public String getDir()
 310  
     {
 311  0
         if (_dir != null)
 312  
         {
 313  0
             return _dir;
 314  
         }
 315  0
         ValueExpression vb = getValueExpression("dir");
 316  0
         if (vb != null)
 317  
         {
 318  0
             return (String) vb.getValue(getFacesContext().getELContext());
 319  
         }
 320  0
         return null;
 321  
     }
 322  
 
 323  
     public void setDir(String dir)
 324  
     {
 325  0
         this._dir = dir;
 326  0
     }
 327  
     // Property: lang
 328  
     private String _lang;
 329  
     
 330  
     public String getLang()
 331  
     {
 332  0
         if (_lang != null)
 333  
         {
 334  0
             return _lang;
 335  
         }
 336  0
         ValueExpression vb = getValueExpression("lang");
 337  0
         if (vb != null)
 338  
         {
 339  0
             return (String) vb.getValue(getFacesContext().getELContext());
 340  
         }
 341  0
         return null;
 342  
     }
 343  
 
 344  
     public void setLang(String lang)
 345  
     {
 346  0
         this._lang = lang;
 347  0
     }
 348  
     // Property: title
 349  
     private String _title;
 350  
     
 351  
     public String getTitle()
 352  
     {
 353  0
         if (_title != null)
 354  
         {
 355  0
             return _title;
 356  
         }
 357  0
         ValueExpression vb = getValueExpression("title");
 358  0
         if (vb != null)
 359  
         {
 360  0
             return (String) vb.getValue(getFacesContext().getELContext());
 361  
         }
 362  0
         return null;
 363  
     }
 364  
 
 365  
     public void setTitle(String title)
 366  
     {
 367  0
         this._title = title;
 368  0
     }
 369  
 
 370  
     @Override
 371  
     public Object saveState(FacesContext facesContext)
 372  
     {
 373  0
         Object[] values = new Object[17];
 374  0
         values[0] = super.saveState(facesContext);
 375  0
         values[1] = _layout;
 376  0
         values[2] = _style;
 377  0
         values[3] = _styleClass;
 378  0
         values[4] = _errorClass;
 379  0
         values[5] = _errorStyle;
 380  0
         values[6] = _fatalClass;
 381  0
         values[7] = _fatalStyle;
 382  0
         values[8] = _infoClass;
 383  0
         values[9] = _infoStyle;
 384  0
         values[10] = Boolean.valueOf(_tooltip);
 385  0
         values[11] = Boolean.valueOf(_tooltipSet);
 386  0
         values[12] = _warnClass;
 387  0
         values[13] = _warnStyle;
 388  0
         values[14] = _dir;
 389  0
         values[15] = _lang;
 390  0
         values[16] = _title;
 391  0
         return values; 
 392  
     }
 393  
 
 394  
     @Override
 395  
     public void restoreState(FacesContext facesContext, Object state)
 396  
     {
 397  0
         Object[] values = (Object[])state;
 398  0
         super.restoreState(facesContext,values[0]);
 399  0
         _layout = (java.lang.String) values[1];
 400  0
         _style = (java.lang.String) values[2];
 401  0
         _styleClass = (java.lang.String) values[3];
 402  0
         _errorClass = (java.lang.String) values[4];
 403  0
         _errorStyle = (java.lang.String) values[5];
 404  0
         _fatalClass = (java.lang.String) values[6];
 405  0
         _fatalStyle = (java.lang.String) values[7];
 406  0
         _infoClass = (java.lang.String) values[8];
 407  0
         _infoStyle = (java.lang.String) values[9];
 408  0
         _tooltip = ((Boolean) values[10]).booleanValue();
 409  0
         _tooltipSet = ((Boolean) values[11]).booleanValue();
 410  0
         _warnClass = (java.lang.String) values[12];
 411  0
         _warnStyle = (java.lang.String) values[13];
 412  0
         _dir = (java.lang.String) values[14];
 413  0
         _lang = (java.lang.String) values[15];
 414  0
         _title = (java.lang.String) values[16];
 415  0
     }
 416  
 }