001// *************************************************************************************************************************** 002// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * 003// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * 004// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * 005// * with the License. You may obtain a copy of the License at * 006// * * 007// * http://www.apache.org/licenses/LICENSE-2.0 * 008// * * 009// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * 010// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * 011// * specific language governing permissions and limitations under the License. * 012// *************************************************************************************************************************** 013package org.apache.juneau.dto.html5; 014 015import java.net.*; 016 017import org.apache.juneau.*; 018import org.apache.juneau.annotation.*; 019import org.apache.juneau.internal.*; 020 021/** 022 * DTO for an HTML <a class="doclink" href="https://www.w3.org/TR/html5/document-metadata.html#the-base-element"><base></a> 023 * element. 024 * 025 * <h5 class='section'>See Also:</h5><ul> 026 * <li class='link'><a class="doclink" href="../../../../../index.html#jd.Html5">Overview > juneau-dto > HTML5</a> 027 * </ul> 028 */ 029@Bean(typeName="base") 030@FluentSetters 031public class Base extends HtmlElementVoid { 032 033 /** 034 * Creates an empty {@link Base} element. 035 */ 036 public Base() {} 037 038 /** 039 * Creates a {@link Base} element with the specified {@link Base#href(Object)} attribute. 040 * 041 * @param href The {@link Base#href(Object)} attribute. 042 */ 043 public Base(Object href) { 044 href(href); 045 } 046 047 /** 048 * <a class="doclink" href="https://www.w3.org/TR/html5/document-metadata.html#attr-base-href">href</a> attribute. 049 * 050 * <p> 051 * Document base URL. 052 * 053 * <p> 054 * The value can be of any of the following types: {@link URI}, {@link URL}, {@link String}. 055 * Strings must be valid URIs. 056 * 057 * <p> 058 * URIs defined by {@link UriResolver} can be used for values. 059 * 060 * @param href 061 * The new value for this attribute. 062 * Typically a {@link URL} or {@link String}. 063 * @return This object. 064 */ 065 public final Base href(Object href) { 066 attrUri("href", href); 067 return this; 068 } 069 070 /** 071 * <a class="doclink" href="https://www.w3.org/TR/html5/document-metadata.html#attr-base-target">target</a> 072 * attribute. 073 * 074 * <p> 075 * Default browsing context for hyperlink navigation and form submission. 076 * 077 * @param target The new value for this attribute. 078 * @return This object. 079 */ 080 public final Base target(String target) { 081 attr("target", target); 082 return this; 083 } 084 085 086 //----------------------------------------------------------------------------------------------------------------- 087 // Overridden methods 088 //----------------------------------------------------------------------------------------------------------------- 089 090 // <FluentSetters> 091 092 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 093 public Base _class(String _class) { 094 super._class(_class); 095 return this; 096 } 097 098 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 099 public Base accesskey(String accesskey) { 100 super.accesskey(accesskey); 101 return this; 102 } 103 104 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 105 public Base contenteditable(Object contenteditable) { 106 super.contenteditable(contenteditable); 107 return this; 108 } 109 110 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 111 public Base dir(String dir) { 112 super.dir(dir); 113 return this; 114 } 115 116 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 117 public Base hidden(Object hidden) { 118 super.hidden(hidden); 119 return this; 120 } 121 122 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 123 public Base id(String id) { 124 super.id(id); 125 return this; 126 } 127 128 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 129 public Base lang(String lang) { 130 super.lang(lang); 131 return this; 132 } 133 134 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 135 public Base onabort(String onabort) { 136 super.onabort(onabort); 137 return this; 138 } 139 140 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 141 public Base onblur(String onblur) { 142 super.onblur(onblur); 143 return this; 144 } 145 146 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 147 public Base oncancel(String oncancel) { 148 super.oncancel(oncancel); 149 return this; 150 } 151 152 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 153 public Base oncanplay(String oncanplay) { 154 super.oncanplay(oncanplay); 155 return this; 156 } 157 158 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 159 public Base oncanplaythrough(String oncanplaythrough) { 160 super.oncanplaythrough(oncanplaythrough); 161 return this; 162 } 163 164 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 165 public Base onchange(String onchange) { 166 super.onchange(onchange); 167 return this; 168 } 169 170 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 171 public Base onclick(String onclick) { 172 super.onclick(onclick); 173 return this; 174 } 175 176 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 177 public Base oncuechange(String oncuechange) { 178 super.oncuechange(oncuechange); 179 return this; 180 } 181 182 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 183 public Base ondblclick(String ondblclick) { 184 super.ondblclick(ondblclick); 185 return this; 186 } 187 188 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 189 public Base ondurationchange(String ondurationchange) { 190 super.ondurationchange(ondurationchange); 191 return this; 192 } 193 194 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 195 public Base onemptied(String onemptied) { 196 super.onemptied(onemptied); 197 return this; 198 } 199 200 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 201 public Base onended(String onended) { 202 super.onended(onended); 203 return this; 204 } 205 206 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 207 public Base onerror(String onerror) { 208 super.onerror(onerror); 209 return this; 210 } 211 212 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 213 public Base onfocus(String onfocus) { 214 super.onfocus(onfocus); 215 return this; 216 } 217 218 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 219 public Base oninput(String oninput) { 220 super.oninput(oninput); 221 return this; 222 } 223 224 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 225 public Base oninvalid(String oninvalid) { 226 super.oninvalid(oninvalid); 227 return this; 228 } 229 230 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 231 public Base onkeydown(String onkeydown) { 232 super.onkeydown(onkeydown); 233 return this; 234 } 235 236 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 237 public Base onkeypress(String onkeypress) { 238 super.onkeypress(onkeypress); 239 return this; 240 } 241 242 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 243 public Base onkeyup(String onkeyup) { 244 super.onkeyup(onkeyup); 245 return this; 246 } 247 248 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 249 public Base onload(String onload) { 250 super.onload(onload); 251 return this; 252 } 253 254 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 255 public Base onloadeddata(String onloadeddata) { 256 super.onloadeddata(onloadeddata); 257 return this; 258 } 259 260 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 261 public Base onloadedmetadata(String onloadedmetadata) { 262 super.onloadedmetadata(onloadedmetadata); 263 return this; 264 } 265 266 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 267 public Base onloadstart(String onloadstart) { 268 super.onloadstart(onloadstart); 269 return this; 270 } 271 272 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 273 public Base onmousedown(String onmousedown) { 274 super.onmousedown(onmousedown); 275 return this; 276 } 277 278 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 279 public Base onmouseenter(String onmouseenter) { 280 super.onmouseenter(onmouseenter); 281 return this; 282 } 283 284 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 285 public Base onmouseleave(String onmouseleave) { 286 super.onmouseleave(onmouseleave); 287 return this; 288 } 289 290 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 291 public Base onmousemove(String onmousemove) { 292 super.onmousemove(onmousemove); 293 return this; 294 } 295 296 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 297 public Base onmouseout(String onmouseout) { 298 super.onmouseout(onmouseout); 299 return this; 300 } 301 302 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 303 public Base onmouseover(String onmouseover) { 304 super.onmouseover(onmouseover); 305 return this; 306 } 307 308 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 309 public Base onmouseup(String onmouseup) { 310 super.onmouseup(onmouseup); 311 return this; 312 } 313 314 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 315 public Base onmousewheel(String onmousewheel) { 316 super.onmousewheel(onmousewheel); 317 return this; 318 } 319 320 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 321 public Base onpause(String onpause) { 322 super.onpause(onpause); 323 return this; 324 } 325 326 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 327 public Base onplay(String onplay) { 328 super.onplay(onplay); 329 return this; 330 } 331 332 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 333 public Base onplaying(String onplaying) { 334 super.onplaying(onplaying); 335 return this; 336 } 337 338 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 339 public Base onprogress(String onprogress) { 340 super.onprogress(onprogress); 341 return this; 342 } 343 344 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 345 public Base onratechange(String onratechange) { 346 super.onratechange(onratechange); 347 return this; 348 } 349 350 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 351 public Base onreset(String onreset) { 352 super.onreset(onreset); 353 return this; 354 } 355 356 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 357 public Base onresize(String onresize) { 358 super.onresize(onresize); 359 return this; 360 } 361 362 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 363 public Base onscroll(String onscroll) { 364 super.onscroll(onscroll); 365 return this; 366 } 367 368 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 369 public Base onseeked(String onseeked) { 370 super.onseeked(onseeked); 371 return this; 372 } 373 374 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 375 public Base onseeking(String onseeking) { 376 super.onseeking(onseeking); 377 return this; 378 } 379 380 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 381 public Base onselect(String onselect) { 382 super.onselect(onselect); 383 return this; 384 } 385 386 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 387 public Base onshow(String onshow) { 388 super.onshow(onshow); 389 return this; 390 } 391 392 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 393 public Base onstalled(String onstalled) { 394 super.onstalled(onstalled); 395 return this; 396 } 397 398 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 399 public Base onsubmit(String onsubmit) { 400 super.onsubmit(onsubmit); 401 return this; 402 } 403 404 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 405 public Base onsuspend(String onsuspend) { 406 super.onsuspend(onsuspend); 407 return this; 408 } 409 410 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 411 public Base ontimeupdate(String ontimeupdate) { 412 super.ontimeupdate(ontimeupdate); 413 return this; 414 } 415 416 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 417 public Base ontoggle(String ontoggle) { 418 super.ontoggle(ontoggle); 419 return this; 420 } 421 422 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 423 public Base onvolumechange(String onvolumechange) { 424 super.onvolumechange(onvolumechange); 425 return this; 426 } 427 428 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 429 public Base onwaiting(String onwaiting) { 430 super.onwaiting(onwaiting); 431 return this; 432 } 433 434 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 435 public Base spellcheck(Object spellcheck) { 436 super.spellcheck(spellcheck); 437 return this; 438 } 439 440 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 441 public Base style(String style) { 442 super.style(style); 443 return this; 444 } 445 446 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 447 public Base tabindex(Object tabindex) { 448 super.tabindex(tabindex); 449 return this; 450 } 451 452 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 453 public Base title(String title) { 454 super.title(title); 455 return this; 456 } 457 458 @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */ 459 public Base translate(Object translate) { 460 super.translate(translate); 461 return this; 462 } 463 464 // </FluentSetters> 465}