Base class for schema validators.
More...
#include <libxml++/validators/schemavalidatorbase.h>
Base class for schema validators.
- Since libxml++ 2.38:
◆ SchemaValidatorBase()
LIBXMLPP_API xmlpp::SchemaValidatorBase::SchemaValidatorBase |
( |
| ) |
|
|
noexcept |
◆ ~SchemaValidatorBase()
LIBXMLPP_API xmlpp::SchemaValidatorBase::~SchemaValidatorBase |
( |
| ) |
|
|
override |
◆ initialize_context()
LIBXMLPP_API void xmlpp::SchemaValidatorBase::initialize_context |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ operator bool()
virtual LIBXMLPP_API xmlpp::SchemaValidatorBase::operator bool |
( |
| ) |
const |
|
explicitoverridepure virtualnoexcept |
◆ parse_document()
virtual LIBXMLPP_API void xmlpp::SchemaValidatorBase::parse_document |
( |
const Document* |
document | ) |
|
|
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).
- Parameters
-
document | A preparsed document tree, containing the schema definition. |
- Exceptions
-
Implemented in xmlpp::XsdValidator, and xmlpp::RelaxNGValidator.
◆ parse_file()
LIBXMLPP_API void xmlpp::SchemaValidatorBase::parse_file |
( |
const std::string & |
filename | ) |
|
|
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).
- Parameters
-
filename | The URL of the schema. |
- Exceptions
-
Implements xmlpp::Validator.
Implemented in xmlpp::XsdValidator, and xmlpp::RelaxNGValidator.
◆ parse_memory()
LIBXMLPP_API void xmlpp::SchemaValidatorBase::parse_memory |
( |
const Glib::ustring & |
contents | ) |
|
|
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).
- Parameters
-
contents | The schema definition as a string. |
- Exceptions
-
Implements xmlpp::Validator.
Implemented in xmlpp::XsdValidator, and xmlpp::RelaxNGValidator.
◆ release_underlying()
LIBXMLPP_API void xmlpp::SchemaValidatorBase::release_underlying |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ validate() [1/2]
LIBXMLPP_API void xmlpp::SchemaValidatorBase::validate |
( |
const Document* |
document | ) |
|
|
overridepure virtual |
◆ validate() [2/2]
virtual LIBXMLPP_API void xmlpp::SchemaValidatorBase::validate |
( |
const std::string & |
filename | ) |
|
|
pure virtual |