13#include "SaxonProcessor.h"
67 void setcwd(
const char *cwd);
88 const char *systemID =
nullptr);
120 void validate(
const char *sourceFile =
nullptr);
176 void setProperty(
const char *name,
const char *value);
268 std::map<std::string, XdmValue *>
271 std::map<std::string, std::string>
Definition SaxonApiException.h:23
Definition SaxonProcessor.h:117
Definition SchemaValidator.h:25
void registerSchemaFromString(const char *schemaStr, const char *systemID=nullptr)
Register the schema supplied as a string.
Definition SchemaValidator.cpp:171
void clearProperties()
Clear property values set.
Definition SchemaValidator.cpp:347
void registerSchemaFromFile(const char *xsd)
Register the schema from file name.
Definition SchemaValidator.cpp:131
void setcwd(const char *cwd)
Set the Current working Directory.
Definition SchemaValidator.cpp:78
void setOutputFile(const char *outputFile)
Set the name of the output file that will be used by the validator.
Definition SchemaValidator.cpp:84
int64_t getUnderlyingValidator()
Get the underlying java object of the C++ schema validator.
Definition SchemaValidator.h:256
SchemaValidator & operator=(const SchemaValidator &other)
The copy assignment= operator.
SchemaValidator()
Default constructor.
Definition SchemaValidator.cpp:12
void clearParameters(bool deleteValues=false)
Clear parameter values set.
Definition SchemaValidator.cpp:329
void registerSchemaFromNode(XdmNode *node)
Register the schema supplied as an XDM Node Object.
Definition SchemaValidator.cpp:105
void exportSchema(const char *fileName)
Definition SchemaValidator.cpp:156
XdmNode * getValidationReport()
Get the Validation report.
Definition SchemaValidator.cpp:92
void validate(const char *sourceFile=nullptr)
Validate an instance document by a registered schema.
Definition SchemaValidator.cpp:194
~SchemaValidator()
Definition SchemaValidator.cpp:65
const char * getErrorMessage()
Get number of errors during validation of the source against the schema.
Definition SchemaValidator.cpp:261
std::map< std::string, XdmValue * > & getParameters()
Get all parameters as a std::map.
Definition SchemaValidator.cpp:349
std::map< std::string, std::string > & getProperties()
Get all properties as a std::map.
Definition SchemaValidator.cpp:354
void exceptionClear()
Clear any exception thrown.
Definition SchemaValidator.cpp:247
XdmNode * validateToNode(const char *sourceFile=nullptr)
Validate an instance document supplied as a Source object.
Definition SchemaValidator.cpp:218
void setLax(bool l)
The validation mode may be either strict or lax.
Definition SchemaValidator.cpp:90
void setParameter(const char *name, XdmValue *value)
Set a parameter value used in the validator.
Definition SchemaValidator.cpp:300
void setSourceNode(XdmNode *source)
Set the source node for validation.
Definition SchemaValidator.cpp:281
bool exceptionOccurred()
Definition SchemaValidator.cpp:268
XdmValue * getParameter(const char *name, bool withParam)
Definition SchemaValidator.cpp:291
void setProperty(const char *name, const char *value)
Set a property.
Definition SchemaValidator.cpp:319
const char * getErrorCode()
Get error code if an error is reported.
Definition SchemaValidator.cpp:254
const char * checkException()
Check for exception thrown.
Definition SchemaValidator.cpp:272
bool removeParameter(const char *name)
Remove a parameter (name, value) pair.
Definition SchemaValidator.cpp:315