1 /*
2 * Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
536 /**
537 * All text content is labeled with this tag.
538 * <p>
539 * This is a tag synthesized by the HTML reader.
540 * Since elements are identified by their tag type,
541 * we create a some fake tag types to mark the elements
542 * that were manufactured.
543 */
544 public static final Tag CONTENT = new Tag("content");
545
546 /**
547 * All comments are labeled with this tag.
548 * <p>
549 * This is a tag synthesized by the HTML reader.
550 * Since elements are identified by their tag type,
551 * we create a some fake tag types to mark the elements
552 * that were manufactured.
553 */
554 public static final Tag COMMENT = new Tag("comment");
555
556 static final Tag allTags[] = {
557 A, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BIG,
558 BLOCKQUOTE, BODY, BR, CAPTION, CENTER, CITE, CODE,
559 DD, DFN, DIR, DIV, DL, DT, EM, FONT, FORM, FRAME,
560 FRAMESET, H1, H2, H3, H4, H5, H6, HEAD, HR, HTML,
561 I, IMG, INPUT, ISINDEX, KBD, LI, LINK, MAP, MENU,
562 META, NOBR, NOFRAMES, OBJECT, OL, OPTION, P, PARAM,
563 PRE, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, S,
564 STRONG, STYLE, SUB, SUP, TABLE, TD, TEXTAREA,
565 TH, TITLE, TR, TT, U, UL, VAR
566 };
567
568 static {
569 // Force HTMLs static initialize to be loaded.
570 getTag("html");
571 }
572 }
573
574 /**
575 * Class represents unknown HTML tag.
576 */
1043 * Attribute "scrolling"
1044 */
1045 public static final Attribute SCROLLING = new Attribute("scrolling");
1046
1047 /**
1048 * Attribute "noresize"
1049 */
1050 public static final Attribute NORESIZE = new Attribute("noresize");
1051
1052 /**
1053 * Attribute "endtag"
1054 */
1055 public static final Attribute ENDTAG = new Attribute("endtag");
1056
1057 /**
1058 * Attribute "comment"
1059 */
1060 public static final Attribute COMMENT = new Attribute("comment");
1061 static final Attribute MEDIA = new Attribute("media");
1062
1063 static final Attribute allAttributes[] = {
1064 FACE,
1065 COMMENT,
1066 SIZE,
1067 COLOR,
1068 CLEAR,
1069 BACKGROUND,
1070 BGCOLOR,
1071 TEXT,
1072 LINK,
1073 VLINK,
1074 ALINK,
1075 WIDTH,
1076 HEIGHT,
1077 ALIGN,
1078 NAME,
1079 HREF,
1080 REL,
1081 REV,
1082 TITLE,
1083 TARGET,
|
1 /*
2 * Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
536 /**
537 * All text content is labeled with this tag.
538 * <p>
539 * This is a tag synthesized by the HTML reader.
540 * Since elements are identified by their tag type,
541 * we create a some fake tag types to mark the elements
542 * that were manufactured.
543 */
544 public static final Tag CONTENT = new Tag("content");
545
546 /**
547 * All comments are labeled with this tag.
548 * <p>
549 * This is a tag synthesized by the HTML reader.
550 * Since elements are identified by their tag type,
551 * we create a some fake tag types to mark the elements
552 * that were manufactured.
553 */
554 public static final Tag COMMENT = new Tag("comment");
555
556 static final Tag[] allTags = {
557 A, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BIG,
558 BLOCKQUOTE, BODY, BR, CAPTION, CENTER, CITE, CODE,
559 DD, DFN, DIR, DIV, DL, DT, EM, FONT, FORM, FRAME,
560 FRAMESET, H1, H2, H3, H4, H5, H6, HEAD, HR, HTML,
561 I, IMG, INPUT, ISINDEX, KBD, LI, LINK, MAP, MENU,
562 META, NOBR, NOFRAMES, OBJECT, OL, OPTION, P, PARAM,
563 PRE, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, S,
564 STRONG, STYLE, SUB, SUP, TABLE, TD, TEXTAREA,
565 TH, TITLE, TR, TT, U, UL, VAR
566 };
567
568 static {
569 // Force HTMLs static initialize to be loaded.
570 getTag("html");
571 }
572 }
573
574 /**
575 * Class represents unknown HTML tag.
576 */
1043 * Attribute "scrolling"
1044 */
1045 public static final Attribute SCROLLING = new Attribute("scrolling");
1046
1047 /**
1048 * Attribute "noresize"
1049 */
1050 public static final Attribute NORESIZE = new Attribute("noresize");
1051
1052 /**
1053 * Attribute "endtag"
1054 */
1055 public static final Attribute ENDTAG = new Attribute("endtag");
1056
1057 /**
1058 * Attribute "comment"
1059 */
1060 public static final Attribute COMMENT = new Attribute("comment");
1061 static final Attribute MEDIA = new Attribute("media");
1062
1063 static final Attribute[] allAttributes = {
1064 FACE,
1065 COMMENT,
1066 SIZE,
1067 COLOR,
1068 CLEAR,
1069 BACKGROUND,
1070 BGCOLOR,
1071 TEXT,
1072 LINK,
1073 VLINK,
1074 ALINK,
1075 WIDTH,
1076 HEIGHT,
1077 ALIGN,
1078 NAME,
1079 HREF,
1080 REL,
1081 REV,
1082 TITLE,
1083 TARGET,
|