com.quiotix.html.parser
Class HtmlDocument.Annotation
java.lang.Object
com.quiotix.html.parser.HtmlDocument.HtmlElement
com.quiotix.html.parser.HtmlDocument.Annotation
- All Implemented Interfaces:
- Sized, Visitable
- Enclosing class:
- HtmlDocument
public static class HtmlDocument.Annotation
- extends HtmlDocument.HtmlElement
Annotations. These are not part of the HTML document, but
provide a way for HTML-processing applications to insert
annotations into the document. These annotations can be used by
other programs or can be brought to the user's attention at a
later time. For example, the HtmlCollector might insert an
annotation to indicate that there is no corresponding start tag
for an end tag.
HtmlDocument.Annotation
public HtmlDocument.Annotation(String type,
String text)
- Constructor.
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
Copyright © 1999-2011 Quiotix. All Rights Reserved.