Package org.htmlparser.tags

Examples of org.htmlparser.tags.Bullet


    }

    public Tag createTag(TagData tagData, CompositeTagData compositeTagData)
        throws ParserException
    {
        return new Bullet(tagData, compositeTagData);
    }
View Full Code Here


        NodeList nestedBulletLists =
            ((CompositeTag) node[0]).searchFor(BulletList.class);
        assertEquals("bullets in first list", 2, nestedBulletLists.size());
        BulletList firstList = (BulletList) nestedBulletLists.elementAt(0);
        Bullet firstBullet = (Bullet) firstList.childAt(0);
        Node firstNodeInFirstBullet = firstBullet.childAt(0);
        assertType(
            "first child in bullet",
            StringNode.class,
            firstNodeInFirstBullet);
        assertStringEquals(
View Full Code Here

     */
    public PrototypicalNodeFactory registerTags ()
    {
        registerTag (new AppletTag ());
        registerTag (new BaseHrefTag ());
        registerTag (new Bullet ());
        registerTag (new BulletList ());
        registerTag (new DefinitionList ());
        registerTag (new DefinitionListBullet ());
        registerTag (new DoctypeTag ());
        registerTag (new FormTag ());
View Full Code Here

            2,
            nestedBulletLists.size()
        );
        BulletList firstList =
            (BulletList)nestedBulletLists.elementAt(0);
        Bullet firstBullet =
            (Bullet)firstList.childAt(0);
        Node firstNodeInFirstBullet =
            firstBullet.childAt(0);
        assertType(
            "first child in bullet",
            Text.class,
            firstNodeInFirstBullet
        );
View Full Code Here

    super(filter, MATCH_STRING, ENDERS, END_TAG_ENDERS, false);
    this.ulli = ulli;
  }

  public Tag createTag(TagData tagData, CompositeTagData compositeTagData) throws ParserException {
    return new Bullet(tagData, compositeTagData);
  }
View Full Code Here

    parseAndAssertNodeCount(1);

    NodeList nestedBulletLists = ((CompositeTag) node[0]).searchFor(BulletList.class);
    assertEquals("bullets in first list", 2, nestedBulletLists.size());
    BulletList firstList = (BulletList) nestedBulletLists.elementAt(0);
    Bullet firstBullet = (Bullet) firstList.childAt(0);
    Node firstNodeInFirstBullet = firstBullet.childAt(0);
    assertType("first child in bullet", StringNode.class, firstNodeInFirstBullet);
    assertStringEquals("expected text", "Energy supply\r\n" + " (Campbell)  ", firstNodeInFirstBullet
        .toPlainTextString());
  }
View Full Code Here

TOP

Related Classes of org.htmlparser.tags.Bullet

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.