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