|
libxml++ 3.2.5
|
Base class for schema validators. More...
#include <libxml++/validators/schemavalidatorbase.h>

Public Member Functions | |
| SchemaValidatorBase () noexcept | |
| ~SchemaValidatorBase () override | |
| virtual | operator bool () const noexcept override=0 |
| Test whether a schema has been parsed. | |
| virtual void | parse_document (const Document * document)=0 |
| Parse a schema definition from a document. | |
| void | parse_file (const std::string & filename) override=0 |
| Parse a schema definition file. | |
| void | parse_memory (const Glib::ustring & contents) override=0 |
| Parse a schema definition from a string. | |
| void | validate (const Document * document) override=0 |
| Validate a document, using a previously parsed schema. | |
| virtual void | validate (const std::string & filename)=0 |
| Validate an XML file, using a previously parsed schema. | |
Public Member Functions inherited from xmlpp::Validator | |
| Validator () noexcept | |
| ~Validator () override | |
| virtual | operator bool () const noexcept=0 |
| Test whether a schema or a DTD has been parsed. | |
| virtual void | parse_file (const std::string & filename)=0 |
| Parse a schema definition file or an external subset (DTD file). | |
| virtual void | parse_memory (const Glib::ustring & contents)=0 |
| Parse a schema definition or a DTD from a string. | |
| virtual void | validate (const Document * document)=0 |
| Validate a document, using a previously parsed schema or DTD. | |
Protected Member Functions | |
| void | initialize_context () override |
| void | release_underlying () override |
Protected Member Functions inherited from xmlpp::Validator | |
| virtual void | check_for_exception () |
| virtual void | check_for_validity_messages () |
| virtual void | handle_exception () |
| To be called in an exception handler. | |
| virtual void | initialize_context () |
| virtual void | on_validity_error (const Glib::ustring & message) |
| virtual void | on_validity_warning (const Glib::ustring & message) |
| virtual void | release_underlying () |
Protected Member Functions inherited from xmlpp::NonCopyable | |
| NonCopyable () noexcept | |
| NonCopyable (const NonCopyable &)=delete | |
| NonCopyable (NonCopyable &&)=delete | |
| virtual | ~NonCopyable () |
| NonCopyable & | operator= (const NonCopyable &)=delete |
| NonCopyable & | operator= (NonCopyable &&)=delete |
Additional Inherited Members | |
Static Protected Member Functions inherited from xmlpp::Validator | |
| static void | callback_validity_error (void * ctx, const char * msg,...) |
| static void | callback_validity_warning (void * ctx, const char * msg,...) |
Protected Attributes inherited from xmlpp::Validator | |
| std::unique_ptr< exception > | exception_ |
| Glib::ustring | validate_error_ |
| Glib::ustring | validate_warning_ |
Base class for schema validators.
|
noexcept |
|
override |
|
overrideprotectedvirtual |
Reimplemented from xmlpp::Validator.
Reimplemented in xmlpp::XsdValidator.
|
explicitoverridepure virtualnoexcept |
Test whether a schema has been parsed.
For instance
Implements xmlpp::Validator.
Implemented in xmlpp::RelaxNGValidator, and xmlpp::XsdValidator.
|
pure virtual |
Parse a schema definition from a document.
If the validator already contains a schema, that schema is released (deleted if the validator owns the schema).
| document | A preparsed document tree, containing the schema definition. |
| xmlpp::parse_error |
Implemented in xmlpp::RelaxNGValidator, and xmlpp::XsdValidator.
|
overridepure virtual |
Parse a schema definition file.
If the validator already contains a schema, that schema is released (deleted if the validator owns the schema).
| filename | The URL of the schema. |
| xmlpp::parse_error |
Implements xmlpp::Validator.
Implemented in xmlpp::RelaxNGValidator, and xmlpp::XsdValidator.
|
overridepure virtual |
Parse a schema definition from a string.
If the validator already contains a schema, that schema is released (deleted if the validator owns the schema).
| contents | The schema definition as a string. |
| xmlpp::parse_error |
Implements xmlpp::Validator.
Implemented in xmlpp::RelaxNGValidator, and xmlpp::XsdValidator.
|
overrideprotectedvirtual |
Reimplemented from xmlpp::Validator.
Reimplemented in xmlpp::XsdValidator.
|
overridepure virtual |
Validate a document, using a previously parsed schema.
| document | Pointer to the document. |
| xmlpp::internal_error | |
| xmlpp::validity_error |
Implements xmlpp::Validator.
Implemented in xmlpp::RelaxNGValidator, and xmlpp::XsdValidator.
|
pure virtual |
Validate an XML file, using a previously parsed schema.
| filename | The URL of the XML file. |
Implemented in xmlpp::RelaxNGValidator, and xmlpp::XsdValidator.