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 {@doc HTML5.grouping-content#the-pre-element <pre>}
024 * element.
025 *
026 * <ul class='seealso'>
027 *    <li class='link'>{@doc juneau-dto.HTML5}
028 * </ul>
029 */
030@Bean(typeName="pre")
031public class Pre extends HtmlElementMixed {
032
033   //-----------------------------------------------------------------------------------------------------------------
034   // Overridden methods
035   //-----------------------------------------------------------------------------------------------------------------
036
037   @Xml(format=MIXED_PWS)
038   @Beanp(dictionary=HtmlBeanDictionary.class, name="c")
039   @Override
040   public LinkedList<Object> getChildren() {
041      return super.getChildren();
042   }
043
044   @Override /* HtmlElement */
045   public final Pre _class(String _class) {
046      super._class(_class);
047      return this;
048   }
049
050   @Override /* HtmlElement */
051   public final Pre id(String id) {
052      super.id(id);
053      return this;
054   }
055
056   @Override /* HtmlElement */
057   public final Pre style(String style) {
058      super.style(style);
059      return this;
060   }
061
062   @Override /* HtmlElementMixed */
063   public Pre children(Object...children) {
064      super.children(children);
065      return this;
066   }
067
068   @Override /* HtmlElementMixed */
069   public Pre child(Object child) {
070      super.child(child);
071      return this;
072   }
073}