    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class xt.xt_NxpEngine

    java.lang.Object
       |
       +----xm.xm_XmlEngine
               |
               +----xt.xt_NxpEngine

public class xt_NxpEngine
extends xm_XmlEngine

Engine for processing an XML source using Norbert's NXP processor.

##

xt_NxpEngine()
  Constructor.

##

Attribute(String, int, String, String, Vector)
  Attribute in an element
CDATA_Section(String)
  CDATA section
data(String)
  Data that is parsed
error(int, String)
  Indicates that an error has occurred during parsing.
NDATA_Entity(String, Notation)
  NDATA entity
parseFile(String, xg_Document)
  Parse the file represented by InputFileName.
parseSource(Reader, xg_Document)
  Parse the source supplied by the InputSourceReader.
parseString(String, xg_Document)
  Parse an XML source which is held in string InputSourceString.
processing_instruction(String, String)
  System data of a processing instruction
SDATA_Entity(String, String)
  SDATA entity
setParseListener(xm_ParseListener)
  Set the parse listener which is to be informed of parse events.
tag_close(String)
  Indicates the end of a SGML Tag
tag_open(String)
  Indicates the start of a SGML Tag

##

xt_NxpEngine

     public xt_NxpEngine()

  Constructor.

##

parseFile

     public xg_Node parseFile(String InputFileName,
                              xg_Document OutputDocument) throws xm_ParseException, IOException

  Parse the file represented by InputFileName.

  Parameters:
    InputFileName - Name of XML file to process.
    OutputDocument - Document into which to place the parse results
  Returns:
    The xg_Node representing the specification
  Throws: xm_ParseException
    The XML source contains an error
  Throws: IOException
    An error occurred reading from named file
  Overrides:
    parseFile in class xm_XmlEngine

parseString

     public xg_Node parseString(String InputSourceString,
                                xg_Document OutputDocument) throws xm_ParseException, IOException

  Parse an XML source which is held in string InputSourceString.

  Parameters:
    InputSourceString - The source itself - as a string
    OutputDocument - Document into which to place the parse results
  Returns:
    The xg_Node representing the specification
  Throws: xm_ParseException
    The XML source contains an error
  Throws: IOException
    An error occurred reading from InputSourceString
  Overrides:
    parseString in class xm_XmlEngine

parseSource

     public xg_Node parseSource(Reader InputSourceReader,
                                xg_Document OutputDocument) throws xm_ParseException, IOException

  Parse the source supplied by the InputSourceReader.

  Parameters:
    InputSourceReader - The reader from which to read the XML source
    OutputDocument - Document into which to place the parse results
  Returns:
    The xg_Node representing the parse results
  Throws: xm_ParseException
    The XML source contains an error
  Throws: IOException
    An error occurred reading from InputSourceReader
  Overrides:
    parseSource in class xm_XmlEngine

setParseListener

     public void setParseListener(xm_ParseListener InputParseListener)

  Set the parse listener which is to be informed of parse events. The main purpose of this is to be able to show progress to the user; since NXP doesn't provide any information which allows us to do this, this implementation does nothing.

  Parameters:
    InputParseListener - Listener to be informed of certain parse events
  Overrides:
    setParseListener in class xm_XmlEngine

error

     public void error(int code,
                       String desc)

  Indicates that an error has occurred during parsing.

  Parameters:
    code - The error code
    desc - Some additional info

tag_open

     public void tag_open(String name)

  Indicates the start of a SGML Tag

  Parameters:
    name - The name of Tag that is opened

tag_close

     public void tag_close(String name)

  Indicates the end of a SGML Tag

  Parameters:
    name - The name of Tag that is closed

data

     public void data(String data)

  Data that is parsed

  Parameters:
    data - The content

processing_instruction

     public void processing_instruction(String target,
                                        String pi)

  System data of a processing instruction

  Parameters:
    target - The target of the processing instruction
    pi - The processing instruction

Attribute

     public void Attribute(String name,
                           int decl_val_type,
                           String decl_val,
                           String default_value,
                           Vector specified_value)

  Attribute in an element

  Parameters:
    name - The name of the attribute
    decl_val_type - The type of the declared value
    decl_val - The declared value
    default_value - The default_value
    specified_value - The specified value

SDATA_Entity

     public void SDATA_Entity(String name,
                              String text)

  SDATA entity

  Parameters:
    name - The name of the entity
    text - The text of the entity

CDATA_Section

     public void CDATA_Section(String data)

  CDATA section

  Parameters:
    data - The data that has been parsed

NDATA_Entity

     public void NDATA_Entity(String name,
                              Notation not)

  NDATA entity

  Parameters:
    name - The name of the entity
    not - The notation

    All Packages  Class Hierarchy  This Package  Previous  Next  Index