001/*-------------------------------------------------------------------------+ 002| | 003| Copyright 2005-2011 The ConQAT Project | 004| | 005| Licensed under the Apache License, Version 2.0 (the "License"); | 006| you may not use this file except in compliance with the License. | 007| You may obtain a copy of the License at | 008| | 009| http://www.apache.org/licenses/LICENSE-2.0 | 010| | 011| Unless required by applicable law or agreed to in writing, software | 012| distributed under the License is distributed on an "AS IS" BASIS, | 013| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 014| See the License for the specific language governing permissions and | 015| limitations under the License. | 016+-------------------------------------------------------------------------*/ 017package org.conqat.lib.commons.html; 018 019/** 020 * Enumeration of all HTML attributes. 021 * <p> 022 * Part of this file was generated from the 023 * <a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">XHTML FrameSet 024 * DTD</a> using the "dtd2enum.pl" perl script in this directory. 025 * <p> 026 * Manual additions (from HTML5) are found towards the end. 027 */ 028public enum EHTMLAttribute { 029 /** The {@linkplain #TR} attribute. */ 030 TR("tr"), 031 032 /** The {@linkplain #STRIKE} attribute. */ 033 STRIKE("strike"), 034 035 /** The {@linkplain #HTTP_EQUIV} attribute. */ 036 HTTP_EQUIV("http-equiv"), 037 038 /** The {@linkplain #FORM} attribute. */ 039 FORM("form"), 040 041 /** The {@linkplain #NOHREF} attribute. */ 042 NOHREF("nohref"), 043 044 /** The {@linkplain #ONKEYDOWN} attribute. */ 045 ONKEYDOWN("onkeydown"), 046 047 /** The {@linkplain #TARGET} attribute. */ 048 TARGET("target"), 049 050 /** The {@linkplain #ONKEYUP} attribute. */ 051 ONKEYUP("onkeyup"), 052 053 /** The {@linkplain #ONRESET} attribute. */ 054 ONRESET("onreset"), 055 056 /** The {@linkplain #CODE} attribute. */ 057 CODE("code"), 058 059 /** The {@linkplain #ACRONYM} attribute. */ 060 ACRONYM("acronym"), 061 062 /** The {@linkplain #BR} attribute. */ 063 BR("br"), 064 065 /** The {@linkplain #VALIGN} attribute. */ 066 VALIGN("valign"), 067 068 /** The {@linkplain #NAME} attribute. */ 069 NAME("name"), 070 071 /** The {@linkplain #CHARSET} attribute. */ 072 CHARSET("charset"), 073 074 /** The {@linkplain #H4} attribute. */ 075 H4("h4"), 076 077 /** The {@linkplain #PROMPT} attribute. */ 078 PROMPT("prompt"), 079 080 /** The {@linkplain #ACCEPT_CHARSET} attribute. */ 081 ACCEPT_CHARSET("accept-charset"), 082 083 /** The {@linkplain #EM} attribute. */ 084 EM("em"), 085 086 /** The {@linkplain #REV} attribute. */ 087 REV("rev"), 088 089 /** The {@linkplain #TITLE} attribute. */ 090 TITLE("title"), 091 092 /** The {@linkplain #START} attribute. */ 093 START("start"), 094 095 /** The {@linkplain #SMALL} attribute. */ 096 SMALL("small"), 097 098 /** The {@linkplain #ENCTYPE} attribute. */ 099 ENCTYPE("enctype"), 100 101 /** The {@linkplain #USEMAP} attribute. */ 102 USEMAP("usemap"), 103 104 /** The {@linkplain #NOWRAP} attribute. */ 105 NOWRAP("nowrap"), 106 107 /** The {@linkplain #AREA} attribute. */ 108 AREA("area"), 109 110 /** The {@linkplain #COORDS} attribute. */ 111 COORDS("coords"), 112 113 /** The {@linkplain #ONBLUR} attribute. */ 114 ONBLUR("onblur"), 115 116 /** The {@linkplain #DATETIME} attribute. */ 117 DATETIME("datetime"), 118 119 /** The {@linkplain #DIR} attribute. */ 120 DIR("dir"), 121 122 /** The {@linkplain #COLOR} attribute. */ 123 COLOR("color"), 124 125 /** The {@linkplain #VSPACE} attribute. */ 126 VSPACE("vspace"), 127 128 /** The {@linkplain #UL} attribute. */ 129 UL("ul"), 130 131 /** The {@linkplain #BACKGROUND} attribute. */ 132 BACKGROUND("background"), 133 134 /** The {@linkplain #HEIGHT} attribute. */ 135 HEIGHT("height"), 136 137 /** The {@linkplain #DFN} attribute. */ 138 DFN("dfn"), 139 140 /** The {@linkplain #IFRAME} attribute. */ 141 IFRAME("iframe"), 142 143 /** The {@linkplain #CHAR} attribute. */ 144 CHAR("char"), 145 146 /** The {@linkplain #CODEBASE} attribute. */ 147 CODEBASE("codebase"), 148 149 /** The {@linkplain #PROFILE} attribute. */ 150 PROFILE("profile"), 151 152 /** The {@linkplain #REL} attribute. */ 153 REL("rel"), 154 155 /** The {@linkplain #ONSUBMIT} attribute. */ 156 ONSUBMIT("onsubmit"), 157 158 /** The {@linkplain #A} attribute. */ 159 A("a"), 160 161 /** The {@linkplain #IMG} attribute. */ 162 IMG("img"), 163 164 /** The {@linkplain #MARGINWIDTH} attribute. */ 165 MARGINWIDTH("marginwidth"), 166 167 /** The {@linkplain #NOFRAMES} attribute. */ 168 NOFRAMES("noframes"), 169 170 /** The {@linkplain #ONCHANGE} attribute. */ 171 ONCHANGE("onchange"), 172 173 /** The {@linkplain #U} attribute. */ 174 U("u"), 175 176 /** The {@linkplain #ABBR} attribute. */ 177 ABBR("abbr"), 178 179 /** The {@linkplain #HREF} attribute. */ 180 HREF("href"), 181 182 /** The {@linkplain #SUP} attribute. */ 183 SUP("sup"), 184 185 /** The {@linkplain #ADDRESS} attribute. */ 186 ADDRESS("address"), 187 188 /** The {@linkplain #ID} attribute. */ 189 ID("id"), 190 191 /** The {@linkplain #BASEFONT} attribute. */ 192 BASEFONT("basefont"), 193 194 /** The {@linkplain #H1} attribute. */ 195 H1("h1"), 196 197 /** The {@linkplain #HEAD} attribute. */ 198 HEAD("head"), 199 200 /** The {@linkplain #TBODY} attribute. */ 201 TBODY("tbody"), 202 203 /** The {@linkplain #VALUE} attribute. */ 204 VALUE("value"), 205 206 /** The {@linkplain #DATA} attribute. */ 207 DATA("data"), 208 209 /** The {@linkplain #DD} attribute. */ 210 DD("dd"), 211 212 /** The {@linkplain #S} attribute. */ 213 S("s"), 214 215 /** The {@linkplain #DECLARE} attribute. */ 216 DECLARE("declare"), 217 218 /** The {@linkplain #LI} attribute. */ 219 LI("li"), 220 221 /** The {@linkplain #TD} attribute. */ 222 TD("td"), 223 224 /** The {@linkplain #TYPE} attribute. */ 225 TYPE("type"), 226 227 /** The {@linkplain #HEADERS} attribute. */ 228 HEADERS("headers"), 229 230 /** The {@linkplain #OBJECT} attribute. */ 231 OBJECT("object"), 232 233 /** The {@linkplain #DIV} attribute. */ 234 DIV("div"), 235 236 /** The {@linkplain #NORESIZE} attribute. */ 237 NORESIZE("noresize"), 238 239 /** The {@linkplain #ROWSPAN} attribute. */ 240 ROWSPAN("rowspan"), 241 242 /** The {@linkplain #DEFER} attribute. */ 243 DEFER("defer"), 244 245 /** The {@linkplain #CELLSPACING} attribute. */ 246 CELLSPACING("cellspacing"), 247 248 /** The {@linkplain #OPTION} attribute. */ 249 OPTION("option"), 250 251 /** The {@linkplain #CHAROFF} attribute. */ 252 CHAROFF("charoff"), 253 254 /** The {@linkplain #SELECT} attribute. */ 255 SELECT("select"), 256 257 /** The {@linkplain #I} attribute. */ 258 I("i"), 259 260 /** The {@linkplain #ACCEPT} attribute. */ 261 ACCEPT("accept"), 262 263 /** The {@linkplain #ALT} attribute. */ 264 ALT("alt"), 265 266 /** The {@linkplain #ONMOUSEOUT} attribute. */ 267 ONMOUSEOUT("onmouseout"), 268 269 /** The {@linkplain #BORDER} attribute. */ 270 BORDER("border"), 271 272 /** The {@linkplain #ONUNLOAD} attribute. */ 273 ONUNLOAD("onunload"), 274 275 /** The {@linkplain #FIELDSET} attribute. */ 276 FIELDSET("fieldset"), 277 278 /** The {@linkplain #BIG} attribute. */ 279 BIG("big"), 280 281 /** The {@linkplain #CELLPADDING} attribute. */ 282 CELLPADDING("cellpadding"), 283 284 /** The {@linkplain #BUTTON} attribute. */ 285 BUTTON("button"), 286 287 /** The {@linkplain #VALUETYPE} attribute. */ 288 VALUETYPE("valuetype"), 289 290 /** The {@linkplain #NOSCRIPT} attribute. */ 291 NOSCRIPT("noscript"), 292 293 /** The {@linkplain #INPUT} attribute. */ 294 INPUT("input"), 295 296 /** The {@linkplain #TABLE} attribute. */ 297 TABLE("table"), 298 299 /** The {@linkplain #CONTENT} attribute. */ 300 CONTENT("content"), 301 302 /** The {@linkplain #CLEAR} attribute. */ 303 CLEAR("clear"), 304 305 /** The {@linkplain #H5} attribute. */ 306 H5("h5"), 307 308 /** The {@linkplain #META} attribute. */ 309 META("meta"), 310 311 /** The {@linkplain #ISINDEX} attribute. */ 312 ISINDEX("isindex"), 313 314 /** The {@linkplain #MAP} attribute. */ 315 MAP("map"), 316 317 /** The {@linkplain #TFOOT} attribute. */ 318 TFOOT("tfoot"), 319 320 /** The {@linkplain #CAPTION} attribute. */ 321 CAPTION("caption"), 322 323 /** The {@linkplain #ONMOUSEUP} attribute. */ 324 ONMOUSEUP("onmouseup"), 325 326 /** The {@linkplain #SCOPE} attribute. */ 327 SCOPE("scope"), 328 329 /** The {@linkplain #BASE} attribute. */ 330 BASE("base"), 331 332 /** The {@linkplain #ONMOUSEOVER} attribute. */ 333 ONMOUSEOVER("onmouseover"), 334 335 /** The {@linkplain #LANG} attribute. */ 336 LANG("lang"), 337 338 /** The {@linkplain #ALIGN} attribute. */ 339 ALIGN("align"), 340 341 /** The {@linkplain #STRONG} attribute. */ 342 STRONG("strong"), 343 344 /** The {@linkplain #SCHEME} attribute. */ 345 SCHEME("scheme"), 346 347 /** The {@linkplain #FRAMEBORDER} attribute. */ 348 FRAMEBORDER("frameborder"), 349 350 /** The {@linkplain #ONMOUSEDOWN} attribute. */ 351 ONMOUSEDOWN("onmousedown"), 352 353 /** The {@linkplain #Q} attribute. */ 354 Q("q"), 355 356 /** The {@linkplain #B} attribute. */ 357 B("b"), 358 359 /** The {@linkplain #APPLET} attribute. */ 360 APPLET("applet"), 361 362 /** The {@linkplain #ONCLICK} attribute. */ 363 ONCLICK("onclick"), 364 365 /** The {@linkplain #SPAN} attribute. */ 366 SPAN("span"), 367 368 /** The {@linkplain #WIDTH} attribute. */ 369 WIDTH("width"), 370 371 /** The {@linkplain #VLINK} attribute. */ 372 VLINK("vlink"), 373 374 /** The {@linkplain #ISMAP} attribute. */ 375 ISMAP("ismap"), 376 377 /** The {@linkplain #FRAME} attribute. */ 378 FRAME("frame"), 379 380 /** The {@linkplain #SIZE} attribute. */ 381 SIZE("size"), 382 383 /** The {@linkplain #BODY} attribute. */ 384 BODY("body"), 385 386 /** The {@linkplain #FACE} attribute. */ 387 FACE("face"), 388 389 /** The {@linkplain #OL} attribute. */ 390 OL("ol"), 391 392 /** The {@linkplain #SUMMARY} attribute. */ 393 SUMMARY("summary"), 394 395 /** The {@linkplain #HTML} attribute. */ 396 HTML("html"), 397 398 /** The {@linkplain #BGCOLOR} attribute. */ 399 BGCOLOR("bgcolor"), 400 401 /** The {@linkplain #TEXT} attribute. */ 402 TEXT("text"), 403 404 /** The {@linkplain #VAR} attribute. */ 405 VAR("var"), 406 407 /** The {@linkplain #METHOD} attribute. */ 408 METHOD("method"), 409 410 /** The {@linkplain #STANDBY} attribute. */ 411 STANDBY("standby"), 412 413 /** The {@linkplain #LANGUAGE} attribute. */ 414 LANGUAGE("language"), 415 416 /** The {@linkplain #DEL} attribute. */ 417 DEL("del"), 418 419 /** The {@linkplain #TABINDEX} attribute. */ 420 TABINDEX("tabindex"), 421 422 /** The {@linkplain #BLOCKQUOTE} attribute. */ 423 BLOCKQUOTE("blockquote"), 424 425 /** The {@linkplain #ONMOUSEMOVE} attribute. */ 426 ONMOUSEMOVE("onmousemove"), 427 428 /** The {@linkplain #STYLE} attribute. */ 429 STYLE("style"), 430 431 /** The {@linkplain #CODETYPE} attribute. */ 432 CODETYPE("codetype"), 433 434 /** The {@linkplain #MULTIPLE} attribute. */ 435 MULTIPLE("multiple"), 436 437 /** The {@linkplain #H3} attribute. */ 438 H3("h3"), 439 440 /** The {@linkplain #TEXTAREA} attribute. */ 441 TEXTAREA("textarea"), 442 443 /** The {@linkplain #XMLNS} attribute. */ 444 XMLNS("xmlns"), 445 446 /** The {@linkplain #ONDBLCLICK} attribute. */ 447 ONDBLCLICK("ondblclick"), 448 449 /** The {@linkplain #AXIS} attribute. */ 450 AXIS("axis"), 451 452 /** The {@linkplain #FONT} attribute. */ 453 FONT("font"), 454 455 /** The {@linkplain #TT} attribute. */ 456 TT("tt"), 457 458 /** The {@linkplain #COLS} attribute. */ 459 COLS("cols"), 460 461 /** The {@linkplain #THEAD} attribute. */ 462 THEAD("thead"), 463 464 /** The {@linkplain #READONLY} attribute. */ 465 READONLY("readonly"), 466 467 /** The {@linkplain #MEDIA} attribute. */ 468 MEDIA("media"), 469 470 /** The {@linkplain #H6} attribute. */ 471 H6("h6"), 472 473 /** The {@linkplain #PARAM} attribute. */ 474 PARAM("param"), 475 476 /** The {@linkplain #TH} attribute. */ 477 TH("th"), 478 479 /** The {@linkplain #COMPACT} attribute. */ 480 COMPACT("compact"), 481 482 /** The {@linkplain #FOR} attribute. */ 483 FOR("for"), 484 485 /** The {@linkplain #SRC} attribute. */ 486 SRC("src"), 487 488 /** The {@linkplain #LEGEND} attribute. */ 489 LEGEND("legend"), 490 491 /** The {@linkplain #XML_SPACE} attribute. */ 492 XML_SPACE("xml:space"), 493 494 /** The {@linkplain #HREFLANG} attribute. */ 495 HREFLANG("hreflang"), 496 497 /** The {@linkplain #CHECKED} attribute. */ 498 CHECKED("checked"), 499 500 /** The {@linkplain #HR} attribute. */ 501 HR("hr"), 502 503 /** The {@linkplain #ONKEYPRESS} attribute. */ 504 ONKEYPRESS("onkeypress"), 505 506 /** The {@linkplain #LABEL} attribute. */ 507 LABEL("label"), 508 509 /** The {@linkplain #CLASS} attribute. */ 510 CLASS("class"), 511 512 /** The {@linkplain #SHAPE} attribute. */ 513 SHAPE("shape"), 514 515 /** The {@linkplain #DL} attribute. */ 516 DL("dl"), 517 518 /** The {@linkplain #KBD} attribute. */ 519 KBD("kbd"), 520 521 /** The {@linkplain #ACCESSKEY} attribute. */ 522 ACCESSKEY("accesskey"), 523 524 /** The {@linkplain #DISABLED} attribute. */ 525 DISABLED("disabled"), 526 527 /** The {@linkplain #SCROLLING} attribute. */ 528 SCROLLING("scrolling"), 529 530 /** The {@linkplain #DT} attribute. */ 531 DT("dt"), 532 533 /** The {@linkplain #PRE} attribute. */ 534 PRE("pre"), 535 536 /** The {@linkplain #RULES} attribute. */ 537 RULES("rules"), 538 539 /** The {@linkplain #ROWS} attribute. */ 540 ROWS("rows"), 541 542 /** The {@linkplain #CENTER} attribute. */ 543 CENTER("center"), 544 545 /** The {@linkplain #ALINK} attribute. */ 546 ALINK("alink"), 547 548 /** The {@linkplain #ONFOCUS} attribute. */ 549 ONFOCUS("onfocus"), 550 551 /** The {@linkplain #COLSPAN} attribute. */ 552 COLSPAN("colspan"), 553 554 /** The {@linkplain #SAMP} attribute. */ 555 SAMP("samp"), 556 557 /** The {@linkplain #COL} attribute. */ 558 COL("col"), 559 560 /** The {@linkplain #CITE} attribute. */ 561 CITE("cite"), 562 563 /** The {@linkplain #MARGINHEIGHT} attribute. */ 564 MARGINHEIGHT("marginheight"), 565 566 /** The {@linkplain #MAXLENGTH} attribute. */ 567 MAXLENGTH("maxlength"), 568 569 /** The {@linkplain #LINK} attribute. */ 570 LINK("link"), 571 572 /** The {@linkplain #ONSELECT} attribute. */ 573 ONSELECT("onselect"), 574 575 /** The {@linkplain #SCRIPT} attribute. */ 576 SCRIPT("script"), 577 578 /** The {@linkplain #ARCHIVE} attribute. */ 579 ARCHIVE("archive"), 580 581 /** The {@linkplain #BDO} attribute. */ 582 BDO("bdo"), 583 584 /** The {@linkplain #CLASSID} attribute. */ 585 CLASSID("classid"), 586 587 /** The {@linkplain #LONGDESC} attribute. */ 588 LONGDESC("longdesc"), 589 590 /** The {@linkplain #MENU} attribute. */ 591 MENU("menu"), 592 593 /** The {@linkplain #COLGROUP} attribute. */ 594 COLGROUP("colgroup"), 595 596 /** The {@linkplain #XML_LANG} attribute. */ 597 XML_LANG("xml:lang"), 598 599 /** The {@linkplain #H2} attribute. */ 600 H2("h2"), 601 602 /** The {@linkplain #NOSHADE} attribute. */ 603 NOSHADE("noshade"), 604 605 /** The {@linkplain #INS} attribute. */ 606 INS("ins"), 607 608 /** The {@linkplain #P} attribute. */ 609 P("p"), 610 611 /** The {@linkplain #HSPACE} attribute. */ 612 HSPACE("hspace"), 613 614 /** The {@linkplain #SUB} attribute. */ 615 SUB("sub"), 616 617 /** The {@linkplain #ACTION} attribute. */ 618 ACTION("action"), 619 620 /** The {@linkplain #ONLOAD} attribute. */ 621 ONLOAD("onload"), 622 623 /** The {@linkplain #FRAMESET} attribute. */ 624 FRAMESET("frameset"), 625 626 /** The {@linkplain #SELECTED} attribute. */ 627 SELECTED("selected"), 628 629 /** The {@linkplain #OPTGROUP} attribute. */ 630 OPTGROUP("optgroup"), 631 632 /** New in HTML5. The {@linkplain #AUTOFOCUS} attribute. */ 633 AUTOFOCUS("autofocus"), 634 635 /** New in HTML5. The {@linkplain #PLACEHOLDER} attribute. */ 636 PLACEHOLDER("placeholder"), 637 638 /** New in HTML5. The {@linkplain #PRELOAD} attribute. */ 639 PRELOAD("preload"), 640 641 /** New in HTML5. The {@linkplain #AS} attribute (inside <link ... > */ 642 AS("as"), 643 644 /** New in HTML5. The {@linkplain #CROSSORIGIN} attribute (inside <link ... > */ 645 CROSSORIGIN("crossorigin"); 646 647 /** The "real" name of the attribute. */ 648 private final String name; 649 650 /** Constructor. */ 651 private EHTMLAttribute(String name) { 652 this.name = name; 653 } 654 655 /** Returns the name as used in the HTML output. */ 656 public String getName() { 657 return name; 658 } 659 660 /** {@inheritDoc} */ 661 @Override 662 public String toString() { 663 return name; 664 } 665}