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