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

Protected Attributes


Constructor & Destructor Documentation

XMLParserLiaisonDefault::XMLParserLiaisonDefault ( DOMSupport & theDOMSupport )
 

Construct a XMLParserLiaisonDefault instance.

Parameters:
formatterListener   implemention of the FormatterListener operation (toXMLString, digest, ...)
theDOMSupport   instance of DOMSupport object

virtual XMLParserLiaisonDefault::~XMLParserLiaisonDefault ( ) [virtual]
 


Member Function Documentation

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

Set whether to expand all entity references in the source and style trees.

Parameters:
b   true if entity references should be expanded

Reimplemented from XMLParserLiaison.

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

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

Returns:
A XalanDocument instance.

Reimplemented from XMLParserLiaison.

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

Create an empty DOM Document.

Mainly used for creating an output document.

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.

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::getShouldExpandEntityRefs ( ) const [virtual]
 

Determine whether to expand all entity references in the source and style trees.

Returns:
true if entity references should be expanded

Reimplemented from XMLParserLiaison.

const XalanDOMString & XMLParserLiaisonDefault::getSpecialCharacters ( ) const [virtual]
 

Get special characters for attributes that will be escaped.

Returns:
string containing characters

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:
urlInputSource   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.

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.

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::setSpecialCharacters ( const XalanDOMString & str ) [virtual]
 

Set special characters for attributes that will be escaped.

Parameters:
str   string containing characters

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.

virtual bool XMLParserLiaisonDefault::supportsSAX ( ) const [virtual]
 

Determine if the liaison supports the SAX DocumentHandler interface.

Returns:
true if SAX supported

Reimplemented from XMLParserLiaison.


Member Data Documentation

DOMSupport & XMLParserLiaisonDefault::m_DOMSupport [protected]
 


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.