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 static org.apache.juneau.xml.annotation.XmlFormat.*; 016 017import java.util.*; 018 019import org.apache.juneau.annotation.*; 020import org.apache.juneau.xml.annotation.*; 021 022/** 023 * DTO for an HTML <a class="doclink" href="https://www.w3.org/TR/html5/grouping-content.html#the-pre-element"><pre></a> 024 * element. 025 * 026 * <h5 class='section'>See Also:</h5> 027 * <ul class='doctree'> 028 * <li class='link'><a class='doclink' href='../../../../../overview-summary.html#juneau-dto.HTML5'>Overview > juneau-dto > HTML5</a> 029 * </ul> 030 */ 031@Bean(typeName="pre") 032public class Pre extends HtmlElementMixed { 033 034 //-------------------------------------------------------------------------------- 035 // Overridden methods 036 //-------------------------------------------------------------------------------- 037 038 @Xml(format=MIXED_PWS) 039 @BeanProperty(beanDictionary=HtmlBeanDictionary.class, name="c") 040 @Override 041 public LinkedList<Object> getChildren() { 042 return super.getChildren(); 043 } 044 045 @Override /* HtmlElement */ 046 public final Pre _class(String _class) { 047 super._class(_class); 048 return this; 049 } 050 051 @Override /* HtmlElement */ 052 public final Pre id(String id) { 053 super.id(id); 054 return this; 055 } 056 057 @Override /* HtmlElement */ 058 public final Pre style(String style) { 059 super.style(style); 060 return this; 061 } 062 063 @Override /* HtmlElementMixed */ 064 public Pre children(Object...children) { 065 super.children(children); 066 return this; 067 } 068 069 @Override /* HtmlElementMixed */ 070 public Pre child(Object child) { 071 super.child(child); 072 return this; 073 } 074}