001/**
002 * Copyright 2005-2018 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package org.kuali.rice.krad.uif.element;
017
018import org.kuali.rice.krad.datadictionary.parse.BeanTag;
019import org.kuali.rice.krad.datadictionary.parse.BeanTagAttribute;
020
021/**
022 * Renders a meta tag in the head of the html document.
023 *
024 * <p>The meta tag component can be used to create meta tags by defining the attributes:
025 * name, content and http_equiv</p>
026 *
027 * @author Kuali Rice Team (rice.collab@kuali.org)
028 */
029@BeanTag(name = "metaTag", parent = "Uif-MetaTag")
030public class MetaTag extends ContentElementBase {
031    private static final long serialVersionUID = -3479173950568700937L;
032
033    private String name;
034    private String content;
035    private String http_equiv;
036
037    public MetaTag() {
038        super();
039    }
040
041    /**
042     * Name attribute for meta tag.
043     *
044     * <p>Name attribute to be rendered on this meta tag</p>
045     *
046     * @return  name attribute of meta tag
047     */
048    @BeanTagAttribute
049    public String getName() {
050        return name;
051    }
052
053    /**
054     * @see MetaTag#getName()
055     */
056    public void setName(String name) {
057        this.name = name;
058    }
059
060    /**
061     * Content attribute for meta tag.
062     *
063     * <p>Content attribute to be rendered on this meta tag</p>
064     *
065     * @return  content attribute of meta tag
066     */
067    @BeanTagAttribute
068    public String getContent() {
069        return content;
070    }
071
072    /**
073     * @see MetaTag#getContent()
074     */
075    public void setContent(String content) {
076        this.content = content;
077    }
078
079    /**
080     * Http_equiv attribute for meta tag.
081     *
082     * <p>Http_equiv attribute to be rendered on this meta tag</p>
083     *
084     * @return  http_equiv attribute of meta tag
085     */
086    @BeanTagAttribute
087    public String getHttp_equiv() {
088        return http_equiv;
089    }
090
091    /**
092     * @see MetaTag#getHttp_equiv()
093     */
094    public void setHttp_equiv(String http_equiv) {
095        this.http_equiv = http_equiv;
096    }
097}