CTK  0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
Public Member Functions | List of all members
ctkCmdLineModuleXmlValidator Class Reference

Provides validation of an XML document against an XML schema. More...

#include <Libs/CommandLineModules/Core/ctkCmdLineModuleXmlValidator.h>

Inheritance diagram for ctkCmdLineModuleXmlValidator:
Inheritance graph
[legend]

Public Member Functions

 ctkCmdLineModuleXmlValidator (QIODevice *input=0)
 
virtual bool error () const
 Get the error flag. More...
 
virtual QString errorString () const
 Get the error string. More...
 
QIODevice * input () const
 Get the XML input device. More...
 
void setInput (QIODevice *input)
 Set the XML input. More...
 
void setInputSchema (QIODevice *input)
 Set the XML schema to be used during validation. More...
 
virtual bool validateInput ()
 Validate the XML input against the XML schema set via setInputSchema(). More...
 
 ~ctkCmdLineModuleXmlValidator ()
 

Detailed Description

Provides validation of an XML document against an XML schema.

Definition at line 39 of file ctkCmdLineModuleXmlValidator.h.

Constructor & Destructor Documentation

◆ ctkCmdLineModuleXmlValidator()

ctkCmdLineModuleXmlValidator::ctkCmdLineModuleXmlValidator ( QIODevice *  input = 0)

◆ ~ctkCmdLineModuleXmlValidator()

ctkCmdLineModuleXmlValidator::~ctkCmdLineModuleXmlValidator ( )

Member Function Documentation

◆ error()

virtual bool ctkCmdLineModuleXmlValidator::error ( ) const
virtual

Get the error flag.

Returns
true if an error occured during validation, false otherwise.

Reimplemented in ctkCmdLineModuleXslTransform.

◆ errorString()

virtual QString ctkCmdLineModuleXmlValidator::errorString ( ) const
virtual

Get the error string.

Returns
A description of the validation error, if any.

Reimplemented in ctkCmdLineModuleXslTransform.

◆ input()

QIODevice* ctkCmdLineModuleXmlValidator::input ( ) const

Get the XML input device.

Returns
The XML input device.

◆ setInput()

void ctkCmdLineModuleXmlValidator::setInput ( QIODevice *  input)

Set the XML input.

Parameters
inputThe Xml input.

◆ setInputSchema()

void ctkCmdLineModuleXmlValidator::setInputSchema ( QIODevice *  input)

Set the XML schema to be used during validation.

Parameters
inputThe XML schema.

◆ validateInput()

virtual bool ctkCmdLineModuleXmlValidator::validateInput ( )
virtual

Validate the XML input against the XML schema set via setInputSchema().

Returns
true if validation was successful, false otherwise.

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