Coverage Report - javax.faces.component.html.HtmlOutputLink
 
Classes in this File Line Coverage Branch Coverage Complexity
HtmlOutputLink
0%
0/293
0%
0/112
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  
 import javax.faces.convert.Converter;
 25  
 
 26  
 
 27  
 // Generated from class javax.faces.component.html._HtmlOutputLink.
 28  
 //
 29  
 // WARNING: This file was automatically generated. Do not edit it directly,
 30  
 //          or you will lose your changes.
 31  
 public class HtmlOutputLink extends javax.faces.component.UIOutput
 32  
 {
 33  
 
 34  
     static public final String COMPONENT_FAMILY =
 35  
         "javax.faces.Output";
 36  
     static public final String COMPONENT_TYPE =
 37  
         "javax.faces.HtmlOutputLink";
 38  
 
 39  
 
 40  
     public HtmlOutputLink()
 41  0
     {
 42  0
         setRendererType("javax.faces.Link");
 43  0
     }
 44  
 
 45  
     @Override    
 46  
     public String getFamily()
 47  
     {
 48  0
         return COMPONENT_FAMILY;
 49  
     }
 50  
     
 51  
 
 52  
     // Property: style
 53  
     private String _style;
 54  
     
 55  
     public String getStyle()
 56  
     {
 57  0
         if (_style != null)
 58  
         {
 59  0
             return _style;
 60  
         }
 61  0
         ValueExpression vb = getValueExpression("style");
 62  0
         if (vb != null)
 63  
         {
 64  0
             return (String) vb.getValue(getFacesContext().getELContext());
 65  
         }
 66  0
         return null;
 67  
     }
 68  
 
 69  
     public void setStyle(String style)
 70  
     {
 71  0
         this._style = style;
 72  0
     }
 73  
     // Property: styleClass
 74  
     private String _styleClass;
 75  
     
 76  
     public String getStyleClass()
 77  
     {
 78  0
         if (_styleClass != null)
 79  
         {
 80  0
             return _styleClass;
 81  
         }
 82  0
         ValueExpression vb = getValueExpression("styleClass");
 83  0
         if (vb != null)
 84  
         {
 85  0
             return (String) vb.getValue(getFacesContext().getELContext());
 86  
         }
 87  0
         return null;
 88  
     }
 89  
 
 90  
     public void setStyleClass(String styleClass)
 91  
     {
 92  0
         this._styleClass = styleClass;
 93  0
     }
 94  
     // Property: tabindex
 95  
     private String _tabindex;
 96  
     
 97  
     public String getTabindex()
 98  
     {
 99  0
         if (_tabindex != null)
 100  
         {
 101  0
             return _tabindex;
 102  
         }
 103  0
         ValueExpression vb = getValueExpression("tabindex");
 104  0
         if (vb != null)
 105  
         {
 106  0
             return (String) vb.getValue(getFacesContext().getELContext());
 107  
         }
 108  0
         return null;
 109  
     }
 110  
 
 111  
     public void setTabindex(String tabindex)
 112  
     {
 113  0
         this._tabindex = tabindex;
 114  0
     }
 115  
     // Property: onblur
 116  
     private String _onblur;
 117  
     
 118  
     public String getOnblur()
 119  
     {
 120  0
         if (_onblur != null)
 121  
         {
 122  0
             return _onblur;
 123  
         }
 124  0
         ValueExpression vb = getValueExpression("onblur");
 125  0
         if (vb != null)
 126  
         {
 127  0
             return (String) vb.getValue(getFacesContext().getELContext());
 128  
         }
 129  0
         return null;
 130  
     }
 131  
 
 132  
     public void setOnblur(String onblur)
 133  
     {
 134  0
         this._onblur = onblur;
 135  0
     }
 136  
     // Property: onfocus
 137  
     private String _onfocus;
 138  
     
 139  
     public String getOnfocus()
 140  
     {
 141  0
         if (_onfocus != null)
 142  
         {
 143  0
             return _onfocus;
 144  
         }
 145  0
         ValueExpression vb = getValueExpression("onfocus");
 146  0
         if (vb != null)
 147  
         {
 148  0
             return (String) vb.getValue(getFacesContext().getELContext());
 149  
         }
 150  0
         return null;
 151  
     }
 152  
 
 153  
     public void setOnfocus(String onfocus)
 154  
     {
 155  0
         this._onfocus = onfocus;
 156  0
     }
 157  
     // Property: accesskey
 158  
     private String _accesskey;
 159  
     
 160  
     public String getAccesskey()
 161  
     {
 162  0
         if (_accesskey != null)
 163  
         {
 164  0
             return _accesskey;
 165  
         }
 166  0
         ValueExpression vb = getValueExpression("accesskey");
 167  0
         if (vb != null)
 168  
         {
 169  0
             return (String) vb.getValue(getFacesContext().getELContext());
 170  
         }
 171  0
         return null;
 172  
     }
 173  
 
 174  
     public void setAccesskey(String accesskey)
 175  
     {
 176  0
         this._accesskey = accesskey;
 177  0
     }
 178  
     // Property: onclick
 179  
     private String _onclick;
 180  
     
 181  
     public String getOnclick()
 182  
     {
 183  0
         if (_onclick != null)
 184  
         {
 185  0
             return _onclick;
 186  
         }
 187  0
         ValueExpression vb = getValueExpression("onclick");
 188  0
         if (vb != null)
 189  
         {
 190  0
             return (String) vb.getValue(getFacesContext().getELContext());
 191  
         }
 192  0
         return null;
 193  
     }
 194  
 
 195  
     public void setOnclick(String onclick)
 196  
     {
 197  0
         this._onclick = onclick;
 198  0
     }
 199  
     // Property: ondblclick
 200  
     private String _ondblclick;
 201  
     
 202  
     public String getOndblclick()
 203  
     {
 204  0
         if (_ondblclick != null)
 205  
         {
 206  0
             return _ondblclick;
 207  
         }
 208  0
         ValueExpression vb = getValueExpression("ondblclick");
 209  0
         if (vb != null)
 210  
         {
 211  0
             return (String) vb.getValue(getFacesContext().getELContext());
 212  
         }
 213  0
         return null;
 214  
     }
 215  
 
 216  
     public void setOndblclick(String ondblclick)
 217  
     {
 218  0
         this._ondblclick = ondblclick;
 219  0
     }
 220  
     // Property: onkeydown
 221  
     private String _onkeydown;
 222  
     
 223  
     public String getOnkeydown()
 224  
     {
 225  0
         if (_onkeydown != null)
 226  
         {
 227  0
             return _onkeydown;
 228  
         }
 229  0
         ValueExpression vb = getValueExpression("onkeydown");
 230  0
         if (vb != null)
 231  
         {
 232  0
             return (String) vb.getValue(getFacesContext().getELContext());
 233  
         }
 234  0
         return null;
 235  
     }
 236  
 
 237  
     public void setOnkeydown(String onkeydown)
 238  
     {
 239  0
         this._onkeydown = onkeydown;
 240  0
     }
 241  
     // Property: onkeypress
 242  
     private String _onkeypress;
 243  
     
 244  
     public String getOnkeypress()
 245  
     {
 246  0
         if (_onkeypress != null)
 247  
         {
 248  0
             return _onkeypress;
 249  
         }
 250  0
         ValueExpression vb = getValueExpression("onkeypress");
 251  0
         if (vb != null)
 252  
         {
 253  0
             return (String) vb.getValue(getFacesContext().getELContext());
 254  
         }
 255  0
         return null;
 256  
     }
 257  
 
 258  
     public void setOnkeypress(String onkeypress)
 259  
     {
 260  0
         this._onkeypress = onkeypress;
 261  0
     }
 262  
     // Property: onkeyup
 263  
     private String _onkeyup;
 264  
     
 265  
     public String getOnkeyup()
 266  
     {
 267  0
         if (_onkeyup != null)
 268  
         {
 269  0
             return _onkeyup;
 270  
         }
 271  0
         ValueExpression vb = getValueExpression("onkeyup");
 272  0
         if (vb != null)
 273  
         {
 274  0
             return (String) vb.getValue(getFacesContext().getELContext());
 275  
         }
 276  0
         return null;
 277  
     }
 278  
 
 279  
     public void setOnkeyup(String onkeyup)
 280  
     {
 281  0
         this._onkeyup = onkeyup;
 282  0
     }
 283  
     // Property: onmousedown
 284  
     private String _onmousedown;
 285  
     
 286  
     public String getOnmousedown()
 287  
     {
 288  0
         if (_onmousedown != null)
 289  
         {
 290  0
             return _onmousedown;
 291  
         }
 292  0
         ValueExpression vb = getValueExpression("onmousedown");
 293  0
         if (vb != null)
 294  
         {
 295  0
             return (String) vb.getValue(getFacesContext().getELContext());
 296  
         }
 297  0
         return null;
 298  
     }
 299  
 
 300  
     public void setOnmousedown(String onmousedown)
 301  
     {
 302  0
         this._onmousedown = onmousedown;
 303  0
     }
 304  
     // Property: onmousemove
 305  
     private String _onmousemove;
 306  
     
 307  
     public String getOnmousemove()
 308  
     {
 309  0
         if (_onmousemove != null)
 310  
         {
 311  0
             return _onmousemove;
 312  
         }
 313  0
         ValueExpression vb = getValueExpression("onmousemove");
 314  0
         if (vb != null)
 315  
         {
 316  0
             return (String) vb.getValue(getFacesContext().getELContext());
 317  
         }
 318  0
         return null;
 319  
     }
 320  
 
 321  
     public void setOnmousemove(String onmousemove)
 322  
     {
 323  0
         this._onmousemove = onmousemove;
 324  0
     }
 325  
     // Property: onmouseout
 326  
     private String _onmouseout;
 327  
     
 328  
     public String getOnmouseout()
 329  
     {
 330  0
         if (_onmouseout != null)
 331  
         {
 332  0
             return _onmouseout;
 333  
         }
 334  0
         ValueExpression vb = getValueExpression("onmouseout");
 335  0
         if (vb != null)
 336  
         {
 337  0
             return (String) vb.getValue(getFacesContext().getELContext());
 338  
         }
 339  0
         return null;
 340  
     }
 341  
 
 342  
     public void setOnmouseout(String onmouseout)
 343  
     {
 344  0
         this._onmouseout = onmouseout;
 345  0
     }
 346  
     // Property: onmouseover
 347  
     private String _onmouseover;
 348  
     
 349  
     public String getOnmouseover()
 350  
     {
 351  0
         if (_onmouseover != null)
 352  
         {
 353  0
             return _onmouseover;
 354  
         }
 355  0
         ValueExpression vb = getValueExpression("onmouseover");
 356  0
         if (vb != null)
 357  
         {
 358  0
             return (String) vb.getValue(getFacesContext().getELContext());
 359  
         }
 360  0
         return null;
 361  
     }
 362  
 
 363  
     public void setOnmouseover(String onmouseover)
 364  
     {
 365  0
         this._onmouseover = onmouseover;
 366  0
     }
 367  
     // Property: onmouseup
 368  
     private String _onmouseup;
 369  
     
 370  
     public String getOnmouseup()
 371  
     {
 372  0
         if (_onmouseup != null)
 373  
         {
 374  0
             return _onmouseup;
 375  
         }
 376  0
         ValueExpression vb = getValueExpression("onmouseup");
 377  0
         if (vb != null)
 378  
         {
 379  0
             return (String) vb.getValue(getFacesContext().getELContext());
 380  
         }
 381  0
         return null;
 382  
     }
 383  
 
 384  
     public void setOnmouseup(String onmouseup)
 385  
     {
 386  0
         this._onmouseup = onmouseup;
 387  0
     }
 388  
     // Property: dir
 389  
     private String _dir;
 390  
     
 391  
     public String getDir()
 392  
     {
 393  0
         if (_dir != null)
 394  
         {
 395  0
             return _dir;
 396  
         }
 397  0
         ValueExpression vb = getValueExpression("dir");
 398  0
         if (vb != null)
 399  
         {
 400  0
             return (String) vb.getValue(getFacesContext().getELContext());
 401  
         }
 402  0
         return null;
 403  
     }
 404  
 
 405  
     public void setDir(String dir)
 406  
     {
 407  0
         this._dir = dir;
 408  0
     }
 409  
     // Property: lang
 410  
     private String _lang;
 411  
     
 412  
     public String getLang()
 413  
     {
 414  0
         if (_lang != null)
 415  
         {
 416  0
             return _lang;
 417  
         }
 418  0
         ValueExpression vb = getValueExpression("lang");
 419  0
         if (vb != null)
 420  
         {
 421  0
             return (String) vb.getValue(getFacesContext().getELContext());
 422  
         }
 423  0
         return null;
 424  
     }
 425  
 
 426  
     public void setLang(String lang)
 427  
     {
 428  0
         this._lang = lang;
 429  0
     }
 430  
     // Property: title
 431  
     private String _title;
 432  
     
 433  
     public String getTitle()
 434  
     {
 435  0
         if (_title != null)
 436  
         {
 437  0
             return _title;
 438  
         }
 439  0
         ValueExpression vb = getValueExpression("title");
 440  0
         if (vb != null)
 441  
         {
 442  0
             return (String) vb.getValue(getFacesContext().getELContext());
 443  
         }
 444  0
         return null;
 445  
     }
 446  
 
 447  
     public void setTitle(String title)
 448  
     {
 449  0
         this._title = title;
 450  0
     }
 451  
     // Property: charset
 452  
     private String _charset;
 453  
     
 454  
     public String getCharset()
 455  
     {
 456  0
         if (_charset != null)
 457  
         {
 458  0
             return _charset;
 459  
         }
 460  0
         ValueExpression vb = getValueExpression("charset");
 461  0
         if (vb != null)
 462  
         {
 463  0
             return (String) vb.getValue(getFacesContext().getELContext());
 464  
         }
 465  0
         return null;
 466  
     }
 467  
 
 468  
     public void setCharset(String charset)
 469  
     {
 470  0
         this._charset = charset;
 471  0
     }
 472  
     // Property: coords
 473  
     private String _coords;
 474  
     
 475  
     public String getCoords()
 476  
     {
 477  0
         if (_coords != null)
 478  
         {
 479  0
             return _coords;
 480  
         }
 481  0
         ValueExpression vb = getValueExpression("coords");
 482  0
         if (vb != null)
 483  
         {
 484  0
             return (String) vb.getValue(getFacesContext().getELContext());
 485  
         }
 486  0
         return null;
 487  
     }
 488  
 
 489  
     public void setCoords(String coords)
 490  
     {
 491  0
         this._coords = coords;
 492  0
     }
 493  
     // Property: hreflang
 494  
     private String _hreflang;
 495  
     
 496  
     public String getHreflang()
 497  
     {
 498  0
         if (_hreflang != null)
 499  
         {
 500  0
             return _hreflang;
 501  
         }
 502  0
         ValueExpression vb = getValueExpression("hreflang");
 503  0
         if (vb != null)
 504  
         {
 505  0
             return (String) vb.getValue(getFacesContext().getELContext());
 506  
         }
 507  0
         return null;
 508  
     }
 509  
 
 510  
     public void setHreflang(String hreflang)
 511  
     {
 512  0
         this._hreflang = hreflang;
 513  0
     }
 514  
     // Property: rel
 515  
     private String _rel;
 516  
     
 517  
     public String getRel()
 518  
     {
 519  0
         if (_rel != null)
 520  
         {
 521  0
             return _rel;
 522  
         }
 523  0
         ValueExpression vb = getValueExpression("rel");
 524  0
         if (vb != null)
 525  
         {
 526  0
             return (String) vb.getValue(getFacesContext().getELContext());
 527  
         }
 528  0
         return null;
 529  
     }
 530  
 
 531  
     public void setRel(String rel)
 532  
     {
 533  0
         this._rel = rel;
 534  0
     }
 535  
     // Property: rev
 536  
     private String _rev;
 537  
     
 538  
     public String getRev()
 539  
     {
 540  0
         if (_rev != null)
 541  
         {
 542  0
             return _rev;
 543  
         }
 544  0
         ValueExpression vb = getValueExpression("rev");
 545  0
         if (vb != null)
 546  
         {
 547  0
             return (String) vb.getValue(getFacesContext().getELContext());
 548  
         }
 549  0
         return null;
 550  
     }
 551  
 
 552  
     public void setRev(String rev)
 553  
     {
 554  0
         this._rev = rev;
 555  0
     }
 556  
     // Property: shape
 557  
     private String _shape;
 558  
     
 559  
     public String getShape()
 560  
     {
 561  0
         if (_shape != null)
 562  
         {
 563  0
             return _shape;
 564  
         }
 565  0
         ValueExpression vb = getValueExpression("shape");
 566  0
         if (vb != null)
 567  
         {
 568  0
             return (String) vb.getValue(getFacesContext().getELContext());
 569  
         }
 570  0
         return null;
 571  
     }
 572  
 
 573  
     public void setShape(String shape)
 574  
     {
 575  0
         this._shape = shape;
 576  0
     }
 577  
     // Property: target
 578  
     private String _target;
 579  
     
 580  
     public String getTarget()
 581  
     {
 582  0
         if (_target != null)
 583  
         {
 584  0
             return _target;
 585  
         }
 586  0
         ValueExpression vb = getValueExpression("target");
 587  0
         if (vb != null)
 588  
         {
 589  0
             return (String) vb.getValue(getFacesContext().getELContext());
 590  
         }
 591  0
         return null;
 592  
     }
 593  
 
 594  
     public void setTarget(String target)
 595  
     {
 596  0
         this._target = target;
 597  0
     }
 598  
     // Property: type
 599  
     private String _type;
 600  
     
 601  
     public String getType()
 602  
     {
 603  0
         if (_type != null)
 604  
         {
 605  0
             return _type;
 606  
         }
 607  0
         ValueExpression vb = getValueExpression("type");
 608  0
         if (vb != null)
 609  
         {
 610  0
             return (String) vb.getValue(getFacesContext().getELContext());
 611  
         }
 612  0
         return null;
 613  
     }
 614  
 
 615  
     public void setType(String type)
 616  
     {
 617  0
         this._type = type;
 618  0
     }
 619  
     // Property: disabled
 620  
     private boolean _disabled;
 621  
     
 622  
     private boolean _disabledSet;
 623  
     
 624  
     public boolean isDisabled()
 625  
     {
 626  0
         if (_disabledSet)
 627  
         {
 628  0
             return _disabled;
 629  
         }
 630  0
         ValueExpression vb = getValueExpression("disabled");
 631  0
         if (vb != null)
 632  
         {
 633  0
             return ((Boolean) vb.getValue(getFacesContext().getELContext())).booleanValue();
 634  
         }
 635  0
         return false; 
 636  
     }
 637  
 
 638  
     public void setDisabled(boolean disabled)
 639  
     {
 640  0
         this._disabled = disabled;
 641  0
         this._disabledSet = true;        
 642  0
     }
 643  
 
 644  
     @Override
 645  
     public Object saveState(FacesContext facesContext)
 646  
     {
 647  0
         Object[] values = new Object[30];
 648  0
         values[0] = super.saveState(facesContext);
 649  0
         values[1] = _style;
 650  0
         values[2] = _styleClass;
 651  0
         values[3] = _tabindex;
 652  0
         values[4] = _onblur;
 653  0
         values[5] = _onfocus;
 654  0
         values[6] = _accesskey;
 655  0
         values[7] = _onclick;
 656  0
         values[8] = _ondblclick;
 657  0
         values[9] = _onkeydown;
 658  0
         values[10] = _onkeypress;
 659  0
         values[11] = _onkeyup;
 660  0
         values[12] = _onmousedown;
 661  0
         values[13] = _onmousemove;
 662  0
         values[14] = _onmouseout;
 663  0
         values[15] = _onmouseover;
 664  0
         values[16] = _onmouseup;
 665  0
         values[17] = _dir;
 666  0
         values[18] = _lang;
 667  0
         values[19] = _title;
 668  0
         values[20] = _charset;
 669  0
         values[21] = _coords;
 670  0
         values[22] = _hreflang;
 671  0
         values[23] = _rel;
 672  0
         values[24] = _rev;
 673  0
         values[25] = _shape;
 674  0
         values[26] = _target;
 675  0
         values[27] = _type;
 676  0
         values[28] = Boolean.valueOf(_disabled);
 677  0
         values[29] = Boolean.valueOf(_disabledSet);
 678  0
         return values; 
 679  
     }
 680  
 
 681  
     @Override
 682  
     public void restoreState(FacesContext facesContext, Object state)
 683  
     {
 684  0
         Object[] values = (Object[])state;
 685  0
         super.restoreState(facesContext,values[0]);
 686  0
         _style = (java.lang.String) values[1];
 687  0
         _styleClass = (java.lang.String) values[2];
 688  0
         _tabindex = (java.lang.String) values[3];
 689  0
         _onblur = (java.lang.String) values[4];
 690  0
         _onfocus = (java.lang.String) values[5];
 691  0
         _accesskey = (java.lang.String) values[6];
 692  0
         _onclick = (java.lang.String) values[7];
 693  0
         _ondblclick = (java.lang.String) values[8];
 694  0
         _onkeydown = (java.lang.String) values[9];
 695  0
         _onkeypress = (java.lang.String) values[10];
 696  0
         _onkeyup = (java.lang.String) values[11];
 697  0
         _onmousedown = (java.lang.String) values[12];
 698  0
         _onmousemove = (java.lang.String) values[13];
 699  0
         _onmouseout = (java.lang.String) values[14];
 700  0
         _onmouseover = (java.lang.String) values[15];
 701  0
         _onmouseup = (java.lang.String) values[16];
 702  0
         _dir = (java.lang.String) values[17];
 703  0
         _lang = (java.lang.String) values[18];
 704  0
         _title = (java.lang.String) values[19];
 705  0
         _charset = (java.lang.String) values[20];
 706  0
         _coords = (java.lang.String) values[21];
 707  0
         _hreflang = (java.lang.String) values[22];
 708  0
         _rel = (java.lang.String) values[23];
 709  0
         _rev = (java.lang.String) values[24];
 710  0
         _shape = (java.lang.String) values[25];
 711  0
         _target = (java.lang.String) values[26];
 712  0
         _type = (java.lang.String) values[27];
 713  0
         _disabled = ((Boolean) values[28]).booleanValue();
 714  0
         _disabledSet = ((Boolean) values[29]).booleanValue();
 715  0
     }
 716  
 }