xmltooling  1.4.2
xmltooling::UnknownElementBuilder Class Reference

Builder for UnknownElementImpl objects. More...

#include <xmltooling/impl/UnknownElement.h>

Inheritance diagram for xmltooling::UnknownElementBuilder:
Collaboration diagram for xmltooling::UnknownElementBuilder:

Public Member Functions

XMLObjectbuildObject (const XMLCh *nsURI, const XMLCh *localName, const XMLCh *prefix=0, const QName *schemaType=0) const
 Creates an empty XMLObject with a particular element name. More...
 
- Public Member Functions inherited from xmltooling::XMLObjectBuilder
XMLObjectbuildFromQName (const QName &q) const
 Creates an empty XMLObject with a particular element name. More...
 
XMLObjectbuildFromElement (xercesc::DOMElement *element, bool bindDocument=false) const
 Creates an unmarshalled XMLObject from a DOM Element. More...
 
XMLObjectbuildFromDocument (xercesc::DOMDocument *doc, bool bindDocument=true) const
 Creates an unmarshalled XMLObject from the root of a DOM Document. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from xmltooling::XMLObjectBuilder
static XMLObjectbuildOneFromElement (xercesc::DOMElement *element, bool bindDocument=false)
 Creates an unmarshalled XMLObject using the default build method, if a builder can be found. More...
 
static const XMLObjectBuildergetBuilder (const QName &key)
 Retrieves an XMLObjectBuilder using the key it was registered with. More...
 
static const XMLObjectBuildergetBuilder (const xercesc::DOMElement *element)
 Retrieves an XMLObjectBuilder for a given DOM element. More...
 
static const XMLObjectBuildergetDefaultBuilder ()
 Retrieves the default XMLObjectBuilder for DOM elements. More...
 
static const std::map< QName,
XMLObjectBuilder * > & 
getBuilders ()
 Gets an immutable list of all the builders currently registered. More...
 
static void registerBuilder (const QName &builderKey, XMLObjectBuilder *builder)
 Registers a new builder for the given key. More...
 
static void registerDefaultBuilder (XMLObjectBuilder *builder)
 Registers a default builder. More...
 
static void deregisterBuilder (const QName &builderKey)
 Deregisters a builder. More...
 
static void deregisterDefaultBuilder ()
 Deregisters default builder.
 
static void destroyBuilders ()
 Unregisters and destroys all registered builders.
 

Detailed Description

Builder for UnknownElementImpl objects.

Use as the default builder when you want unknown DOM content treated as raw/ignored XML.

Member Function Documentation

XMLObject* xmltooling::UnknownElementBuilder::buildObject ( const XMLCh *  nsURI,
const XMLCh *  localName,
const XMLCh *  prefix = 0,
const QName schemaType = 0 
) const
virtual

Creates an empty XMLObject with a particular element name.

The results are undefined if localName is nullptr or empty.

The caller is responsible for freeing the resulting object.

Parameters
nsURInamespace URI for element
localNamelocal name of element
prefixprefix of element name
schemaTypexsi:type of the object
Returns
the empty XMLObject

Implements xmltooling::XMLObjectBuilder.


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