All Packages Class Hierarchy This Package Previous Next Index

Class org.jfouffa.jslider.generator.GeneratorImplementation

java.lang.Object
   |
   +----org.jfouffa.jslider.generator.Generator
           |
           +----org.jfouffa.jslider.generator.GeneratorImplementation

public final class GeneratorImplementation
extends Generator
implements DocumentListener, GeneratorImplementationConstant

Method index

 o handleComment(String)
This function is called by the parser when it has recognized a comment.
 o handleData(String)
This function is called by the parser when it has recognized character data.
 o handleEndDoc()
This function is called by the parser when it has recognized the end of a document or sub-document.
 o handleEndTag(String)
This function is called by the parser when it has recognized an end tag
 o handleGeneralEntity(String)
This function is called by the parser when it has recognized a general entity.
 o handlePI(String)
This function is called by the parser when it has recognized a processing instruction.
 o handleStartDoc(String, String, String)
This function is called by the parser when it has recognized a doctype declaration.
 o handleStartTag(String, AttributeList)
This function is called by the parser when it has recognized a start tag.
 o start()
Parse a HTML document

Methods

 o handleComment
 public void handleComment(String comment)
This function is called by the parser when it has recognized a comment.

Parameters:
comment - the comment string (without <!-- -->)
 o handleStartTag
 public void handleStartTag(String tag,
                            AttributeList attrs)
This function is called by the parser when it has recognized a start tag.

Parameters:
tag - the tag name in uppercase
 o handleEndTag
 public void handleEndTag(String tag)
This function is called by the parser when it has recognized an end tag

Parameters:
tag - the name of the tag in lowercase
 o handleData
 public void handleData(String data)
This function is called by the parser when it has recognized character data. The function may be called several times without intervening calls to handleStartTag() or handleEndTag(). The content of an element is thus the concatenation of all consecutive calls to handleData().

Parameters:
data - the character data
 o handlePI
 public void handlePI(String pi)
This function is called by the parser when it has recognized a processing instruction.

Parameters:
pi - the processing instruction (without <? ?>)
 o handleStartDoc
 public void handleStartDoc(String root,
                            String publicID,
                            String systemID)
This function is called by the parser when it has recognized a doctype declaration.

Parameters:
root - the name of the start tag
publicID - the public identifier for the DTD
systemID - the system identifier for the DTD
 o handleEndDoc
 public void handleEndDoc()
This function is called by the parser when it has recognized the end of a document or sub-document.

Parameters:
root - the name of the start tag
 o handleGeneralEntity
 public String handleGeneralEntity(String name)
This function is called by the parser when it has recognized a general entity. This function returns :
   return "&#38;" + name + ";";
 

Parameters:
name - the name of the general entity in uppercase
Returns:
value The value of the entity
 o start
 public void start()
Parse a HTML document

Parameters:
location - where to find the document
isDTD - Is this document is a DTD ?
Overrides:
start in class Generator