#include <xmltooling/XMLObjectBuilder.h>
Inheritance diagram for xmltooling::XMLObjectBuilder:
Public Member Functions | |
virtual XMLObject * | buildObject (const XMLCh *nsURI, const XMLCh *localName, const XMLCh *prefix=NULL, const QName *schemaType=NULL) const =0 |
Creates an empty XMLObject with a particular element name. | |
XMLObject * | buildFromQName (const QName &q) const |
Creates an empty XMLObject with a particular element name. | |
XMLObject * | buildFromElement (xercesc::DOMElement *element, bool bindDocument=false) const |
Creates an unmarshalled XMLObject from a DOM Element. | |
XMLObject * | buildFromDocument (xercesc::DOMDocument *doc, bool bindDocument=true) const |
Creates an unmarshalled XMLObject from the root of a DOM Document. | |
Static Public Member Functions | |
static XMLObject * | buildOneFromElement (xercesc::DOMElement *element, bool bindDocument=false) |
Creates an unmarshalled XMLObject using the default build method, if a builder can be found. | |
static const XMLObjectBuilder * | getBuilder (const QName &key) |
Retrieves an XMLObjectBuilder using the key it was registered with. | |
static const XMLObjectBuilder * | getBuilder (const xercesc::DOMElement *element) |
Retrieves an XMLObjectBuilder for a given DOM element. | |
static const XMLObjectBuilder * | getDefaultBuilder () |
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. |
Subclasses MAY supply additional factory methods.
XMLObject* xmltooling::XMLObjectBuilder::buildFromDocument | ( | xercesc::DOMDocument * | doc, | |
bool | bindDocument = true | |||
) | const [inline] |
XMLObject* xmltooling::XMLObjectBuilder::buildFromElement | ( | xercesc::DOMElement * | element, | |
bool | bindDocument = false | |||
) | const [inline] |
virtual XMLObject* xmltooling::XMLObjectBuilder::buildObject | ( | const XMLCh * | nsURI, | |
const XMLCh * | localName, | |||
const XMLCh * | prefix = NULL , |
|||
const QName * | schemaType = NULL | |||
) | const [pure virtual] |
Creates an empty XMLObject with a particular element name.
The results are undefined if localName is NULL or empty.
nsURI | namespace URI for element | |
localName | local name of element | |
prefix | prefix of element name | |
schemaType | xsi:type of the object |
Implemented in xmlencryption::CarriedKeyNameBuilder, xmlencryption::CipherDataBuilder, xmlencryption::CipherReferenceBuilder, xmlencryption::CipherValueBuilder, xmlencryption::DataReferenceBuilder, xmlencryption::EncryptedDataBuilder, xmlencryption::EncryptedKeyBuilder, xmlencryption::EncryptionMethodBuilder, xmlencryption::EncryptionPropertiesBuilder, xmlencryption::EncryptionPropertyBuilder, xmlencryption::KeyReferenceBuilder, xmlencryption::KeySizeBuilder, xmlencryption::OAEPparamsBuilder, xmlencryption::ReferenceListBuilder, xmlencryption::TransformsBuilder, xmltooling::UnknownElementBuilder, xmlsignature::PGPDataBuilder, xmlsignature::PGPKeyIDBuilder, xmlsignature::PGPKeyPacketBuilder, xmlsignature::SPKIDataBuilder, xmlsignature::SPKISexpBuilder, xmlsignature::X509IssuerSerialBuilder, xmlsignature::X509IssuerNameBuilder, xmlsignature::X509SerialNumberBuilder, xmlsignature::X509SKIBuilder, xmlsignature::X509SubjectNameBuilder, xmlsignature::X509CertificateBuilder, xmlsignature::X509CRLBuilder, xmlsignature::X509DataBuilder, xmlsignature::XPathBuilder, xmlsignature::TransformBuilder, xmlsignature::TransformsBuilder, xmlsignature::RetrievalMethodBuilder, xmlsignature::KeyNameBuilder, xmlsignature::MgmtDataBuilder, xmlsignature::ModulusBuilder, xmlsignature::ExponentBuilder, xmlsignature::SeedBuilder, xmlsignature::PgenCounterBuilder, xmlsignature::PBuilder, xmlsignature::QBuilder, xmlsignature::GBuilder, xmlsignature::YBuilder, xmlsignature::JBuilder, xmlsignature::DSAKeyValueBuilder, xmlsignature::RSAKeyValueBuilder, xmlsignature::KeyValueBuilder, xmlsignature::KeyInfoBuilder, xmlsignature::SignatureBuilder, soap11::BodyBuilder, soap11::EnvelopeBuilder, soap11::FaultBuilder, soap11::HeaderBuilder, soap11::DetailBuilder, soap11::FaultactorBuilder, soap11::FaultcodeBuilder, and soap11::FaultstringBuilder.
static XMLObject* xmltooling::XMLObjectBuilder::buildOneFromElement | ( | xercesc::DOMElement * | element, | |
bool | bindDocument = false | |||
) | [inline, static] |
static void xmltooling::XMLObjectBuilder::deregisterBuilder | ( | const QName & | builderKey | ) | [inline, static] |
Deregisters a builder.
builderKey | the key for the builder to be deregistered |
static const XMLObjectBuilder* xmltooling::XMLObjectBuilder::getBuilder | ( | const xercesc::DOMElement * | element | ) | [static] |
Retrieves an XMLObjectBuilder for a given DOM element.
If no match is found, the default builder is returned, if any.
element | the element for which to locate a builder |
static const XMLObjectBuilder* xmltooling::XMLObjectBuilder::getBuilder | ( | const QName & | key | ) | [inline, static] |
Retrieves an XMLObjectBuilder using the key it was registered with.
key | the key used to register the builder |
static const std::map<QName,XMLObjectBuilder*>& xmltooling::XMLObjectBuilder::getBuilders | ( | ) | [inline, static] |
Gets an immutable list of all the builders currently registered.
static const XMLObjectBuilder* xmltooling::XMLObjectBuilder::getDefaultBuilder | ( | ) | [inline, static] |
static void xmltooling::XMLObjectBuilder::registerBuilder | ( | const QName & | builderKey, | |
XMLObjectBuilder * | builder | |||
) | [inline, static] |
Registers a new builder for the given key.
builderKey | the key used to retrieve this builder later | |
builder | the builder |
static void xmltooling::XMLObjectBuilder::registerDefaultBuilder | ( | XMLObjectBuilder * | builder | ) | [inline, static] |
Registers a default builder.
builder | the default builder |