com.sun.java.help.impl

Class ParserEvent


public class ParserEvent
extends java.util.EventObject

An event in the HTML/XML Parser

Constructor Summary

ParserEvent(Object source, String text)
Represents a parsed continous block of text, a comment, or an error.
ParserEvent(Object source, String target, String data)
Represents a PI (processing instruction)
ParserEvent(Object source, String root, String publicId, String systemId)
Represents a DOCTYPE
ParserEvent(Object source, Tag tag)
Represents a parsed Tag in the Parser

Method Summary

String
getData()
String
getPublicId()
String
getRoot()
String
getSystemId()
Tag
getTag()
String
getTarget()
String
getText()

Constructor Details

ParserEvent

public ParserEvent(Object source,
                   String text)
Represents a parsed continous block of text, a comment, or an error.
Parameters:
source - The Parser this came from
See Also:
java.help.basic.Parser

ParserEvent

public ParserEvent(Object source,
                   String target,
                   String data)
Represents a PI (processing instruction)
Parameters:
source - The Parser this came from
target - The PI target
data - The rest of the PI
See Also:
java.help.basic.Parser

ParserEvent

public ParserEvent(Object source,
                   String root,
                   String publicId,
                   String systemId)
Represents a DOCTYPE
Parameters:
source - The Parser this came from
root - The root
publicId - The publicID (may be null)
See Also:
java.help.basic.Parser

ParserEvent

public ParserEvent(Object source,
                   Tag tag)
Represents a parsed Tag in the Parser
Parameters:
source - The Parser this came from
tag - The parsed Tag.
See Also:
java.help.basic.Parser

Method Details

getData

public String getData()
Returns:
the data

getPublicId

public String getPublicId()
Returns:
the publicId

getRoot

public String getRoot()
Returns:
the root

getSystemId

public String getSystemId()
Returns:
the systemId

getTag

public Tag getTag()
Returns:
the Tag

getTarget

public String getTarget()
Returns:
the target

getText

public String getText()
Returns:
the text