com.quiotix.html.parser
Class HtmlDocument.TagBlock

java.lang.Object
  extended by com.quiotix.html.parser.HtmlDocument.HtmlElement
      extended by com.quiotix.html.parser.HtmlDocument.TagBlock
All Implemented Interfaces:
Sized, Visitable
Enclosing class:
HtmlDocument

public static class HtmlDocument.TagBlock
extends HtmlDocument.HtmlElement

A tag block is a composite structure consisting of a start tag a sequence of HTML elements, and a matching end tag.


Field Summary
 HtmlDocument.ElementSequence body
          The sequance of elements which make up the body.
 HtmlDocument.EndTag endTag
          Tag at end of Block.
 HtmlDocument.Tag startTag
          Tag at start of Block.
 
Constructor Summary
HtmlDocument.TagBlock(String name, HtmlDocument.AttributeList aList, HtmlDocument.ElementSequence b)
          Constructor.
 
Method Summary
 void accept(HtmlVisitor v)
          Allow the Visitor to visit.
 int getLength()
           
 String text()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

startTag

public HtmlDocument.Tag startTag
Tag at start of Block.


endTag

public HtmlDocument.EndTag endTag
Tag at end of Block.


body

public HtmlDocument.ElementSequence body
The sequance of elements which make up the body.

Constructor Detail

HtmlDocument.TagBlock

public HtmlDocument.TagBlock(String name,
                             HtmlDocument.AttributeList aList,
                             HtmlDocument.ElementSequence b)
Constructor.

Method Detail

accept

public void accept(HtmlVisitor v)
Description copied from interface: Visitable
Allow the Visitor to visit.

Specified by:
accept in interface Visitable
Specified by:
accept in class HtmlDocument.HtmlElement
Parameters:
v - the visitor which has come to call

getLength

public int getLength()
Returns:
the number of characters

toString

public String toString()
Overrides:
toString in class Object

text

public String text()
Returns:
the text within a tag block


Copyright © 1999-2011 Quiotix. All Rights Reserved.