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.text-level-semantics#the-abbr-element <abbr>} 019 * element. 020 * 021 * <ul class='seealso'> 022 * <li class='link'>{@doc DtoHtml5} 023 * </ul> 024 */ 025@Bean(typeName="abbr") 026public class Abbr extends HtmlElementMixed { 027 028 /** 029 * Creates an empty {@link Abbr} element. 030 */ 031 public Abbr() {} 032 033 /** 034 * Creates an {@link Abbr} element with the specified {@link Abbr#title(String)} attribute and 035 * {@link Abbr#children(Object[])} nodes. 036 * 037 * @param title The {@link Abbr#title(String)} attribute. 038 * @param children The {@link Abbr#children(Object[])} nodes. 039 */ 040 public Abbr(String title, Object...children) { 041 title(title).children(children); 042 } 043 044 //----------------------------------------------------------------------------------------------------------------- 045 // Overridden methods 046 //----------------------------------------------------------------------------------------------------------------- 047 048 @Override /* HtmlElement */ 049 public final Abbr _class(String _class) { 050 super._class(_class); 051 return this; 052 } 053 054 @Override /* HtmlElement */ 055 public final Abbr id(String id) { 056 super.id(id); 057 return this; 058 } 059 060 @Override /* HtmlElement */ 061 public final Abbr style(String style) { 062 super.style(style); 063 return this; 064 } 065 066 @Override /* HtmlElement */ 067 public final Abbr title(String title) { 068 super.title(title); 069 return this; 070 } 071 072 @Override /* HtmlElementMixed */ 073 public Abbr children(Object...children) { 074 super.children(children); 075 return this; 076 } 077 078 @Override /* HtmlElementMixed */ 079 public Abbr child(Object child) { 080 super.child(child); 081 return this; 082 } 083}