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 HTML5.text-level-semantics#the-data-element <data>}
019 * element.
020 *
021 * <h5 class='section'>See Also:</h5>
022 * <ul class='doctree'>
023 *    <li class='link'>{@doc juneau-dto.HTML5}
024 * </ul>
025 */
026@Bean(typeName="data")
027public class Data extends HtmlElementMixed {
028
029   /**
030    * {@doc HTML5.text-level-semantics#attr-data-value value}
031    * attribute.
032    *
033    * <p>
034    * Machine-readable value.
035    *
036    * @param value
037    *    The new value for this attribute.
038    *    Typically a {@link Number} or {@link String}.
039    * @return This object (for method chaining).
040    */
041   public final Data value(Object value) {
042      attr("value", value);
043      return this;
044   }
045
046
047   //-----------------------------------------------------------------------------------------------------------------
048   // Overridden methods
049   //-----------------------------------------------------------------------------------------------------------------
050
051   @Override /* HtmlElement */
052   public final Data _class(String _class) {
053      super._class(_class);
054      return this;
055   }
056
057   @Override /* HtmlElement */
058   public final Data id(String id) {
059      super.id(id);
060      return this;
061   }
062
063   @Override /* HtmlElement */
064   public final Data style(String style) {
065      super.style(style);
066      return this;
067   }
068
069   @Override /* HtmlElementMixed */
070   public Data children(Object...children) {
071      super.children(children);
072      return this;
073   }
074
075   @Override /* HtmlElementMixed */
076   public Data child(Object child) {
077      super.child(child);
078      return this;
079   }
080}