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.document-metadata#the-meta-element <meta>}
019 * element.
020 *
021 * <ul class='seealso'>
022 *    <li class='link'>{@doc juneau-dto.HTML5}
023 * </ul>
024 */
025@Bean(typeName="meta")
026public class Meta extends HtmlElementVoid {
027
028   /**
029    * {@doc HTML5.document-metadata#attr-meta-charset charset}
030    * attribute.
031    *
032    * <p>
033    * Character encoding declaration.
034    *
035    * @param charset The new value for this attribute.
036    * @return This object (for method chaining).
037    */
038   public final Meta charset(String charset) {
039      attr("charset", charset);
040      return this;
041   }
042
043   /**
044    * {@doc HTML5.document-metadata#attr-meta-content content}
045    * attribute.
046    *
047    * <p>
048    * Value of the element.
049    *
050    * @param content The new value for this attribute.
051    * @return This object (for method chaining).
052    */
053   public final Meta content(String content) {
054      attr("content", content);
055      return this;
056   }
057
058   /**
059    * {@doc HTML5.document-metadata#attr-meta-http-equiv http-equiv}
060    * attribute.
061    *
062    * <p>
063    * Pragma directive.
064    *
065    * @param httpequiv The new value for this attribute.
066    * @return This object (for method chaining).
067    */
068   public final Meta httpequiv(String httpequiv) {
069      attr("http-equiv", httpequiv);
070      return this;
071   }
072
073   /**
074    * {@doc HTML5.document-metadata#attr-meta-name name} attribute.
075    *
076    * <p>
077    * Metadata name.
078    *
079    * @param name The new value for this attribute.
080    * @return This object (for method chaining).
081    */
082   public final Meta name(String name) {
083      attr("name", name);
084      return this;
085   }
086
087
088   //-----------------------------------------------------------------------------------------------------------------
089   // Overridden methods
090   //-----------------------------------------------------------------------------------------------------------------
091
092   @Override /* HtmlElement */
093   public final Meta _class(String _class) {
094      super._class(_class);
095      return this;
096   }
097
098   @Override /* HtmlElement */
099   public final Meta id(String id) {
100      super.id(id);
101      return this;
102   }
103}