Xalan-C++ API Documentation

The Xalan-C++ XSL Transformer Version 1.0

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

XMLParserLiaisonDefault Class Reference

#include <XMLParserLiaisonDefault.hpp>

Inheritance diagram for XMLParserLiaisonDefault:

XMLParserLiaison Resettable Collaboration diagram for XMLParserLiaisonDefault:

List of all members.

Public Methods

Protected Attributes


Detailed Description


Constructor & Destructor Documentation

XMLParserLiaisonDefault::XMLParserLiaisonDefault ( DOMSupport & theDOMSupport)

Construct a XMLParserLiaisonDefault instance.

Parameters:
formatterListener   implemention of the FormatterListener operation (toXMLString, digest, ...)

Parameters:
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::createDocument () [virtual]

Create an empty DOM Document.

Mainly used for creating an output document.

Returns:
DOM document created

Reimplemented from XMLParserLiaison.

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

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

Returns:
DOM document factory

Reimplemented from XMLParserLiaison.

virtual XalanDOMString XMLParserLiaisonDefault::getExpandedAttributeName ( const XalanAttr & attr) const [virtual]

Returns the attribute name with the namespace expanded.

Parameters:
attr   attribute queried
Returns:
string for expanded name of attribute

Reimplemented from XMLParserLiaison.

virtual XalanDOMString XMLParserLiaisonDefault::getExpandedElementName ( const XalanElement & elem) const [virtual]

Return the expanded element name.

Parameters:
elem   DOM element queried
Returns:
string for expanded name of element

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

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.0
Copyright © 2000 The Apache Software Foundation. All Rights Reserved.