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.*; 016 017/** 018 * DTO for an HTML {@doc ExtHTML5.grouping-content#the-blockquote-element <blockquote>} 019 * element. 020 * 021 * <ul class='seealso'> 022 * <li class='link'>{@doc DtoHtml5} 023 * </ul> 024 */ 025@Bean(typeName="blockquote") 026public class Blockquote extends HtmlElementMixed { 027 028 /** 029 * Creates an empty {@link Blockquote} element. 030 */ 031 public Blockquote() {} 032 033 /** 034 * Creates a {@link Blockquote} element with the specified child nodes. 035 * 036 * @param children The child nodes. 037 */ 038 public Blockquote(Object...children) { 039 children(children); 040 } 041 042 /** 043 * {@doc ExtHTML5.grouping-content#attr-blockquote-cite cite} 044 * attribute. 045 * 046 * <p> 047 * Link to the source of the quotation. 048 * 049 * @param cite The new value for this attribute. 050 * @return This object (for method chaining). 051 */ 052 public final Blockquote cite(String cite) { 053 attr("cite", cite); 054 return this; 055 } 056 057 058 //----------------------------------------------------------------------------------------------------------------- 059 // Overridden methods 060 //----------------------------------------------------------------------------------------------------------------- 061 062 @Override /* HtmlElement */ 063 public final Blockquote _class(String _class) { 064 super._class(_class); 065 return this; 066 } 067 068 @Override /* HtmlElement */ 069 public final Blockquote id(String id) { 070 super.id(id); 071 return this; 072 } 073 074 @Override /* HtmlElement */ 075 public final Blockquote style(String style) { 076 super.style(style); 077 return this; 078 } 079 080 @Override /* HtmlElementMixed */ 081 public Blockquote children(Object...children) { 082 super.children(children); 083 return this; 084 } 085 086 @Override /* HtmlElementMixed */ 087 public Blockquote child(Object child) { 088 super.child(child); 089 return this; 090 } 091}