#include <SaxonProcessor.h>
Public Member Functions | |
| SaxonProcessor () | |
| A default constructor. More... | |
| SaxonProcessor (const char *configFile) | |
| constructor based upon a Saxon configuration file. More... | |
| SaxonProcessor (bool l) | |
| A constructor. More... | |
| SaxonProcessor & | operator= (const SaxonProcessor &other) |
| ~SaxonProcessor () | |
| XsltProcessor * | newXsltProcessor () |
| XQueryProcessor * | newXQueryProcessor () |
| XPathProcessor * | newXPathProcessor () |
| SchemaValidator * | newSchemaValidator () |
| XdmAtomicValue * | makeStringValue (std::string str) |
| XdmAtomicValue * | makeStringValue (const char *str) |
| XdmAtomicValue * | makeIntegerValue (int i) |
| XdmAtomicValue * | makeDoubleValue (double d) |
| XdmAtomicValue * | makeFloatValue (float) |
| XdmAtomicValue * | makeLongValue (long l) |
| XdmAtomicValue * | makeBooleanValue (bool b) |
| XdmAtomicValue * | makeQNameValue (std::string str) |
| XdmAtomicValue * | makeAtomicValue (std::string type, std::string value) |
| const char * | getStringValue (XdmItem *item) |
| XdmNode * | parseXmlFromString (const char *source) |
| XdmNode * | parseXmlFromFile (const char *source) |
| XdmNode * | parseXmlFromUri (const char *source) |
| int | getNodeKind (jobject) |
| bool | isSchemaAware () |
| bool | exceptionOccurred () |
| void | exceptionClear (bool clearCPPException=true) |
| SaxonApiException * | checkForExceptionCPP (JNIEnv *env, jclass callingClass, jobject callingObject) |
| SaxonApiException * | getException () |
| void | setcwd (const char *cwd) |
| void | setResourcesDirectory (const char *dir) |
| const char * | getResourcesDirectory () |
| void | setConfigurationProperty (const char *name, const char *value) |
| void | clearConfigurationProperties () |
| const char * | version () |
| void | addNativeMethod (char *name, char *signature, void *fnPtr) |
| bool | registerCPPFunction (char *libName, JNINativeMethod *gMethods=NULL) |
| const char * | checkException (jobject cpp) |
| void | checkAndCreateException (jclass cppClass) |
Static Public Member Functions | |
| static void | release () |
| static bool | registerNativeMethods (JNIEnv *env, const char *className, JNINativeMethod *gMethods, int numMethods) |
Public Attributes | |
| std::string | cwd |
| jobject | proc |
Static Public Attributes | |
| static int | jvmCreatedCPP =0 |
| static sxnc_environment * | sxn_environ = 0 |
| static int | refCount = 0 |
Protected Attributes | |
| jclass | xdmAtomicClass |
| jclass | versionClass |
| jclass | procClass |
| jclass | saxonCAPIClass |
| std::string | cwdV |
| char * | versionStr |
| std::map< std::string, XdmValue * > | parameters |
| std::map< std::string, std::string > | configProperties |
| bool | licensei |
| bool | closed |
| SaxonApiException * | exception |
| JNINativeMethod * | nativeMethods |
| std::vector< JNINativeMethod > | nativeMethodVect |
Friends | |
| class | XsltProcessor |
| class | XQueryProcessor |
| class | SchemaValidator |
| class | XPathProcessor |
| class | XdmValue |
| class | XdmAtomicValue |
An SaxonProcessor acts as a factory for generating XQuery, XPath, Schema and XSLT compilers In this alpha release only the XSLT compiler is available
| SaxonProcessor::SaxonProcessor | ( | ) |
A default constructor.
Create Saxon Processor.
| SaxonProcessor::SaxonProcessor | ( | const char * | configFile | ) |
constructor based upon a Saxon configuration file.
Create Saxon Processor.
| SaxonProcessor::SaxonProcessor | ( | bool | l | ) |
A constructor.
Create Saxon Processor.
| l | - Flag that a license is to be used. Default is false. |
| SaxonProcessor::~SaxonProcessor | ( | ) |
Destructor
| SaxonApiException * SaxonProcessor::checkForExceptionCPP | ( | JNIEnv * | env, |
| jclass | callingClass, | ||
| jobject | callingObject | ||
| ) |
Checks for pending exceptions and creates a SaxonApiException object, which handles one or more local exceptions objects
| env | |
| callingClass | |
| callingObject |
| void SaxonProcessor::clearConfigurationProperties | ( | ) |
Clear configuration properties specific to the processor in use.
| void SaxonProcessor::exceptionClear | ( | bool | clearCPPException = true | ) |
Clears any exception that is currently being thrown. If no exception is currently being thrown, this routine has no effect.
| bool SaxonProcessor::exceptionOccurred | ( | ) |
Checks for pending exceptions without creating a local reference to the exception object
| const char * SaxonProcessor::getResourcesDirectory | ( | ) |
get saxon resources directory
| const char * SaxonProcessor::getStringValue | ( | XdmItem * | item | ) |
Get the string representation of the XdmValue.
| XdmAtomicValue * SaxonProcessor::makeAtomicValue | ( | std::string | type, |
| std::string | value | ||
| ) |
Create an Xdm Atomic value from string representation
| type | - Local name of a type in the XML Schema namespace. |
| value | - The value given in a string form. In the case of a QName the value supplied must be in clark notation. {uri}local |
| XdmAtomicValue * SaxonProcessor::makeBooleanValue | ( | bool | b | ) |
Factory method: makes a XdmAtomicValue representing a boolean Value
| b | true or false, to determine which boolean value is required |
| XdmAtomicValue * SaxonProcessor::makeDoubleValue | ( | double | d | ) |
Factory method (for convenience in compiled bytecode)
| d | the value of the double |
| XdmAtomicValue * SaxonProcessor::makeFloatValue | ( | float | d | ) |
Factory method (for convenience in compiled bytecode)
| f | the value of the foat |
| XdmAtomicValue * SaxonProcessor::makeIntegerValue | ( | int | i | ) |
Factory method: makes either an Int64Value or a BigIntegerValue depending on the value supplied
| i | the supplied primitive integer value |
| XdmAtomicValue * SaxonProcessor::makeLongValue | ( | long | l | ) |
Factory method: makes either an Int64Value or a BigIntegerValue depending on the value supplied
| l | the supplied primitive long value |
| XdmAtomicValue * SaxonProcessor::makeQNameValue | ( | std::string | str | ) |
Create an QName Xdm value from string representation in clark notation
| valueStr | - The value given in a string form in clark notation. {uri}local |
| XdmAtomicValue * SaxonProcessor::makeStringValue | ( | std::string | str | ) |
Factory method. Unlike the constructor, this avoids creating a new StringValue in the case of a zero-length string (and potentially other strings, in future)
| value | the String value. Null is taken as equivalent to "". |
| XdmAtomicValue * SaxonProcessor::makeStringValue | ( | const char * | str | ) |
Factory method. Unlike the constructor, this avoids creating a new StringValue in the case of a zero-length string (and potentially other strings, in future)
| value | the char pointer array. Null is taken as equivalent to "". |
| SchemaValidator * SaxonProcessor::newSchemaValidator | ( | ) |
Create a SchemaValidator which can be used to validate instance documents against the schema held by this SchemaManager
| XPathProcessor * SaxonProcessor::newXPathProcessor | ( | ) |
Create an XPathProcessor. An XPathProcessor is used to compile XPath expressions.
| XQueryProcessor * SaxonProcessor::newXQueryProcessor | ( | ) |
Create an XQueryProcessor. An XQueryProcessor is used to compile XQuery queries.
| XsltProcessor * SaxonProcessor::newXsltProcessor | ( | ) |
Create an XsltProcessor. An XsltProcessor is used to compile XSLT stylesheets.
| XdmNode * SaxonProcessor::parseXmlFromFile | ( | const char * | source | ) |
Parse a source document file and return it as an XdmNode.
| XdmNode * SaxonProcessor::parseXmlFromString | ( | const char * | source | ) |
Parse a lexical representation of the source document and return it as an XdmNode
| XdmNode * SaxonProcessor::parseXmlFromUri | ( | const char * | source | ) |
Parse a source document available by URI and return it as an XdmNode.
| void SaxonProcessor::setConfigurationProperty | ( | const char * | name, |
| const char * | value | ||
| ) |
Set a configuration property specific to the processor in use. Properties specified here are common across all the processors. Example 'l':enable line number has the value 'on' or 'off'
| name | of the property |
| value | of the property |
Set a configuration property.
| name | of the property |
| value | of the property |
| void SaxonProcessor::setcwd | ( | const char * | cwd | ) |
set the current working directory
| void SaxonProcessor::setResourcesDirectory | ( | const char * | dir | ) |
set saxon resources directory
| const char * SaxonProcessor::version | ( | ) |
Get the Saxon version
|
protected |
map of properties used for the transformation as (string, string) pairs
| std::string SaxonProcessor::cwd |
current working directory
|
protected |
current working directory
|
protected |
Pointer to any potential exception thrown
|
protected |
indicates whether the Processor requires a Saxon that needs a license file (i.e. Saxon-EE) other a Saxon-HE Processor is created
|
protected |
Vector of native methods defined by user
|
protected |
map of parameters used for the transformation as (string, value) pairs
| jobject SaxonProcessor::proc |
Java Processor object
1.8.6