001/*
002 * Licensed to the Apache Software Foundation (ASF) under one or more
003 * contributor license agreements.  See the NOTICE file distributed with
004 * this work for additional information regarding copyright ownership.
005 * The ASF licenses this file to You under the Apache License, Version 2.0
006 * (the "License"); you may not use this file except in compliance with
007 * the License.  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.apache.juneau.bean.html5;
018
019import org.apache.juneau.annotation.*;
020import org.apache.juneau.internal.*;
021
022/**
023 * DTO for an HTML <a class="doclink" href="https://www.w3.org/TR/html5/grouping-content.html#the-blockquote-element">&lt;blockquote&gt;</a>
024 * element.
025 *
026 * <p>
027 * The blockquote element represents a section that is quoted from another source. It is typically
028 * rendered as an indented block of text to distinguish it from the surrounding content. The cite
029 * attribute can be used to provide a link to the source of the quotation.
030 *
031 * <h5 class='section'>Examples:</h5>
032 * <p class='bcode w800'>
033 *    <jc>// Simple blockquote</jc>
034 *    Blockquote <jv>quote1</jv> = <jsm>blockquote</jsm>().text(<js>"The only way to do great work is to love what you do."</js>);
035 * 
036 *    <jc>// Blockquote with citation</jc>
037 *    Blockquote <jv>quote2</jv> = <jsm>blockquote</jsm>()
038 *       .cite(<js>"https://example.com/source"</js>)
039 *       .text(<js>"Innovation distinguishes between a leader and a follower."</js>);
040 * 
041 *    <jc>// Blockquote with nested content</jc>
042 *    Blockquote <jv>quote3</jv> = <jsm>blockquote</jsm>()
043 *       .cite(<js>"https://example.com/article"</js>)
044 *       .children(
045 *          <jsm>p</jsm>().text(<js>"This is a longer quotation that spans multiple paragraphs."</js>),
046 *          <jsm>p</jsm>().text(<js>"It can contain various HTML elements."</js>)
047 *       );
048 * </p>
049 *
050 * <p>
051 * The following convenience methods are provided for constructing instances of this bean:
052 * <ul class='javatree'>
053 *    <li class='jc'>{@link HtmlBuilder}
054 *    <ul class='javatree'>
055 *       <li class='jm'>{@link HtmlBuilder#blockquote() blockquote()}
056 *       <li class='jm'>{@link HtmlBuilder#blockquote(Object, Object...) blockquote(Object, Object...)}
057 *    </ul>
058 * </ul>
059 * </p>
060 *
061 * <h5 class='section'>See Also:</h5><ul>
062 *    <li class='link'><a class="doclink" href="https://juneau.apache.org/docs/topics/JuneauBeanHtml5">juneau-bean-html5</a>
063 * </ul>
064 */
065@Bean(typeName="blockquote")
066public class Blockquote extends HtmlElementMixed {
067
068   /**
069    * Creates an empty {@link Blockquote} element.
070    */
071   public Blockquote() {}
072
073   /**
074    * Creates a {@link Blockquote} element with the specified child nodes.
075    *
076    * @param children The child nodes.
077    */
078   public Blockquote(Object...children) {
079      children(children);
080   }
081
082   /**
083    * <a class="doclink" href="https://www.w3.org/TR/html5/grouping-content.html#attr-blockquote-cite">cite</a>
084    * attribute.
085    *
086    * <p>
087    * Specifies the URL of the source document or message from which the quotation was taken.
088    * This provides context and attribution for the quoted content.
089    *
090    * <p>
091    * The URL should point to the original source of the quoted material.
092    *
093    * @param cite The URL of the source document for the quotation.
094    * @return This object.
095    */
096   public Blockquote cite(String value) {
097      attr("cite", value);
098      return this;
099   }
100
101   //-----------------------------------------------------------------------------------------------------------------
102   // Overridden methods
103   //-----------------------------------------------------------------------------------------------------------------
104   @Override /* Overridden from HtmlElement */
105   public Blockquote _class(String value) {  // NOSONAR - Intentional naming.
106      super._class(value);
107      return this;
108   }
109
110   @Override /* Overridden from HtmlElement */
111   public Blockquote accesskey(String value) {
112      super.accesskey(value);
113      return this;
114   }
115
116   @Override /* Overridden from HtmlElement */
117   public Blockquote contenteditable(Object value) {
118      super.contenteditable(value);
119      return this;
120   }
121
122   @Override /* Overridden from HtmlElement */
123   public Blockquote dir(String value) {
124      super.dir(value);
125      return this;
126   }
127
128   @Override /* Overridden from HtmlElement */
129   public Blockquote hidden(Object value) {
130      super.hidden(value);
131      return this;
132   }
133
134   @Override /* Overridden from HtmlElement */
135   public Blockquote id(String value) {
136      super.id(value);
137      return this;
138   }
139
140   @Override /* Overridden from HtmlElement */
141   public Blockquote lang(String value) {
142      super.lang(value);
143      return this;
144   }
145
146   @Override /* Overridden from HtmlElement */
147   public Blockquote onabort(String value) {
148      super.onabort(value);
149      return this;
150   }
151
152   @Override /* Overridden from HtmlElement */
153   public Blockquote onblur(String value) {
154      super.onblur(value);
155      return this;
156   }
157
158   @Override /* Overridden from HtmlElement */
159   public Blockquote oncancel(String value) {
160      super.oncancel(value);
161      return this;
162   }
163
164   @Override /* Overridden from HtmlElement */
165   public Blockquote oncanplay(String value) {
166      super.oncanplay(value);
167      return this;
168   }
169
170   @Override /* Overridden from HtmlElement */
171   public Blockquote oncanplaythrough(String value) {
172      super.oncanplaythrough(value);
173      return this;
174   }
175
176   @Override /* Overridden from HtmlElement */
177   public Blockquote onchange(String value) {
178      super.onchange(value);
179      return this;
180   }
181
182   @Override /* Overridden from HtmlElement */
183   public Blockquote onclick(String value) {
184      super.onclick(value);
185      return this;
186   }
187
188   @Override /* Overridden from HtmlElement */
189   public Blockquote oncuechange(String value) {
190      super.oncuechange(value);
191      return this;
192   }
193
194   @Override /* Overridden from HtmlElement */
195   public Blockquote ondblclick(String value) {
196      super.ondblclick(value);
197      return this;
198   }
199
200   @Override /* Overridden from HtmlElement */
201   public Blockquote ondurationchange(String value) {
202      super.ondurationchange(value);
203      return this;
204   }
205
206   @Override /* Overridden from HtmlElement */
207   public Blockquote onemptied(String value) {
208      super.onemptied(value);
209      return this;
210   }
211
212   @Override /* Overridden from HtmlElement */
213   public Blockquote onended(String value) {
214      super.onended(value);
215      return this;
216   }
217
218   @Override /* Overridden from HtmlElement */
219   public Blockquote onerror(String value) {
220      super.onerror(value);
221      return this;
222   }
223
224   @Override /* Overridden from HtmlElement */
225   public Blockquote onfocus(String value) {
226      super.onfocus(value);
227      return this;
228   }
229
230   @Override /* Overridden from HtmlElement */
231   public Blockquote oninput(String value) {
232      super.oninput(value);
233      return this;
234   }
235
236   @Override /* Overridden from HtmlElement */
237   public Blockquote oninvalid(String value) {
238      super.oninvalid(value);
239      return this;
240   }
241
242   @Override /* Overridden from HtmlElement */
243   public Blockquote onkeydown(String value) {
244      super.onkeydown(value);
245      return this;
246   }
247
248   @Override /* Overridden from HtmlElement */
249   public Blockquote onkeypress(String value) {
250      super.onkeypress(value);
251      return this;
252   }
253
254   @Override /* Overridden from HtmlElement */
255   public Blockquote onkeyup(String value) {
256      super.onkeyup(value);
257      return this;
258   }
259
260   @Override /* Overridden from HtmlElement */
261   public Blockquote onload(String value) {
262      super.onload(value);
263      return this;
264   }
265
266   @Override /* Overridden from HtmlElement */
267   public Blockquote onloadeddata(String value) {
268      super.onloadeddata(value);
269      return this;
270   }
271
272   @Override /* Overridden from HtmlElement */
273   public Blockquote onloadedmetadata(String value) {
274      super.onloadedmetadata(value);
275      return this;
276   }
277
278   @Override /* Overridden from HtmlElement */
279   public Blockquote onloadstart(String value) {
280      super.onloadstart(value);
281      return this;
282   }
283
284   @Override /* Overridden from HtmlElement */
285   public Blockquote onmousedown(String value) {
286      super.onmousedown(value);
287      return this;
288   }
289
290   @Override /* Overridden from HtmlElement */
291   public Blockquote onmouseenter(String value) {
292      super.onmouseenter(value);
293      return this;
294   }
295
296   @Override /* Overridden from HtmlElement */
297   public Blockquote onmouseleave(String value) {
298      super.onmouseleave(value);
299      return this;
300   }
301
302   @Override /* Overridden from HtmlElement */
303   public Blockquote onmousemove(String value) {
304      super.onmousemove(value);
305      return this;
306   }
307
308   @Override /* Overridden from HtmlElement */
309   public Blockquote onmouseout(String value) {
310      super.onmouseout(value);
311      return this;
312   }
313
314   @Override /* Overridden from HtmlElement */
315   public Blockquote onmouseover(String value) {
316      super.onmouseover(value);
317      return this;
318   }
319
320   @Override /* Overridden from HtmlElement */
321   public Blockquote onmouseup(String value) {
322      super.onmouseup(value);
323      return this;
324   }
325
326   @Override /* Overridden from HtmlElement */
327   public Blockquote onmousewheel(String value) {
328      super.onmousewheel(value);
329      return this;
330   }
331
332   @Override /* Overridden from HtmlElement */
333   public Blockquote onpause(String value) {
334      super.onpause(value);
335      return this;
336   }
337
338   @Override /* Overridden from HtmlElement */
339   public Blockquote onplay(String value) {
340      super.onplay(value);
341      return this;
342   }
343
344   @Override /* Overridden from HtmlElement */
345   public Blockquote onplaying(String value) {
346      super.onplaying(value);
347      return this;
348   }
349
350   @Override /* Overridden from HtmlElement */
351   public Blockquote onprogress(String value) {
352      super.onprogress(value);
353      return this;
354   }
355
356   @Override /* Overridden from HtmlElement */
357   public Blockquote onratechange(String value) {
358      super.onratechange(value);
359      return this;
360   }
361
362   @Override /* Overridden from HtmlElement */
363   public Blockquote onreset(String value) {
364      super.onreset(value);
365      return this;
366   }
367
368   @Override /* Overridden from HtmlElement */
369   public Blockquote onresize(String value) {
370      super.onresize(value);
371      return this;
372   }
373
374   @Override /* Overridden from HtmlElement */
375   public Blockquote onscroll(String value) {
376      super.onscroll(value);
377      return this;
378   }
379
380   @Override /* Overridden from HtmlElement */
381   public Blockquote onseeked(String value) {
382      super.onseeked(value);
383      return this;
384   }
385
386   @Override /* Overridden from HtmlElement */
387   public Blockquote onseeking(String value) {
388      super.onseeking(value);
389      return this;
390   }
391
392   @Override /* Overridden from HtmlElement */
393   public Blockquote onselect(String value) {
394      super.onselect(value);
395      return this;
396   }
397
398   @Override /* Overridden from HtmlElement */
399   public Blockquote onshow(String value) {
400      super.onshow(value);
401      return this;
402   }
403
404   @Override /* Overridden from HtmlElement */
405   public Blockquote onstalled(String value) {
406      super.onstalled(value);
407      return this;
408   }
409
410   @Override /* Overridden from HtmlElement */
411   public Blockquote onsubmit(String value) {
412      super.onsubmit(value);
413      return this;
414   }
415
416   @Override /* Overridden from HtmlElement */
417   public Blockquote onsuspend(String value) {
418      super.onsuspend(value);
419      return this;
420   }
421
422   @Override /* Overridden from HtmlElement */
423   public Blockquote ontimeupdate(String value) {
424      super.ontimeupdate(value);
425      return this;
426   }
427
428   @Override /* Overridden from HtmlElement */
429   public Blockquote ontoggle(String value) {
430      super.ontoggle(value);
431      return this;
432   }
433
434   @Override /* Overridden from HtmlElement */
435   public Blockquote onvolumechange(String value) {
436      super.onvolumechange(value);
437      return this;
438   }
439
440   @Override /* Overridden from HtmlElement */
441   public Blockquote onwaiting(String value) {
442      super.onwaiting(value);
443      return this;
444   }
445
446   @Override /* Overridden from HtmlElement */
447   public Blockquote spellcheck(Object value) {
448      super.spellcheck(value);
449      return this;
450   }
451
452   @Override /* Overridden from HtmlElement */
453   public Blockquote style(String value) {
454      super.style(value);
455      return this;
456   }
457
458   @Override /* Overridden from HtmlElement */
459   public Blockquote tabindex(Object value) {
460      super.tabindex(value);
461      return this;
462   }
463
464   @Override /* Overridden from HtmlElement */
465   public Blockquote title(String value) {
466      super.title(value);
467      return this;
468   }
469
470   @Override /* Overridden from HtmlElement */
471   public Blockquote translate(Object value) {
472      super.translate(value);
473      return this;
474   }
475
476   @Override /* Overridden from HtmlElementMixed */
477   public Blockquote child(Object value) {
478      super.child(value);
479      return this;
480   }
481
482   @Override /* Overridden from HtmlElementMixed */
483   public Blockquote children(Object...value) {
484      super.children(value);
485      return this;
486   }
487}