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.edits#the-del-element <del>}
019 * element.
020 *
021 * <ul class='seealso'>
022 *    <li class='link'>{@doc juneau-dto.HTML5}
023 * </ul>
024 */
025@Bean(typeName="del")
026public class Del extends HtmlElementMixed {
027
028   /**
029    * {@doc HTML5.edits#attr-mod-cite cite} attribute.
030    *
031    * <p>
032    * Link to the source of the quotation or more information about the edit.
033    *
034    * @param cite The new value for this attribute.
035    * @return This object (for method chaining).
036    */
037   public final Del cite(String cite) {
038      attr("cite", cite);
039      return this;
040   }
041
042   /**
043    * {@doc HTML5.edits#attr-mod-datetime datetime} attribute.
044    *
045    * <p>
046    * Date and (optionally) time of the change.
047    *
048    * @param datetime The new value for this attribute.
049    * @return This object (for method chaining).
050    */
051   public final Del datetime(String datetime) {
052      attr("datetime", datetime);
053      return this;
054   }
055
056
057   //-----------------------------------------------------------------------------------------------------------------
058   // Overridden methods
059   //-----------------------------------------------------------------------------------------------------------------
060
061   @Override /* HtmlElement */
062   public final Del _class(String _class) {
063      super._class(_class);
064      return this;
065   }
066
067   @Override /* HtmlElement */
068   public final Del id(String id) {
069      super.id(id);
070      return this;
071   }
072
073   @Override /* HtmlElement */
074   public final Del style(String style) {
075      super.style(style);
076      return this;
077   }
078
079   @Override /* HtmlElementMixed */
080   public Del children(Object...children) {
081      super.children(children);
082      return this;
083   }
084
085   @Override /* HtmlElementMixed */
086   public Del child(Object child) {
087      super.child(child);
088      return this;
089   }
090}