xmltooling  1.4.2
xmltooling::ConcreteXMLObjectBuilder Class Reference

A factory interface for obtaining XMLObjects. More...

#include <xmltooling/ConcreteXMLObjectBuilder.h>

Inheritance diagram for xmltooling::ConcreteXMLObjectBuilder:
Collaboration diagram for xmltooling::ConcreteXMLObjectBuilder:

List of all members.

Public Member Functions

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

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.
static const XMLObjectBuildergetBuilder (const QName &key)
 Retrieves an XMLObjectBuilder using the key it was registered with.
static const XMLObjectBuildergetBuilder (const xercesc::DOMElement *element)
 Retrieves an XMLObjectBuilder for a given DOM element.
static const XMLObjectBuildergetDefaultBuilder ()
 Retrieves the default XMLObjectBuilder for DOM elements.
static const std::map< QName,
XMLObjectBuilder * > & 
getBuilders ()
 Gets an immutable list of all the builders currently registered.
static void registerBuilder (const QName &builderKey, XMLObjectBuilder *builder)
 Registers a new builder for the given key.
static void registerDefaultBuilder (XMLObjectBuilder *builder)
 Registers a default builder.
static void deregisterBuilder (const QName &builderKey)
 Deregisters a builder.
static void deregisterDefaultBuilder ()
 Deregisters default builder.
static void destroyBuilders ()
 Unregisters and destroys all registered builders.

Detailed Description

A factory interface for obtaining XMLObjects.

Subclasses MAY supply additional factory methods.


Member Function Documentation

virtual XMLObject* xmltooling::ConcreteXMLObjectBuilder::buildObject ( ) const
pure virtual

Creates an empty XMLObject with a defaulted element name and/or type.

Returns:
the empty XMLObject

Implemented in xmlsignature::SignatureBuilder.


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