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.


Constructor Index

 o xt_NxpEngine()
Constructor.

Method Index

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

Constructors

 o xt_NxpEngine
 public xt_NxpEngine()
Constructor.

Methods

 o 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
 o 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
 o 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
 o 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
 o 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
 o tag_open
 public void tag_open(String name)
Indicates the start of a SGML Tag

Parameters:
name - The name of Tag that is opened
 o tag_close
 public void tag_close(String name)
Indicates the end of a SGML Tag

Parameters:
name - The name of Tag that is closed
 o data
 public void data(String data)
Data that is parsed

Parameters:
data - The content
 o 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
 o 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
 o 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
 o CDATA_Section
 public void CDATA_Section(String data)
CDATA section

Parameters:
data - The data that has been parsed
 o 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