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