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/embedded-content-0.html#the-embed-element">&lt;embed&gt;</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 &gt; juneau-dto &gt; HTML5</a>
027 * </ul>
028 */
029@Bean(typeName="embed")
030@FluentSetters
031public class Embed extends HtmlElementVoid {
032
033   /**
034    * Creates an empty {@link Embed} element.
035    */
036   public Embed() {}
037
038   /**
039    * Creates an {@link Embed} element with the specified {@link Embed#src(Object)} attribute.
040    *
041    * @param src The {@link Embed#src(Object)} attribute.
042    */
043   public Embed(Object src) {
044      src(src);
045   }
046
047   /**
048    * <a class="doclink" href="https://www.w3.org/TR/html5/embedded-content-0.html#attr-dim-height">height</a>
049    * attribute.
050    *
051    * <p>
052    * Vertical dimension.
053    *
054    * @param height
055    *    The new value for this attribute.
056    *    Typically a {@link Number} or {@link String}.
057    * @return This object.
058    */
059   public final Embed height(Object height) {
060      attr("height", height);
061      return this;
062   }
063
064   /**
065    * <a class="doclink" href="https://www.w3.org/TR/html5/embedded-content-0.html#attr-embed-src">src</a> attribute.
066    *
067    * <p>
068    * Address of the resource.
069    *
070    * <p>
071    * The value can be of any of the following types: {@link URI}, {@link URL}, {@link String}.
072    * Strings must be valid URIs.
073    *
074    * <p>
075    * URIs defined by {@link UriResolver} can be used for values.
076    *
077    * @param src
078    *    The new value for this attribute.
079    *    Typically a {@link URL} or {@link String}.
080    * @return This object.
081    */
082   public final Embed src(Object src) {
083      attrUri("src", src);
084      return this;
085   }
086
087   /**
088    * <a class="doclink" href="https://www.w3.org/TR/html5/embedded-content-0.html#attr-embed-type">type</a> attribute.
089    *
090    * <p>
091    * Type of embedded resource.
092    *
093    * @param type The new value for this attribute.
094    * @return This object.
095    */
096   public final Embed type(String type) {
097      attr("type", type);
098      return this;
099   }
100
101   /**
102    * <a class="doclink" href="https://www.w3.org/TR/html5/embedded-content-0.html#attr-dim-width">width</a> attribute.
103    *
104    * <p>
105    * Horizontal dimension.
106    *
107    * @param width
108    *    The new value for this attribute.
109    *    Typically a {@link Number} or {@link String}.
110    * @return This object.
111    */
112   public final Embed width(Object width) {
113      attr("width", width);
114      return this;
115   }
116
117
118   //-----------------------------------------------------------------------------------------------------------------
119   // Overridden methods
120   //-----------------------------------------------------------------------------------------------------------------
121
122   // <FluentSetters>
123
124   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
125   public Embed _class(String _class) {
126      super._class(_class);
127      return this;
128   }
129
130   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
131   public Embed accesskey(String accesskey) {
132      super.accesskey(accesskey);
133      return this;
134   }
135
136   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
137   public Embed contenteditable(Object contenteditable) {
138      super.contenteditable(contenteditable);
139      return this;
140   }
141
142   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
143   public Embed dir(String dir) {
144      super.dir(dir);
145      return this;
146   }
147
148   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
149   public Embed hidden(Object hidden) {
150      super.hidden(hidden);
151      return this;
152   }
153
154   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
155   public Embed id(String id) {
156      super.id(id);
157      return this;
158   }
159
160   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
161   public Embed lang(String lang) {
162      super.lang(lang);
163      return this;
164   }
165
166   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
167   public Embed onabort(String onabort) {
168      super.onabort(onabort);
169      return this;
170   }
171
172   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
173   public Embed onblur(String onblur) {
174      super.onblur(onblur);
175      return this;
176   }
177
178   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
179   public Embed oncancel(String oncancel) {
180      super.oncancel(oncancel);
181      return this;
182   }
183
184   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
185   public Embed oncanplay(String oncanplay) {
186      super.oncanplay(oncanplay);
187      return this;
188   }
189
190   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
191   public Embed oncanplaythrough(String oncanplaythrough) {
192      super.oncanplaythrough(oncanplaythrough);
193      return this;
194   }
195
196   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
197   public Embed onchange(String onchange) {
198      super.onchange(onchange);
199      return this;
200   }
201
202   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
203   public Embed onclick(String onclick) {
204      super.onclick(onclick);
205      return this;
206   }
207
208   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
209   public Embed oncuechange(String oncuechange) {
210      super.oncuechange(oncuechange);
211      return this;
212   }
213
214   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
215   public Embed ondblclick(String ondblclick) {
216      super.ondblclick(ondblclick);
217      return this;
218   }
219
220   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
221   public Embed ondurationchange(String ondurationchange) {
222      super.ondurationchange(ondurationchange);
223      return this;
224   }
225
226   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
227   public Embed onemptied(String onemptied) {
228      super.onemptied(onemptied);
229      return this;
230   }
231
232   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
233   public Embed onended(String onended) {
234      super.onended(onended);
235      return this;
236   }
237
238   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
239   public Embed onerror(String onerror) {
240      super.onerror(onerror);
241      return this;
242   }
243
244   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
245   public Embed onfocus(String onfocus) {
246      super.onfocus(onfocus);
247      return this;
248   }
249
250   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
251   public Embed oninput(String oninput) {
252      super.oninput(oninput);
253      return this;
254   }
255
256   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
257   public Embed oninvalid(String oninvalid) {
258      super.oninvalid(oninvalid);
259      return this;
260   }
261
262   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
263   public Embed onkeydown(String onkeydown) {
264      super.onkeydown(onkeydown);
265      return this;
266   }
267
268   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
269   public Embed onkeypress(String onkeypress) {
270      super.onkeypress(onkeypress);
271      return this;
272   }
273
274   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
275   public Embed onkeyup(String onkeyup) {
276      super.onkeyup(onkeyup);
277      return this;
278   }
279
280   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
281   public Embed onload(String onload) {
282      super.onload(onload);
283      return this;
284   }
285
286   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
287   public Embed onloadeddata(String onloadeddata) {
288      super.onloadeddata(onloadeddata);
289      return this;
290   }
291
292   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
293   public Embed onloadedmetadata(String onloadedmetadata) {
294      super.onloadedmetadata(onloadedmetadata);
295      return this;
296   }
297
298   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
299   public Embed onloadstart(String onloadstart) {
300      super.onloadstart(onloadstart);
301      return this;
302   }
303
304   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
305   public Embed onmousedown(String onmousedown) {
306      super.onmousedown(onmousedown);
307      return this;
308   }
309
310   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
311   public Embed onmouseenter(String onmouseenter) {
312      super.onmouseenter(onmouseenter);
313      return this;
314   }
315
316   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
317   public Embed onmouseleave(String onmouseleave) {
318      super.onmouseleave(onmouseleave);
319      return this;
320   }
321
322   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
323   public Embed onmousemove(String onmousemove) {
324      super.onmousemove(onmousemove);
325      return this;
326   }
327
328   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
329   public Embed onmouseout(String onmouseout) {
330      super.onmouseout(onmouseout);
331      return this;
332   }
333
334   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
335   public Embed onmouseover(String onmouseover) {
336      super.onmouseover(onmouseover);
337      return this;
338   }
339
340   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
341   public Embed onmouseup(String onmouseup) {
342      super.onmouseup(onmouseup);
343      return this;
344   }
345
346   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
347   public Embed onmousewheel(String onmousewheel) {
348      super.onmousewheel(onmousewheel);
349      return this;
350   }
351
352   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
353   public Embed onpause(String onpause) {
354      super.onpause(onpause);
355      return this;
356   }
357
358   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
359   public Embed onplay(String onplay) {
360      super.onplay(onplay);
361      return this;
362   }
363
364   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
365   public Embed onplaying(String onplaying) {
366      super.onplaying(onplaying);
367      return this;
368   }
369
370   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
371   public Embed onprogress(String onprogress) {
372      super.onprogress(onprogress);
373      return this;
374   }
375
376   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
377   public Embed onratechange(String onratechange) {
378      super.onratechange(onratechange);
379      return this;
380   }
381
382   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
383   public Embed onreset(String onreset) {
384      super.onreset(onreset);
385      return this;
386   }
387
388   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
389   public Embed onresize(String onresize) {
390      super.onresize(onresize);
391      return this;
392   }
393
394   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
395   public Embed onscroll(String onscroll) {
396      super.onscroll(onscroll);
397      return this;
398   }
399
400   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
401   public Embed onseeked(String onseeked) {
402      super.onseeked(onseeked);
403      return this;
404   }
405
406   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
407   public Embed onseeking(String onseeking) {
408      super.onseeking(onseeking);
409      return this;
410   }
411
412   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
413   public Embed onselect(String onselect) {
414      super.onselect(onselect);
415      return this;
416   }
417
418   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
419   public Embed onshow(String onshow) {
420      super.onshow(onshow);
421      return this;
422   }
423
424   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
425   public Embed onstalled(String onstalled) {
426      super.onstalled(onstalled);
427      return this;
428   }
429
430   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
431   public Embed onsubmit(String onsubmit) {
432      super.onsubmit(onsubmit);
433      return this;
434   }
435
436   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
437   public Embed onsuspend(String onsuspend) {
438      super.onsuspend(onsuspend);
439      return this;
440   }
441
442   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
443   public Embed ontimeupdate(String ontimeupdate) {
444      super.ontimeupdate(ontimeupdate);
445      return this;
446   }
447
448   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
449   public Embed ontoggle(String ontoggle) {
450      super.ontoggle(ontoggle);
451      return this;
452   }
453
454   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
455   public Embed onvolumechange(String onvolumechange) {
456      super.onvolumechange(onvolumechange);
457      return this;
458   }
459
460   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
461   public Embed onwaiting(String onwaiting) {
462      super.onwaiting(onwaiting);
463      return this;
464   }
465
466   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
467   public Embed spellcheck(Object spellcheck) {
468      super.spellcheck(spellcheck);
469      return this;
470   }
471
472   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
473   public Embed style(String style) {
474      super.style(style);
475      return this;
476   }
477
478   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
479   public Embed tabindex(Object tabindex) {
480      super.tabindex(tabindex);
481      return this;
482   }
483
484   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
485   public Embed title(String title) {
486      super.title(title);
487      return this;
488   }
489
490   @Override /* GENERATED - org.apache.juneau.dto.html5.HtmlElement */
491   public Embed translate(Object translate) {
492      super.translate(translate);
493      return this;
494   }
495
496   // </FluentSetters>
497}