亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
1024亚洲合集| 精品久久一区二区三区| 国产91色综合久久免费分享| 五月婷婷激情综合| 亚洲成人黄色影院| 亚洲午夜激情网页| 天堂va蜜桃一区二区三区漫画版| 亚洲日本中文字幕区| **欧美大码日韩| 一区二区久久久久久| 一区二区视频免费在线观看| 一区2区3区在线看| 亚洲综合免费观看高清完整版在线 | 91精品国产入口| 欧美美女一区二区在线观看| 欧美人体做爰大胆视频| 欧美精品亚洲一区二区在线播放| 欧美三级三级三级爽爽爽| 欧美日韩亚洲丝袜制服| 337p亚洲精品色噜噜狠狠| 91精品国产欧美一区二区18| 日韩一区二区视频在线观看| 精品国产凹凸成av人网站| 国产精品少妇自拍| 一区二区三区在线观看国产| 午夜精品一区二区三区三上悠亚| 日本va欧美va瓶| 国产乱人伦偷精品视频不卡| 97精品视频在线观看自产线路二| 日韩一区二区三区av| 日韩欧美在线一区二区三区| 国产日韩欧美一区二区三区乱码 | 日本一区二区三区在线不卡| 亚洲免费观看高清完整版在线观看| 一区二区三区欧美视频| 久久国产精品第一页| www.av精品| 欧美一区日本一区韩国一区| 欧美国产精品久久| 午夜伊人狠狠久久| 成人av综合在线| 欧美久久久久久久久| 欧美激情在线看| 日韩国产欧美在线播放| 福利91精品一区二区三区| 欧美日韩精品一区二区三区四区| 久久久久一区二区三区四区| 亚洲国产日日夜夜| 国产精品自拍在线| 91麻豆精品国产自产在线观看一区 | 五月婷婷综合激情| 99精品视频在线观看| 欧美第一区第二区| 玉米视频成人免费看| 国产精品1区二区.| 91精品福利在线一区二区三区 | 欧美午夜寂寞影院| 国产精品视频线看| 加勒比av一区二区| 欧美夫妻性生活| 亚洲一级片在线观看| 99精品一区二区三区| 久久这里只有精品6| 天天av天天翘天天综合网| av电影在线观看一区| 国产日本亚洲高清| 国产呦精品一区二区三区网站| 欧美日韩免费一区二区三区 | 国产亚洲一区字幕| 蜜臀av性久久久久蜜臀av麻豆| 日本韩国欧美在线| 亚洲美女少妇撒尿| 色婷婷久久久久swag精品| 亚洲欧洲精品天堂一级 | 一区二区三区日韩| 91蝌蚪porny成人天涯| 一区在线播放视频| 91欧美一区二区| 亚洲欧洲日韩av| 色婷婷久久久久swag精品 | 欧美怡红院视频| 亚洲黄色av一区| 欧美系列亚洲系列| 亚洲va中文字幕| 91麻豆精品久久久久蜜臀| 婷婷开心久久网| 国产精品视频在线看| 高清成人免费视频| 国产女人18毛片水真多成人如厕| 国产精品18久久久| 国产精品久久久久久一区二区三区| 成人污污视频在线观看| 中文字幕在线观看一区二区| 99天天综合性| 亚洲无人区一区| 欧美一区二区观看视频| 国产一区999| 国产精品对白交换视频| 日本韩国一区二区三区视频| 五月婷婷综合激情| 久久久久久久电影| 色哟哟一区二区| 另类小说色综合网站| 中文字幕欧美国产| 欧洲精品中文字幕| 国产一区二区免费看| 亚洲黄色性网站| 欧美xxxxx牲另类人与| 成人黄色av网站在线| 亚洲妇女屁股眼交7| 欧美成人r级一区二区三区| 成人精品电影在线观看| 亚洲一区二区三区视频在线| 欧美成人a在线| 色先锋资源久久综合| 国内精品伊人久久久久影院对白| 国产精品国产馆在线真实露脸| 欧美精品一二三四| jvid福利写真一区二区三区| 日本午夜一区二区| 亚洲视频在线观看三级| 欧美一区二区三区思思人| 99久久精品免费看国产| 免费观看一级特黄欧美大片| 亚洲蜜臀av乱码久久精品| wwww国产精品欧美| 欧美综合久久久| 成人小视频免费在线观看| 人妖欧美一区二区| 粉嫩在线一区二区三区视频| 成人精品视频一区二区三区尤物| ...av二区三区久久精品| 欧美mv日韩mv国产| 欧美肥妇bbw| 欧美亚洲禁片免费| 成人高清在线视频| 国产酒店精品激情| 日本中文字幕一区二区视频 | 91蜜桃婷婷狠狠久久综合9色| 精品午夜久久福利影院| 日韩av一二三| 亚洲国产综合人成综合网站| 中文字幕综合网| 18欧美亚洲精品| 国产精品久久久久毛片软件| 久久蜜桃一区二区| 久久网站最新地址| 欧美电影免费观看高清完整版 | 国产精品美女一区二区三区| 亚洲精品在线观| 久久久久久久久99精品| 精品理论电影在线观看| 日韩西西人体444www| 制服丝袜亚洲播放| 制服丝袜日韩国产| 日韩一区二区电影在线| 日韩欧美www| 精品国产乱码久久久久久浪潮| 欧美一卡2卡3卡4卡| 日韩精品一区二区三区中文不卡 | 亚洲青青青在线视频| 综合久久综合久久| 亚洲欧美日韩人成在线播放| 亚洲精品中文字幕在线观看| 亚洲永久精品大片| 亚洲777理论| 蜜桃在线一区二区三区| 精品在线观看视频| 懂色一区二区三区免费观看 | 欧美色成人综合| 日韩一级大片在线观看| 精品国产乱码久久久久久蜜臀| 久久久久久**毛片大全| 国产精品久久久久三级| 亚洲午夜精品网| 另类小说综合欧美亚洲| 国产成人免费在线| 一本一道久久a久久精品| 欧美日韩高清不卡| 精品三级在线观看| 国产精品每日更新| 亚洲精品乱码久久久久| 免费日本视频一区| 成人免费三级在线| 欧美另类久久久品| 久久精品视频在线免费观看| 亚洲免费观看在线观看| 免费成人在线网站| 成人国产一区二区三区精品| 制服视频三区第一页精品| 久久久久久久网| 亚洲小说春色综合另类电影| 国产综合久久久久久久久久久久| aa级大片欧美| 欧美sm美女调教| 亚洲韩国一区二区三区| 国产成人精品一区二区三区四区| 欧美亚洲日本一区| 国产精品成人免费精品自在线观看| 香蕉成人伊视频在线观看|