Xalan-C++ API Reference  1.12.0
Public Member Functions | Static Public Member Functions | List of all members
xalanc::XercesDOMImplementationWrapper Class Reference

#include <xalanc/XercesParserLiaison/XercesDOMImplementationWrapper.hpp>

Inheritance diagram for xalanc::XercesDOMImplementationWrapper:
[legend]
Collaboration diagram for xalanc::XercesDOMImplementationWrapper:
[legend]

Public Member Functions

 XercesDOMImplementationWrapper (DOMImplementationType *theXercesDOMImplementation)
 
virtual ~XercesDOMImplementationWrapper ()
 
Getter functions
virtual bool hasFeature (const XalanDOMString &feature, const XalanDOMString &version)
 Test if the DOM implementation implements a specific feature. More...
 
- Public Member Functions inherited from xalanc::XalanDOMImplementation
 XalanDOMImplementation ()
 
virtual ~XalanDOMImplementation ()
 

Static Public Member Functions

static XercesDOMImplementationWrappercreate (MemoryManager &theManager, DOMImplementationType *theXercesDOMImplementation)
 

Functions introduced in DOM Level 2.

virtual XalanDocumentTypecreateDocumentType (const XalanDOMString &qualifiedName, const XalanDOMString &publicId, const XalanDOMString &systemId)
 Creates an empty DOMDocumentType node. More...
 
virtual XalanDocumentcreateDocument (const XalanDOMString &namespaceURI, const XalanDOMString &qualifiedName, const XalanDocumentType &doctype)
 Creates an XML DOMDocument object of the specified type with its document element. More...
 
DOMImplementationTypegetXercesNode () const
 Get the Xerces node this instance represent. More...
 

Additional Inherited Members

- Protected Member Functions inherited from xalanc::XalanDOMImplementation
 XalanDOMImplementation (const XalanDOMImplementation &theSource)
 
XalanDOMImplementationoperator= (const XalanDOMImplementation &theSource)
 
bool operator== (const XalanDOMImplementation &theRHS) const
 

Detailed Description

Definition at line 43 of file XercesDOMImplementationWrapper.hpp.

Constructor & Destructor Documentation

◆ XercesDOMImplementationWrapper()

xalanc::XercesDOMImplementationWrapper::XercesDOMImplementationWrapper ( DOMImplementationType theXercesDOMImplementation)

◆ ~XercesDOMImplementationWrapper()

virtual xalanc::XercesDOMImplementationWrapper::~XercesDOMImplementationWrapper ( )
virtual

Member Function Documentation

◆ create()

static XercesDOMImplementationWrapper* xalanc::XercesDOMImplementationWrapper::create ( MemoryManager &  theManager,
DOMImplementationType theXercesDOMImplementation 
)
static

◆ createDocument()

virtual XalanDocument* xalanc::XercesDOMImplementationWrapper::createDocument ( const XalanDOMString namespaceURI,
const XalanDOMString qualifiedName,
const XalanDocumentType doctype 
)
virtual

Creates an XML DOMDocument object of the specified type with its document element.

Parameters
namespaceURIThe namespace URI of the document element to create, or null.
qualifiedNameThe qualified name of the document element to be created.
doctypeThe type of document to be created or null.

When doctype is not null, its Node.ownerDocument attribute is set to the document being created.

Returns
A new Document object.
Exceptions
DOMExceptionWRONG_DOCUMENT_ERR: Raised if doctype has already been used with a different document.

Implements xalanc::XalanDOMImplementation.

◆ createDocumentType()

virtual XalanDocumentType* xalanc::XercesDOMImplementationWrapper::createDocumentType ( const XalanDOMString qualifiedName,
const XalanDOMString publicId,
const XalanDOMString systemId 
)
virtual

Creates an empty DOMDocumentType node.

Entity declarations and notations are not made available. Entity reference expansions and default attribute additions do not occur. It is expected that a future version of the DOM will provide a way for populating a DOMDocumentType.

Parameters
qualifiedNameThe qualified name of the document type to be created.
publicIdThe external subset public identifier.
systemIdThe external subset system identifier.
Returns
A new DocumentType node with Node.ownerDocument set to null.

Implements xalanc::XalanDOMImplementation.

◆ getXercesNode()

DOMImplementationType* xalanc::XercesDOMImplementationWrapper::getXercesNode ( ) const
inline

Get the Xerces node this instance represent.

Returns
The Xerces node

Definition at line 128 of file XercesDOMImplementationWrapper.hpp.

◆ hasFeature()

virtual bool xalanc::XercesDOMImplementationWrapper::hasFeature ( const XalanDOMString feature,
const XalanDOMString version 
)
virtual

Test if the DOM implementation implements a specific feature.

Parameters
featureThe string of the feature to test (case-insensitive). The legal values are defined throughout this specification. The string must be an XML name (see also Compliance).
versionThis is the version number of the package name to test.
In Level 1, this is the string "1.0". If the version is not specified, supporting any version of the feature will cause the method to return true.
Returns
true if the feature is implemented in the specified version, false otherwise.

Implements xalanc::XalanDOMImplementation.


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