    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).

##

xe_NamespaceDeclParser()

##

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

##

xe_NamespaceDeclParser

     public xe_NamespaceDeclParser()

##

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

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

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

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