All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class xe.xe_NamespaceDeclParser

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

public class xe_NamespaceDeclParser
extends xe_Parser
Class xe_NamespaceDeclParser - Standard parser for a namespace declaration, assuming the beginning (' (although the attributes can appear in any order).


Constructor Index

 o xe_NamespaceDeclParser()

Method Index

 o checkAttributes(xg_NamespaceDecl)
Check that the mandatory attributes ('ns' and 'prefix') are present.
 o createAttribute(xe_Token, xe_Token, xe_Token)
Create an attribute based on three parsed tokens, which represent the name, equals and value parts.
 o parse()
Parse a namespace declaration, putting the result in a newly-created namespace declaration object.
 o parseAttributes(xg_NamespaceDecl)
Parse the attributes of a namespace declaration.

Constructors

 o xe_NamespaceDeclParser
 public xe_NamespaceDeclParser()

Methods

 o parse
 public xg_Node parse() throws IOException
Parse a namespace declaration, putting the result in a newly-created namespace declaration object.

Returns:
The parsed namespace declaration
Overrides:
parse in class xe_Parser
 o parseAttributes
 public void parseAttributes(xg_NamespaceDecl InputNamespaceDecl) throws IOException
Parse the attributes of a namespace declaration. Keep looking for 'Name = "Value"' attributes until we encounter '?>'.

Parameters:
InputNamespaceDecl - The namespace declaration currently being parsed
 o checkAttributes
 public void checkAttributes(xg_NamespaceDecl InputNamespaceDecl) throws IOException
Check that the mandatory attributes ('ns' and 'prefix') are present.

Parameters:
InputNamespaceDecl - The namespace declaration currently being parsed
Throws: IOException
An essential attribute is missing
 o createAttribute
 public xg_Attribute createAttribute(xe_Token InputNameToken,
                                     xe_Token InputEqualsToken,
                                     xe_Token InputValueToken)
Create an attribute based on three parsed tokens, which represent the name, equals and value parts.

Parameters:
InputNameToken - Token for the name of the attribute
InputEqualsToken - Token for the '=' of the attribute
InputValueToken - Token for the value of the attribute

All Packages  Class Hierarchy  This Package  Previous  Next  Index