Xalan-C++ API Documentation

The Xalan C++ XSL Transformer Version 1.1

Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

XMLParserLiaisonDefault Class Reference

#include <XMLParserLiaisonDefault.hpp>

Inheritance diagram for XMLParserLiaisonDefault

Inheritance graph

[legend]
Collaboration diagram for XMLParserLiaisonDefault:

Collaboration graph

[legend]
List of all members.

Public Methods


Constructor & Destructor Documentation

XMLParserLiaisonDefault::XMLParserLiaisonDefault ( ) [explicit]
 

Construct a XMLParserLiaisonDefault instance.

virtual XMLParserLiaisonDefault::~XMLParserLiaisonDefault ( ) [virtual]
 


Member Function Documentation

virtual XalanDocument* XMLParserLiaisonDefault::createDOMFactory ( ) [virtual]
 

Get a factory object required to create nodes in the result tree.

The liaison owns the XalanDocument instance, and will delete it when when asked (see DestroyDocument()), or when the liaison is reset, or goes out of scope.

Returns:
A XalanDocument instance.

Reimplemented from XMLParserLiaison.

virtual XalanDocument* XMLParserLiaisonDefault::createDocument ( ) [virtual]
 

Create an empty DOM Document.

Mainly used for creating an output document.

The liaison owns the XalanDocument instance, and will delete it when when asked (see DestroyDocument()), or when the liaison is reset, or goes out of scope.

Returns:
DOM document created

Reimplemented from XMLParserLiaison.

virtual void XMLParserLiaisonDefault::destroyDocument ( XalanDocument * theDocument ) [virtual]
 

Destroy the supplied XalanDocument instance.

It must be an instance that was created by a previous call to createDocument() or getDOMFactory().

Parameters:
theDocument   The XalanDocument instance to destroy.

Reimplemented from XMLParserLiaison.

unsigned long XMLParserLiaisonDefault::getDocumentNumber ( ) [virtual]
 

Get a unique number for identifying the document.

The number need only be unique to the parser liaison instance.

Returns:
The unique number

Reimplemented from XMLParserLiaison.

EntityResolver * XMLParserLiaisonDefault::getEntityResolver ( ) [virtual]
 

This method returns the installed entity resolver.

Returns:
The pointer to the installed entity resolver object.

Reimplemented from XMLParserLiaison.

virtual ExecutionContext* XMLParserLiaisonDefault::getExecutionContext ( ) const [virtual]
 

Reimplemented from XMLParserLiaison.

int XMLParserLiaisonDefault::getIndent ( ) const [virtual]
 

Get the amount to indent when indent-result="yes".

Returns:
number of characters to indent

Reimplemented from XMLParserLiaison.

virtual const XalanDOMString XMLParserLiaisonDefault::getParserDescription ( ) const [virtual]
 

Return a string suitable for telling the user what parser is being used.

Returns:
string describing parser

Reimplemented from XMLParserLiaison.

bool XMLParserLiaisonDefault::getUseValidation ( ) const [virtual]
 

Get whether or not validation will be performed.

Validation is off by default.

Returns:
true to perform validation

Reimplemented from XMLParserLiaison.

virtual void XMLParserLiaisonDefault::parseXMLStream ( const InputSource & inputSource,
DocumentHandler & handler,
const XalanDOMString & identifier = XalanDOMString() ) [virtual]
 

Parse the text pointed at by the reader as XML.

It is recommended that you pass in some sort of recognizable name, such as the filename or URI, with which the reader can be recognized if the parse fails.

Parameters:
inputSource   input source that should hold valid XML
handler   instance of a DocumentHandler
identifier   used for diagnostic purposes only, some sort of identification for error reporting, default an empty string

Reimplemented from XMLParserLiaison.

virtual XalanDocument* XMLParserLiaisonDefault::parseXMLStream ( const InputSource & inputSource,
const XalanDOMString & identifier = XalanDOMString() ) [virtual]
 

Parse the text pointed at by the reader as XML, and return a DOM Document interface.

It is recommended that you pass in some sort of recognizable name, such as the filename or URI, with which the reader can be recognized if the parse fails.

The liaison owns the XalanDocument instance, and will delete it when when asked (see DestroyDocument()), or when the liaison is reset, or goes out of scope.

Parameters:
reader   stream that should hold valid XML
identifier   used for diagnostic purposes only, some sort of identification for error reporting, default an empty string
Returns:
DOM document created

Reimplemented from XMLParserLiaison.

virtual void XMLParserLiaisonDefault::reset ( ) [virtual]
 

Reset the instance.

Reimplemented from XMLParserLiaison.

void XMLParserLiaisonDefault::setEntityResolver ( EntityResolver * resolver ) [virtual]
 

This method installs the user specified entity resolver on the parser.

It allows applications to trap and redirect calls to external entities.

Parameters:
handler   A pointer to the entity resolver to be called when the parser comes across references to entities in the XML file.

Reimplemented from XMLParserLiaison.

virtual void XMLParserLiaisonDefault::setExecutionContext ( ExecutionContext & theContext ) [virtual]
 

Reimplemented from XMLParserLiaison.

void XMLParserLiaisonDefault::setIndent ( int i ) [virtual]
 

Set the amount to indent when indent-result="yes".

Parameters:
i   number of characters to indent

Reimplemented from XMLParserLiaison.

void XMLParserLiaisonDefault::setUseValidation ( bool b ) [virtual]
 

If set to true, validation will be performed.

Validation is off by default.

Parameters:
b   true to perform validation

Reimplemented from XMLParserLiaison.


The documentation for this class was generated from the following file:

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

Xalan-C++ XSL Transformer Version 1.1
Copyright © 2000, 2001 The Apache Software Foundation. All Rights Reserved.