All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class xe.xe_EntityDeclParser

java.lang.Object
   |
   +----xe.xe_Parser
           |
           +----xe.xe_EntityDeclParser

public class xe_EntityDeclParser
extends xe_Parser
Class xe_EntityDeclParser - parser for an entity declaration within the DTD of an XML document, assuming the beginning (' - internal or


Constructor Index

 o xe_EntityDeclParser()

Method Index

 o parse()
Parse the body of an entity declaration.
 o parseEntityValue(xg_EntityDecl, xe_Token)
This is an internal entity declaration.
 o parseExternalDef(xg_EntityDecl, xe_Token)
This is an internal entity declaration.
 o parseExternalID(xe_Token)
Parse an external ID.

Constructors

 o xe_EntityDeclParser
 public xe_EntityDeclParser()

Methods

 o parse
 public xg_Node parse() throws IOException
Parse the body of an entity declaration.

Returns:
The parsed entity declaration
Overrides:
parse in class xe_Parser
 o parseEntityValue
 public void parseEntityValue(xg_EntityDecl InputEntityDecl,
                              xe_Token InputOpenQuoteToken) throws IOException
This is an internal entity declaration. Parse its value. It should have the rough form: ==================>

Parameters:
InputEntityDecl - The entity declaration currently being parsed
InputOpenQuoteToken - The opening quote (either single or double) token
 o parseExternalDef
 public xe_Token parseExternalDef(xg_EntityDecl InputEntityDecl,
                                  xe_Token InputStartToken) throws IOException
This is an internal entity declaration. Parse its value, assuming its first token (SYSTEM or PUBLIC) has already been parsed. It should have the form: SYSTEM "Url" [NDATA Name] or PUBLIC "Name" "Url" [NDATA Name] =====>

Parameters:
InputEntityDecl - The entity declaration currently being parsed
InputStartToken - The first token of the external declaration
Returns:
The next token after the external declaration
 o parseExternalID
 public xg_ExternalID parseExternalID(xe_Token InputStartToken) throws IOException
Parse an external ID. It should have the form: SYSTEM "Url" or PUBLIC "Name" "Url"

Parameters:
InputStartToken - The first token of the external subset
Returns:
The external ID which has just been parsed

All Packages  Class Hierarchy  This Package  Previous  Next  Index