12 #include "SaxonProcessor.h"
46 void setcwd(
const char* cwd);
85 void validate(
const char * sourceFile =
nullptr);
135 void setProperty(
const char * name,
const char * value);
218 std::string outputFile;
219 std::map<std::string,XdmValue*> parameters;
220 std::map<std::string,std::string> properties;
Definition: SaxonApiException.h:19
The SaxonProcessor class acts as a factory for generating XQuery, XPath, Schema and XSLT compilers.
Definition: SaxonProcessor.h:119
Definition: SchemaValidator.h:24
void clearProperties()
Clear property values set.
Definition: SchemaValidator.cpp:519
void registerSchemaFromFile(const char *xsd)
Register the schema from file name.
Definition: SchemaValidator.cpp:87
void setcwd(const char *cwd)
Set the Current working Directory.
Definition: SchemaValidator.cpp:58
void setOutputFile(const char *outputFile)
Set the name of the output file that will be used by the validator.
Definition: SchemaValidator.cpp:64
jobject getUnderlyingValidator()
Get the underlying java object of the C++ schema validator.
Definition: SchemaValidator.h:206
const char * getErrorCode(int i)
Get the i'th error code if errors are reported.
Definition: SchemaValidator.cpp:440
SchemaValidator()
Default constructor.
Definition: SchemaValidator.cpp:12
void clearParameters(bool deleteValues=false)
Clear parameter values set.
Definition: SchemaValidator.cpp:503
void exportSchema(const char *fileName)
Export a precompiled Schema Component Model containing all the components (except built-in components...
Definition: SchemaValidator.cpp:163
XdmNode * getValidationReport()
Get the Validation report.
Definition: SchemaValidator.cpp:68
void validate(const char *sourceFile=nullptr)
Validate an instance document by a registered schema.
Definition: SchemaValidator.cpp:267
const char * getErrorMessage(int i)
Get number of errors during validation of the source against the schema.
Definition: SchemaValidator.cpp:445
std::map< std::string, XdmValue * > & getParameters()
Get all parameters as a std::map.
Definition: SchemaValidator.cpp:523
std::map< std::string, std::string > & getProperties()
Get all properties as a std::map.
Definition: SchemaValidator.cpp:528
void exceptionClear()
Clear any exception thrown.
Definition: SchemaValidator.cpp:432
XdmNode * validateToNode(const char *sourceFile=nullptr)
Validate an instance document supplied as a Source object.
Definition: SchemaValidator.cpp:353
void setLax(bool l)
The validation mode may be either strict or lax.
Definition: SchemaValidator.h:200
void setParameter(const char *name, XdmValue *value)
Set a parameter value used in the validator.
Definition: SchemaValidator.cpp:474
void setSourceNode(XdmNode *source)
Set the source node for validation.
Definition: SchemaValidator.cpp:465
bool exceptionOccurred()
Checks for pending exceptions without creating a local reference to the exception object.
Definition: SchemaValidator.cpp:450
void registerSchemaFromString(const char *schemaStr)
Register the schema supplied as a string.
Definition: SchemaValidator.cpp:189
void setProperty(const char *name, const char *value)
Set a property.
Definition: SchemaValidator.cpp:494
const char * checkException()
Check for exception thrown.
Definition: SchemaValidator.cpp:454
bool removeParameter(const char *name)
Remove a parameter (name, value) pair.
Definition: SchemaValidator.cpp:490
Definition: XdmValue.h:50