src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlAttr.java

Tue, 24 Dec 2013 09:17:37 -0800

author
ksrini
date
Tue, 24 Dec 2013 09:17:37 -0800
changeset 2227
998b10c43157
parent 1981
7fb27bc201cc
child 2413
fe033d997ddf
permissions
-rw-r--r--

8029230: Update copyright year to match last edit in jdk8 langtools repository for 2013
Reviewed-by: ksrini
Contributed-by: steve.sides@oracle.com

bpatel@766 1 /*
ksrini@2227 2 * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
bpatel@766 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
bpatel@766 4 *
bpatel@766 5 * This code is free software; you can redistribute it and/or modify it
bpatel@766 6 * under the terms of the GNU General Public License version 2 only, as
bpatel@766 7 * published by the Free Software Foundation. Oracle designates this
bpatel@766 8 * particular file as subject to the "Classpath" exception as provided
bpatel@766 9 * by Oracle in the LICENSE file that accompanied this code.
bpatel@766 10 *
bpatel@766 11 * This code is distributed in the hope that it will be useful, but WITHOUT
bpatel@766 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
bpatel@766 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
bpatel@766 14 * version 2 for more details (a copy is included in the LICENSE file that
bpatel@766 15 * accompanied this code).
bpatel@766 16 *
bpatel@766 17 * You should have received a copy of the GNU General Public License version
bpatel@766 18 * 2 along with this work; if not, write to the Free Software Foundation,
bpatel@766 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
bpatel@766 20 *
bpatel@766 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
bpatel@766 22 * or visit www.oracle.com if you need additional information or have any
bpatel@766 23 * questions.
bpatel@766 24 */
bpatel@766 25
bpatel@766 26 package com.sun.tools.doclets.formats.html.markup;
bpatel@766 27
bpatel@766 28 /**
bpatel@766 29 * Enum representing HTML tag attributes.
bpatel@766 30 *
jjg@1359 31 * <p><b>This is NOT part of any supported API.
jjg@1359 32 * If you write code that depends on this, you do so at your own risk.
jjg@1359 33 * This code and its internal interfaces are subject to change or
jjg@1359 34 * deletion without notice.</b>
jjg@1359 35 *
bpatel@766 36 * @author Bhavesh Patel
bpatel@766 37 */
bpatel@766 38 public enum HtmlAttr {
bpatel@766 39 ALT,
bpatel@766 40 BORDER,
bpatel@766 41 CELLPADDING,
bpatel@766 42 CELLSPACING,
bpatel@766 43 CLASS,
bpatel@766 44 CLEAR,
bpatel@766 45 COLS,
bpatel@766 46 CONTENT,
bpatel@766 47 HREF,
bpatel@766 48 HTTP_EQUIV("http-equiv"),
bpatel@766 49 ID,
bpatel@766 50 LANG,
bpatel@766 51 NAME,
bpatel@766 52 ONLOAD,
bpatel@766 53 REL,
bpatel@766 54 ROWS,
bpatel@766 55 SCOPE,
bpatel@766 56 SCROLLING,
bpatel@766 57 SRC,
bpatel@766 58 SUMMARY,
bpatel@766 59 TARGET,
bpatel@766 60 TITLE,
bpatel@766 61 TYPE,
bpatel@766 62 WIDTH;
bpatel@766 63
bpatel@766 64 private final String value;
bpatel@766 65
bpatel@766 66 HtmlAttr() {
bpatel@766 67 this.value = name().toLowerCase();
bpatel@766 68 }
bpatel@766 69
bpatel@766 70 HtmlAttr(String name) {
bpatel@766 71 this.value = name;
bpatel@766 72 }
bpatel@766 73
bpatel@766 74 public String toString() {
bpatel@766 75 return value;
bpatel@766 76 }
bpatel@766 77 }

mercurial