亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? attributetests.java

?? html to xml convertor
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
// HTMLParser Library $Name: v1_6 $ - A java-based parser for HTML// http://sourceforge.org/projects/htmlparser// Copyright (C) 2004 Derrick Oswald//// Revision Control Information//// $Source: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/lexerTests/AttributeTests.java,v $// $Author: derrickoswald $// $Date: 2004/07/18 21:31:22 $// $Revision: 1.19 $//// This library is free software; you can redistribute it and/or// modify it under the terms of the GNU Lesser General Public// License as published by the Free Software Foundation; either// version 2.1 of the License, or (at your option) any later version.//// This library is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU// Lesser General Public License for more details.//// You should have received a copy of the GNU Lesser General Public// License along with this library; if not, write to the Free Software// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA//package org.htmlparser.tests.lexerTests;import java.util.Vector;import org.htmlparser.Node;import org.htmlparser.Attribute;import org.htmlparser.PrototypicalNodeFactory;import org.htmlparser.Tag;import org.htmlparser.lexer.PageAttribute;import org.htmlparser.nodes.TagNode;import org.htmlparser.tags.ImageTag;import org.htmlparser.tags.LinkTag;import org.htmlparser.tests.ParserTestCase;import org.htmlparser.util.NodeIterator;import org.htmlparser.util.ParserException;public class AttributeTests extends ParserTestCase{    static    {        System.setProperty ("org.htmlparser.tests.lexerTests.AttributeTests", "AttributeTests");    }    private static final boolean JSP_TESTS_ENABLED = false;    private Tag tag;    private Vector attributes;    public AttributeTests (String name) {        super(name);    }    public void getParameterTableFor(String tagContents)    {        getParameterTableFor (tagContents, false);    }    public void getParameterTableFor(String tagContents, boolean dump)    {        String html;        NodeIterator iterator;        Node node;        html = "<" + tagContents + ">";        createParser (html);        parser.setNodeFactory (new PrototypicalNodeFactory (true));        try        {            iterator = parser.elements ();            node = iterator.nextNode ();            if (node instanceof Tag)            {                tag = (Tag)node;                attributes = tag.getAttributesEx ();                if (dump)                {                    for (int i = 0; i < attributes.size (); i++)                    {                        System.out.print ("Attribute #" + i);                        Attribute attribute = (Attribute)attributes.elementAt (i);                        if (null != attribute.getName ())                            System.out.print (" Name: '" + attribute.getName () + "'");                        if (null != attribute.getAssignment ())                            System.out.print (" Assignment: '" + attribute.getAssignment () + "'");                        if (0 != attribute.getQuote ())                            System.out.print (" Quote: " + attribute.getQuote ());                        if (null != attribute.getValue ())                            System.out.print (" Value: '" + attribute.getValue () + "'");                        System.out.println ();                    }                    System.out.println ();                }            }            else                attributes = null;            String string = node.toHtml ();            assertEquals ("toHtml differs", html, string);            assertTrue ("shouldn't be any more nodes", !iterator.hasMoreNodes ());        }        catch (ParserException pe)        {            fail (pe.getMessage ());        }    }    /**     * Test constructors.     */    public void testConstructors ()    {        Vector attributes;        Tag tag;        String html;        attributes = new Vector ();         // String, null        attributes.add (new Attribute ("wombat", null));        // String        attributes.add (new Attribute (" "));        // String, String        attributes.add (new Attribute ("label", "The civil war."));        attributes.add (new Attribute (" "));        // String, String, String        attributes.add (new Attribute ("frameborder", "= ", "no"));        attributes.add (new Attribute (" "));        // String String, String, char        attributes.add (new Attribute ("name", "=", "topFrame", '"'));        tag = new TagNode (null, 0, 0, attributes);        html = "<wombat label=\"The civil war.\" frameborder= no name=\"topFrame\">";        assertStringEquals ("tag contents", html, tag.toHtml ());    }    /**     * Test bean properties.     */    public void testProperties ()    {        Attribute attribute;        Attribute space;        Vector attributes;        Tag tag;        String html;        attributes = new Vector ();        attribute = new Attribute ();        attribute.setName ("wombat");        assertTrue ("should be standalone", attribute.isStandAlone ());        assertTrue ("should not be whitespace", !attribute.isWhitespace ());        assertTrue ("should not be valued", !attribute.isValued ());        assertTrue ("should not be empty", !attribute.isEmpty ());        attributes.add (attribute);        space = new Attribute ();        space.setValue (" ");        assertTrue ("should not be standalone", !space.isStandAlone ());        assertTrue ("should be whitespace", space.isWhitespace ());        assertTrue ("should be valued", space.isValued ());        assertTrue ("should not be empty", !space.isEmpty ());        attributes.add (space);        attribute = new Attribute ();        attribute.setName ("label");        attribute.setAssignment ("=");        attribute.setRawValue ("The civil war.");        assertTrue ("should not be standalone", !attribute.isStandAlone ());        assertTrue ("should not be whitespace", !attribute.isWhitespace ());        assertTrue ("should be valued", attribute.isValued ());        assertTrue ("should not be empty", !attribute.isEmpty ());        attributes.add (attribute);        attributes.add (space);        attribute = new Attribute ();        attribute.setName ("frameborder");        attribute.setAssignment ("= ");        attribute.setRawValue ("no");        attributes.add (attribute);        attributes.add (space);        attribute = new Attribute ();        attribute.setName ("name");        attribute.setAssignment ("=");        attribute.setValue ("topFrame");        attribute.setQuote ('"');        assertTrue ("should not be standalone", !attribute.isStandAlone ());        assertTrue ("should not be whitespace", !attribute.isWhitespace ());        assertTrue ("should be valued", attribute.isValued ());        assertTrue ("should not be empty", !attribute.isEmpty ());        attributes.add (attribute);        tag = new TagNode (null, 0, 0, attributes);        html = "<wombat label=\"The civil war.\" frameborder= no name=\"topFrame\">";        assertStringEquals ("tag contents", html, tag.toHtml ());    }    /**     * Test constructors.     */    public void testConstructors2 ()    {        Vector attributes;        Tag tag;        String html;        attributes = new Vector ();         // String, null        attributes.add (new PageAttribute ("wombat", null));        // String        attributes.add (new PageAttribute (" "));        // String, String        attributes.add (new PageAttribute ("label", "The civil war."));        attributes.add (new PageAttribute (" "));        // String, String, String        attributes.add (new PageAttribute ("frameborder", "= ", "no"));        attributes.add (new PageAttribute (" "));        // String String, String, char        attributes.add (new PageAttribute ("name", "=", "topFrame", '"'));        tag = new TagNode (null, 0, 0, attributes);        html = "<wombat label=\"The civil war.\" frameborder= no name=\"topFrame\">";        assertStringEquals ("tag contents", html, tag.toHtml ());    }    /**     * Test bean properties.     */    public void testProperties2 ()    {        Attribute attribute;        Attribute space;        Vector attributes;        Tag tag;        String html;        attributes = new Vector ();        attribute = new PageAttribute ();        attribute.setName ("wombat");        assertTrue ("should be standalone", attribute.isStandAlone ());        assertTrue ("should not be whitespace", !attribute.isWhitespace ());        assertTrue ("should not be valued", !attribute.isValued ());        assertTrue ("should not be empty", !attribute.isEmpty ());        attributes.add (attribute);        space = new PageAttribute ();        space.setValue (" ");        assertTrue ("should not be standalone", !space.isStandAlone ());        assertTrue ("should be whitespace", space.isWhitespace ());        assertTrue ("should be valued", space.isValued ());        assertTrue ("should not be empty", !space.isEmpty ());        attributes.add (space);        attribute = new PageAttribute ();        attribute.setName ("label");        attribute.setAssignment ("=");        attribute.setRawValue ("The civil war.");        assertTrue ("should not be standalone", !attribute.isStandAlone ());        assertTrue ("should not be whitespace", !attribute.isWhitespace ());        assertTrue ("should be valued", attribute.isValued ());        assertTrue ("should not be empty", !attribute.isEmpty ());        attributes.add (attribute);        attributes.add (space);        attribute = new PageAttribute ();        attribute.setName ("frameborder");        attribute.setAssignment ("= ");

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
免费看黄色91| 成人精品国产福利| 国产精品美女久久久久久2018| 欧美www视频| 久久女同互慰一区二区三区| 精品国产乱码久久久久久久| 日韩一区二区在线免费观看| 91精品国产欧美一区二区18| 欧美一级理论片| 欧美一区二区三区播放老司机| 日韩欧美一区二区在线视频| 精品国精品国产| 久久久久久一二三区| 国产精品毛片a∨一区二区三区| 国产精品毛片无遮挡高清| 亚洲欧美日韩国产一区二区三区| 伊人夜夜躁av伊人久久| 香蕉久久一区二区不卡无毒影院 | 蜜桃久久精品一区二区| 日韩中文字幕91| 国产精品99久久久久久有的能看 | 日韩专区在线视频| 日本午夜精品视频在线观看| 免费av网站大全久久| 国产剧情一区在线| 99精品桃花视频在线观看| 色老汉av一区二区三区| 欧美一区午夜精品| 久久久另类综合| 亚洲一区在线免费观看| 老色鬼精品视频在线观看播放| 国产精品18久久久久久久久久久久 | 成人高清免费观看| 国产在线一区观看| gogo大胆日本视频一区| 欧美中文字幕一区| 久久亚洲一区二区三区四区| 中文字幕亚洲区| 日本少妇一区二区| www.欧美.com| 日韩一级完整毛片| 亚洲综合999| 国产精品99久| 91精品国产免费久久综合| 国产精品乱码人人做人人爱| 日韩精品一级中文字幕精品视频免费观看| 国产精品亚洲综合一区在线观看| 欧美色男人天堂| 中文字幕中文字幕中文字幕亚洲无线| 日日夜夜精品免费视频| 国产成人免费视频| 国产精品久久久久影院老司| 同产精品九九九| 成人免费福利片| 欧美mv日韩mv国产网站| 亚洲男人电影天堂| 成人av在线播放网址| 精品久久久久久久久久久久久久久久久 | 日韩精品一区二区三区四区视频| 综合电影一区二区三区| 国产美女视频91| 欧美变态口味重另类| 亚洲午夜av在线| 在线免费观看成人短视频| 日韩一区日韩二区| 岛国一区二区在线观看| 亚洲黄一区二区三区| 国产乱色国产精品免费视频| 欧美伦理影视网| 亚洲午夜一区二区三区| 97se亚洲国产综合自在线不卡| 国产日韩精品一区二区浪潮av| 免费成人av资源网| 日韩一区二区三区精品视频 | 7777精品伊人久久久大香线蕉经典版下载 | 亚洲国产综合91精品麻豆| 成人高清视频在线观看| 国产精品乱码一区二区三区软件| 国产 日韩 欧美大片| 精品免费一区二区三区| 久久国产精品色婷婷| 欧美成人一区二区三区在线观看 | 成人性生交大合| 国产人妖乱国产精品人妖| 国产精品一区一区三区| 久久精品一区二区| 午夜精品免费在线| 国产欧美日韩中文久久| 日日摸夜夜添夜夜添国产精品 | 欧美一区二区三区在线电影| 午夜精品久久久久久久久久 | 国产精品卡一卡二卡三| 国产成人精品亚洲午夜麻豆| 久久精品一区八戒影视| 99久久99久久免费精品蜜臀| 樱桃国产成人精品视频| 91精品国产综合久久精品性色| 人人狠狠综合久久亚洲| 精品久久久三级丝袜| 成人一区二区视频| 亚洲综合av网| 日韩欧美国产一区二区在线播放| 国产91精品久久久久久久网曝门| 亚洲欧洲综合另类在线| 欧美一区二区播放| 高潮精品一区videoshd| 午夜免费欧美电影| 国产蜜臀av在线一区二区三区| 99精品视频在线播放观看| 亚洲一区二区三区四区在线观看| 欧美本精品男人aⅴ天堂| 成人激情午夜影院| 日韩综合小视频| 中文字幕国产一区二区| 欧美精品xxxxbbbb| 丁香亚洲综合激情啪啪综合| 亚洲综合图片区| 国产欧美日本一区视频| 欧美日韩久久不卡| av午夜一区麻豆| 日本美女视频一区二区| 亚洲视频 欧洲视频| 精品国产91久久久久久久妲己| 色婷婷久久久久swag精品| 国产一区二区三区香蕉| 丝袜诱惑亚洲看片| 日韩毛片视频在线看| 久久久综合精品| 在线电影一区二区三区| 91看片淫黄大片一级在线观看| 精品亚洲成av人在线观看| 亚洲最大成人综合| 国产精品久久久久久久久久久免费看 | 亚洲色图在线视频| 精品久久久三级丝袜| 欧美性高清videossexo| 成人中文字幕合集| 精品中文字幕一区二区小辣椒| 一区二区三区精品视频在线| 国产精品视频yy9299一区| 精品国产乱码久久久久久久久 | 色94色欧美sute亚洲线路一久| 国产一区二区调教| 日韩va亚洲va欧美va久久| 亚洲一区二区三区国产| 亚洲日本青草视频在线怡红院 | 91精品国产色综合久久| 欧洲av一区二区嗯嗯嗯啊| 97久久精品人人做人人爽| 国产iv一区二区三区| 国产一区二区在线视频| 精品无人区卡一卡二卡三乱码免费卡| 亚洲国产精品人人做人人爽| 亚洲激情图片qvod| 一区二区三区自拍| 亚洲欧美日韩人成在线播放| 亚洲欧美日韩在线不卡| 洋洋成人永久网站入口| 一区二区三区四区精品在线视频| 日韩理论电影院| 日韩久久一区二区| 亚洲视频一区在线观看| 亚洲精品菠萝久久久久久久| 一区二区三区在线视频免费| 亚洲一本大道在线| 蜜臀久久99精品久久久画质超高清| 午夜精品久久久久影视| 理论电影国产精品| 国产99久久久久久免费看农村| 成人中文字幕电影| 色综合久久综合网欧美综合网| 欧美午夜影院一区| 欧美成人国产一区二区| 国产日韩三级在线| 一区二区三区欧美久久| 午夜国产精品影院在线观看| 日韩av二区在线播放| 国产乱码精品一区二区三| 91网站最新网址| 在线电影国产精品| 国产精品欧美久久久久一区二区| 亚洲欧美二区三区| 久久国产精品免费| 白白色亚洲国产精品| 欧美精选一区二区| 国产日韩欧美综合一区| 一区2区3区在线看| 国产一区在线观看视频| 在线亚洲欧美专区二区| 国产成人一区二区精品非洲| 国产视频亚洲色图| 一区在线观看免费| 蜜臀av一区二区在线免费观看| 精品一区二区三区香蕉蜜桃| 成人丝袜高跟foot| 日韩欧美高清一区| 一区二区在线看| 国产伦精品一区二区三区免费 | 国产在线精品视频| 日本精品一级二级|