#include <SaxonProcessor.h>
|
static void | release () |
|
static bool | registerNativeMethods (JNIEnv *env, const char *className, JNINativeMethod *gMethods, int numMethods) |
|
|
static int | jvmCreatedCPP =0 |
|
static sxnc_environment * | sxn_environ = 0 |
|
static int | refCount = 0 |
|
|
class | XsltProcessor |
|
class | Xslt30Processor |
|
class | XQueryProcessor |
|
class | SchemaValidator |
|
class | XPathProcessor |
|
class | XdmValue |
|
class | XdmAtomicValue |
|
An SaxonProcessor
acts as a factory for generating XQuery, XPath, Schema and XSLT compilers
◆ SaxonProcessor() [1/3]
SaxonProcessor::SaxonProcessor |
( |
| ) |
|
A default constructor.
Create Saxon Processor.
◆ SaxonProcessor() [2/3]
SaxonProcessor::SaxonProcessor |
( |
const char * |
configFile | ) |
|
constructor based upon a Saxon configuration file.
Create Saxon Processor.
◆ SaxonProcessor() [3/3]
SaxonProcessor::SaxonProcessor |
( |
bool |
l | ) |
|
A constructor.
Create Saxon Processor.
- Parameters
-
l | - Flag that a license is to be used. Default is false. |
◆ ~SaxonProcessor()
SaxonProcessor::~SaxonProcessor |
( |
| ) |
|
◆ checkForExceptionCPP()
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
- Parameters
-
env | |
callingClass | |
callingObject | |
- Returns
- SaxonApiException
◆ clearConfigurationProperties()
void SaxonProcessor::clearConfigurationProperties |
( |
| ) |
|
Clear configuration properties specific to the processor in use.
◆ exceptionClear()
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.
◆ exceptionOccurred()
bool SaxonProcessor::exceptionOccurred |
( |
| ) |
|
Checks for pending exceptions without creating a local reference to the exception object
- Returns
- bool - true when there is a pending exception; otherwise return false
◆ getcwd()
const char * SaxonProcessor::getcwd |
( |
| ) |
|
get the current working directory
◆ getResourcesDirectory()
const char * SaxonProcessor::getResourcesDirectory |
( |
| ) |
|
get saxon resources directory
◆ getStringValue()
const char * SaxonProcessor::getStringValue |
( |
XdmItem * |
item | ) |
|
Get the string representation of the XdmValue.
- Returns
- char array
◆ makeAtomicValue()
XdmAtomicValue * SaxonProcessor::makeAtomicValue |
( |
const char * |
type, |
|
|
const char * |
value |
|
) |
| |
Create an Xdm Atomic value from string representation
- Parameters
-
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 |
- Returns
- XdmValue - value
◆ makeBooleanValue()
Factory method: makes a XdmAtomicValue representing a boolean Value
- Parameters
-
b | true or false, to determine which boolean value is required |
- Returns
- the XdmAtomicValue requested
◆ makeDoubleValue()
Factory method (for convenience in compiled bytecode)
- Parameters
-
- Returns
- a new XdmAtomicValue
◆ makeFloatValue()
Factory method (for convenience in compiled bytecode)
- Parameters
-
- Returns
- a new XdmAtomicValue
◆ makeIntegerValue()
Factory method: makes either an Int64Value or a BigIntegerValue depending on the value supplied
- Parameters
-
i | the supplied primitive integer value |
- Returns
- the value as a XdmAtomicValue which is a BigIntegerValue or Int64Value as appropriate
◆ makeLongValue()
Factory method: makes either an Int64Value or a BigIntegerValue depending on the value supplied
- Parameters
-
l | the supplied primitive long value |
- Returns
- the value as a XdmAtomicValue which is a BigIntegerValue or Int64Value as appropriate
◆ makeQNameValue()
Create an QName Xdm value from string representation in clark notation
- Parameters
-
str | - The value given in a string form in clark notation. {uri}local |
- Returns
- XdmAtomicValue - value
◆ makeStringValue() [1/2]
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)
- Parameters
-
value | the String value. Null is taken as equivalent to "". |
- Returns
- the corresponding StringValue
◆ makeStringValue() [2/2]
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)
- Parameters
-
value | the char pointer array. Null is taken as equivalent to "". |
- Returns
- the corresponding StringValue
◆ newSchemaValidator()
◆ newXPathProcessor()
◆ newXQueryProcessor()
◆ newXslt30Processor()
◆ newXsltProcessor()
◆ parseXmlFromFile()
XdmNode * SaxonProcessor::parseXmlFromFile |
( |
const char * |
source | ) |
|
Parse a source document file and return it as an XdmNode.
◆ parseXmlFromString()
XdmNode * SaxonProcessor::parseXmlFromString |
( |
const char * |
source | ) |
|
Parse a lexical representation of the source document and return it as an XdmNode
◆ parseXmlFromUri()
XdmNode * SaxonProcessor::parseXmlFromUri |
( |
const char * |
source | ) |
|
Parse a source document available by URI and return it as an XdmNode.
◆ setCatalog()
void SaxonProcessor::setCatalog |
( |
const char * |
catalogFile, |
|
|
bool |
isTracing |
|
) |
| |
set catalog to be used in Saxon
◆ setConfigurationProperty()
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'
- Parameters
-
name | of the property |
value | of the property |
Set a configuration property.
- Parameters
-
name | of the property |
value | of the property |
◆ setcwd()
void SaxonProcessor::setcwd |
( |
const char * |
cwd | ) |
|
set the current working directory
◆ setResourcesDirectory()
void SaxonProcessor::setResourcesDirectory |
( |
const char * |
dir | ) |
|
set saxon resources directory
◆ version()
const char * SaxonProcessor::version |
( |
| ) |
|
Get the Saxon version
- Returns
- char array
◆ configProperties
std::map<std::string,std::string> SaxonProcessor::configProperties |
|
protected |
map of properties used for the transformation as (string, string) pairs
◆ cwd
std::string SaxonProcessor::cwd |
current working directory
◆ cwdV
std::string SaxonProcessor::cwdV |
|
protected |
current working directory
◆ exception
Pointer to any potential exception thrown
◆ licensei
bool SaxonProcessor::licensei |
|
protected |
indicates whether the Processor requires a Saxon that needs a license file (i.e. Saxon-EE) other a Saxon-HE Processor is created
◆ nativeMethodVect
std::vector<JNINativeMethod> SaxonProcessor::nativeMethodVect |
|
protected |
Vector of native methods defined by user
◆ parameters
std::map<std::string,XdmValue*> SaxonProcessor::parameters |
|
protected |
map of parameters used for the transformation as (string, value) pairs
◆ proc
jobject SaxonProcessor::proc |
The documentation for this class was generated from the following files: