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
-
handleComment(String)
- This function is called by the parser when it has
recognized a comment.
-
handleData(String)
- This function is called by the parser when it has
recognized character data.
-
handleEndDoc()
- This function is called by the parser when it has
recognized the end of a document or sub-document.
-
handleEndTag(String)
- This function is called by the parser when it has
recognized an end tag
-
handleGeneralEntity(String)
- This function is called by the parser when it has
recognized a general entity.
-
handlePI(String)
- This function is called by the parser when it has
recognized a processing instruction.
-
handleStartDoc(String, String, String)
- This function is called by the parser when it has
recognized a doctype declaration.
-
handleStartTag(String, AttributeList)
- This function is called by the parser when it has
recognized a start tag.
-
start()
- Parse a HTML document
Methods
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 <!-- -->)
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
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
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
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 <? ?>)
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
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
handleGeneralEntity
public String handleGeneralEntity(String name)
- This function is called by the parser when it has
recognized a general entity.
This function returns :
return "&" + name + ";";
- Parameters:
- name - the name of the general entity in uppercase
- Returns:
- value The value of the entity
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