libxml++ 2.42.1

Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
xmlpp::Validator Class Reference

Base class for XML validators. More...

`#include <libxml++/validators/validator.h>`

Inheritance diagram for xmlpp::Validator:
[legend]

## Public Member Functions
LIBXMLPP_API | Validator ()
LIBXMLPP_API | ~Validator () override

## Protected Member Functions
virtual LIBXMLPP_API void | check_for_exception ()
virtual LIBXMLPP_API void | check_for_validity_messages ()
virtual LIBXMLPP_API void | handleException (const exception& e)
virtual LIBXMLPP_API void | initialize_valid ()
virtual LIBXMLPP_API void | on_validity_error (const Glib::ustring& message)
virtual LIBXMLPP_API void | on_validity_warning (const Glib::ustring& message)
virtual LIBXMLPP_API void | release_underlying ()

## Static Protected Member Functions
static LIBXMLPP_API void | callback_validity_error (void* ctx, const char* msg,...)
static LIBXMLPP_API void | callback_validity_warning (void* ctx, const char* msg,...)

## Protected Attributes
exception* | exception_
_xmlValidCtxt* | valid_
Glib::ustring | validate_error_
Glib::ustring | validate_warning_

## Detailed Description

Base class for XML validators.

## Constructor & Destructor Documentation

## ◆ Validator()

LIBXMLPP_API xmlpp::Validator::Validator | ( |  | ) |

## ◆ ~Validator()

LIBXMLPP_API xmlpp::Validator::~Validator | ( |  | ) |
| override

## Member Function Documentation

## ◆ callback_validity_error()

static LIBXMLPP_API void xmlpp::Validator::callback_validity_error | ( | void * | ctx,
|  | const char * | msg,
|  |  | ...
| ) |  |
| static protected

## ◆ callback_validity_warning()

static LIBXMLPP_API void xmlpp::Validator::callback_validity_warning | ( | void * | ctx,
|  | const char * | msg,
|  |  | ...
| ) |  |
| static protected

## ◆ check_for_exception()

virtual LIBXMLPP_API void xmlpp::Validator::check_for_exception | ( |  | ) |
| protected virtual

## ◆ check_for_validity_messages()

virtual LIBXMLPP_API void xmlpp::Validator::check_for_validity_messages | ( |  | ) |
| protected virtual

## ◆ handleException()

virtual LIBXMLPP_API void xmlpp::Validator::handleException | ( | const exception& | e | ) |
| protected virtual

## ◆ initialize_valid()

virtual LIBXMLPP_API void xmlpp::Validator::initialize_valid | ( |  | ) |
| protected virtual

Reimplemented in xmlpp::XsdValidator, xmlpp::SchemaValidatorBase, xmlpp::SchemaValidator, and xmlpp::RelaxNGValidator.

## ◆ on_validity_error()

virtual LIBXMLPP_API void xmlpp::Validator::on_validity_error | ( | const Glib::ustring & | message | ) |
| protected virtual

## ◆ on_validity_warning()

virtual LIBXMLPP_API void xmlpp::Validator::on_validity_warning | ( | const Glib::ustring & | message | ) |
| protected virtual

## ◆ release_underlying()

virtual LIBXMLPP_API void xmlpp::Validator::release_underlying | ( |  | ) |
| protected virtual

Reimplemented in xmlpp::XsdValidator, xmlpp::SchemaValidatorBase, xmlpp::SchemaValidator, xmlpp::RelaxNGValidator, and xmlpp::DtdValidator.

## Member Data Documentation

## ◆ exception_

exception* xmlpp::Validator::exception_
| protected

## ◆ valid_

_xmlValidCtxt* xmlpp::Validator::valid_
| protected

## ◆ validate_error_

Glib::ustring xmlpp::Validator::validate_error_
| protected

## ◆ validate_warning_

Glib::ustring xmlpp::Validator::validate_warning_
| protected