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.embedded-content-0#the-param-element <param>} 019 * element. 020 * 021 * <ul class='seealso'> 022 * <li class='link'>{@doc juneau-dto.HTML5} 023 * </ul> 024 */ 025@Bean(typeName="param") 026public class Param extends HtmlElementVoid { 027 028 /** 029 * {@doc HTML5.embedded-content-0#attr-param-name name} attribute. 030 * 031 * <p> 032 * Name of parameter. 033 * 034 * @param name The new value for this attribute. 035 * @return This object (for method chaining). 036 */ 037 public final Param name(String name) { 038 attr("name", name); 039 return this; 040 } 041 042 /** 043 * {@doc HTML5.embedded-content-0#attr-param-value value} 044 * attribute. 045 * 046 * <p> 047 * Value of parameter. 048 * 049 * @param value 050 * The new value for this attribute. 051 * Typically a {@link Number} or {@link String}. 052 * @return This object (for method chaining). 053 */ 054 public final Param value(Object value) { 055 attr("value", value); 056 return this; 057 } 058 059 060 //----------------------------------------------------------------------------------------------------------------- 061 // Overridden methods 062 //----------------------------------------------------------------------------------------------------------------- 063 064 @Override /* HtmlElement */ 065 public final Param _class(String _class) { 066 super._class(_class); 067 return this; 068 } 069 070 @Override /* HtmlElement */ 071 public final Param id(String id) { 072 super.id(id); 073 return this; 074 } 075}