public final class EnterpriseConfiguration extends ProfessionalConfiguration
Configuration
.Configuration.LicenseFeature
collectionFinder, defaultStaticQueryContext, DO_NOT_RECOVER, JAVA_APPLICATION, optimizationLevel, optimizer, RECOVER_SILENTLY, RECOVER_WITH_WARNINGS, typeHierarchy, vendorFunctionLibrary, XML_SCHEMA, XML10, XML11, XPATH, XQUERY, XSD10, XSD11, xsdVersion, XSLT
Constructor and Description |
---|
EnterpriseConfiguration()
Create an EnterpriseConfiguration
|
Modifier and Type | Method and Description |
---|---|
void |
addSchema(PreparedSchema pschema)
Add a schema (a collection of schema components) to the cache
|
void |
addSchemaForBuiltInNamespace(String namespace)
Add a built-in schema for a given namespace.
|
void |
addSchemaSource(Source schemaSource,
ErrorListener errorListener)
Load a schema, which will be available for use by all subsequent operations using
this EnterpriseConfiguration.
|
void |
addSurrogateSchema(String namespace)
Put a temporary schema marker in the cache, to indicate that a schema for a given
namespace is being processed.
|
void |
checkLicensedFeature(int feature,
String name,
int localLicenseId)
Check whether a particular feature is licensed, with a fatal error if it is not
|
void |
checkTypeDerivationIsOK(SchemaType derived,
SchemaType base,
int block)
Check that a type is validly derived from another type, following the rules for the Schema Component
Constraint "Is Type Derivation OK (Simple)" (3.14.6) or "Is Type Derivation OK (Complex)" (3.4.6) as
appropriate.
|
void |
clearSchemaCache()
Remove all schema components that have been loaded into this Configuration.
|
void |
declareBuiltInExtensionElementNamespaces()
Declare the built-in XSLT extension element namespaces
|
void |
exportComponents(Receiver out)
Export a precompiled Schema Component Model containing all the components (except built-in components)
that have been loaded into this Processor.
|
Receiver |
getAnnotationStripper(Receiver destination)
Add to a pipeline a receiver that strips all type annotations.
|
SchemaDeclaration |
getAttributeDeclaration(int fingerprint)
Get a global attribute declaration by fingerprint
|
SchemaDeclaration |
getAttributeDeclaration(StructuredQName attributeName)
Get a global attribute declaration by name
|
Object |
getConfigurationProperty(String name)
Get a property of the configuration
|
Collection<GlobalParam> |
getDeclaredSchemaParameters()
Get the set of saxon:param schema parameters declared in the schema held by this Configuration.
|
Receiver |
getDocumentValidator(Receiver receiver,
String systemId,
ParseOptions validationOptions)
Get a document-level validator to add to a Receiver pipeline
|
String |
getEditionCode()
Get the edition code identifying this configuration: "HE", "PE" or "EE"
|
SchemaDeclaration |
getElementDeclaration(int fingerprint)
Get a global element declaration by fingerprint
|
SchemaDeclaration |
getElementDeclaration(StructuredQName qName)
Get a global element declaration by name.
|
SequenceReceiver |
getElementValidator(SequenceReceiver receiver,
ParseOptions options,
Location locationId)
Get a Receiver that can be used to validate an element, and that passes the validated
element on to a target receiver.
|
Iterator<? extends SchemaType> |
getExtensionsOfType(SchemaType type)
Get the set of complex types that have been defined as extensions of a given type.
|
Set<String> |
getImportedNamespaces()
Get the set of namespaces of imported schemas
|
SequenceIterator |
getMultithreadedItemMappingIterator(SequenceIterator base,
ItemMappingFunction action)
Get an item mapping iterator suitable for multi-threaded execution, if this is permitted
|
int |
getNamespaceStatus(String namespace)
Get the status of a particular schema namespace.
|
int[] |
getOccurrenceLimits()
Get the occurrence limits previously set using setOccurrenceLimits (or the default)
|
int |
getResultDocumentThreadsLimit()
Get the number of threads to be used for xsl:result-document instructions
|
Function |
getSchemaAsFunctionItem()
Get information about the schema in the form of a function item.
|
Function |
getSchemaComponentAsFunctionItem(String kind,
QNameValue name)
Get information about the schema in the form of a function item.
|
SchemaType |
getSchemaType(StructuredQName name)
Get the top-level schema type definition with a given QName.
|
SchemaURIResolver |
getSchemaURIResolver()
Get the user-defined SchemaURIResolver for resolving URIs used in "import schema"
declarations; if none has been explicitly set, returns the standard schema URI resolver.
|
int |
getStreamability()
Get the streamability rules to be applied.
|
PreparedSchema |
getSuperSchema()
Get the SuperSchema, containing references to all names defined in all
known schemas
|
TypeHierarchy |
getTypeHierarchy()
Get the TypeHierarchy: a cache holding type information
|
VendorFunctionLibrary |
getVendorFunctionLibrary()
Get the FunctionLibrary used to bind calls on Saxon-defined extension functions
|
void |
importComponents(Source source)
Import a precompiled Schema Component Model from a given Source.
|
boolean |
isDeclaredNotation(String uri,
String local)
Ask whether a given notation has been declared in the schema
|
boolean |
isSchemaAvailable(String targetNamespace)
Determine whether the Configuration contains a cached schema for a given target namespace
|
boolean |
isSealedNamespace(String namespace)
Test whether a schema namespace is sealed.
|
IAccumulatorManager |
makeAccumulatorManager()
Factory method to make the AccumulatorManager, used for dynamic information
about the accumulators used in a particular transformation
|
IAccumulatorRegistry |
makeAccumulatorRegistry()
Factory method to make the AccumulatorManager, used for static information
about the accumulators used in a particular package
|
Sequence |
makeClosure(Expression expression,
int ref,
XPathContext context)
Make a Closure, given the expected reference count
|
CompilerInfo |
makeCompilerInfo()
Make an XSLT CompilerInfo object - can be overridden in a subclass to produce variants
capable of optimization
|
FilterFactory |
makeDocumentProjector(PathMap.PathMapRoot map)
Create a document projector for a given path map root.
|
FilterFactory |
makeDocumentProjector(XQueryExpression exp)
Create a document projector for the document supplied as the initial context item
in a query.
|
SimpleMode |
makeMode(StructuredQName modeName,
CompilerInfo compilerInfo)
Make a new Mode - this can be overridden in subclasses to produce optimized variants
|
PackageLoaderEE |
makePackageLoader() |
PipelineConfiguration |
makePipelineConfiguration()
Make a PipelineConfiguration from the properties of this Configuration
|
Sequence |
makeSequenceExtent(Expression expression,
int ref,
XPathContext context)
Make a SequenceExtent, given the expected reference count
|
Receiver |
makeStreamingTransformer(XPathContext context,
Mode mode)
Create a streaming transformer
|
StyleNodeFactory |
makeStyleNodeFactory(Compilation compilation)
Factory method to make a StyleNodeFactory, used for constructing elements
in a stylesheet document
|
StylesheetPackage |
makeStylesheetPackage()
Factory method to make a StylesheetPackage
|
XPathContextMajor.ThreadManager |
makeThreadManager()
Make a ThreadManager for asynchronous xsl:result-document instructions
|
XQueryExpression |
makeXQueryExpression(Expression exp,
QueryModule mainModule,
boolean streaming)
Factory method to make an XQueryExpression
|
protected void |
needEnterpriseEdition()
Throw an error indicating that a request cannot be satisfied because it requires
the enterprise edition of Saxon.
|
XPathParser |
newExpressionParser(String language,
boolean updating,
int languageVersion)
Make an expression Parser for a specified version of XPath or XQuery
|
PendingUpdateList |
newPendingUpdateList()
Get a new Pending Update List
|
SchemaCompiler |
newSchemaCompiler()
Make a SchemaCompiler which can be used to compile schema documents.
|
Optimizer |
obtainOptimizer()
Factory method to get an Optimizer
|
void |
prepareValidationReporting(XPathContext context,
ParseOptions options)
Set validation reporting options.
|
void |
processResultDocument(ResultDocument instruction,
Expression content,
XPathContext context)
Process an xsl:result-document instruction.
|
protected Configuration |
readConfigurationFile(Source source)
Read the configuration file an construct a new Configuration (the real one)
|
String |
readInlineSchema(NodeInfo root,
String expected,
ErrorListener errorListener)
Read an inline schema from a stylesheet
|
void |
readMultipleSchemas(PipelineConfiguration pipe,
String baseURI,
Collection<String> schemaLocations,
String expected)
Read schema documents from a list of schema locations
|
String |
readSchema(PipelineConfiguration pipe,
String baseURI,
String schemaLocation,
String expected)
Read a schema from a given schema location
|
void |
removeSchema(String namespace)
Remove the schema for a given namespace.
|
void |
sealNamespace(String namespace)
Mark a schema namespace as being sealed.
|
void |
setConfigurationProperty(String name,
Object value)
Set a property of the configuration.
|
protected void |
setLicensedFeatures() |
void |
setNamespaceStatus(String namespace,
int status)
Set the status of a particular schema namespace.
|
void |
setOccurrenceLimits(int minimum,
int maximum)
Set the occurrence limits to be used when compiling a finite state automaton.
|
void |
setParameterizedURIResolver()
Set the URIResolver to a URI resolver that allows query parameters after the URI,
and in the case of Saxon-EE, that inteprets the file extension .ptree
|
void |
setSchemaURIResolver(SchemaURIResolver resolver)
Set a user-defined SchemaURIResolver for resolving URIs used in "import schema"
declarations.
|
void |
setStreamability(int streamability)
Set the streamability rules to be applied.
|
protected boolean |
testFeature(int feature)
Determine if a particular feature is licensed.
|
SimpleType |
validateAttribute(StructuredQName nodeName,
CharSequence value,
int validation)
Validate an attribute value (XSLT only)
|
addExtensionBinders, declareBuiltInExtensionFunctions, displayLicenseMessage, forceLoadLicense, getExtensionBinder, getExtensionElementFactory, getFeature, getLicenseFeature, importLicenseDetails, isExtensionElementAvailable, isFeatureAllowedBySecondaryLicense, isLicensedFeature, isLicenseFound, isLicenseNotFound, loadLicense, makeFunctionSequenceCoercer, makeProfessionalConfiguration, makeSystemFunctionLibrary, makeUnconstructedDocument, makeUnconstructedElement, newUserFunction, registerLocalLicense, reportIfMissingLicenseFeature, resolveSource, setExtensionBinder, setExtensionElementNamespace, supplyLicenseKey
addSchemaSource, buildDocument, buildDocument, buildDocumentTree, buildDocumentTree, finalize, getBooleanProperty, getCharacterSetFactory, getClass, getCollation, getCollation, getCollation, getCollationURIResolver, getCollectionFinder, getCollectionURIResolver, getConfiguration, getConversionContext, getConversionRules, getDebugger, getDefaultCollationName, getDefaultCollection, getDefaultCountry, getDefaultLanguage, getDefaultSerializationProperties, getDefaultStaticQueryContext, getDefaultXsltCompilerInfo, getDocumentNumberAllocator, getDynamicLoader, getErrorListener, getExternalObjectModel, getExternalObjectModel, getExternalObjectModels, getGlobalDocumentPool, getInstance, getIntegratedFunctionLibrary, getLabel, getLocalizerFactory, getLogger, getMediaQueryEvaluator, getMessageEmitterClass, getModuleURIResolver, getNamePool, getOutputURIResolver, getParseOptions, getProcessor, getProductTitle, getRecoveryPolicy, getSchemaValidationMode, getSerializerFactory, getSourceParser, getSourceParserClass, getSourceResolver, getStandardErrorOutput, getStandardModuleURIResolver, getStripsWhiteSpace, getStyleParser, getStyleParserClass, getSystemURIResolver, getTraceListener, getTraceListenerClass, getTreeModel, getURIResolver, getValidCharacterChecker, getXMLVersion, getXsdVersion, init, instantiateClassName, internalSetBooleanProperty, isCompatible, isCompileWithTracing, isExpandAttributeDefaults, isGenerateByteCode, isLineNumbering, isStripsAllWhiteSpace, isTiming, isValidation, isValidationWarnings, isVersionWarning, isXIncludeAware, loadSchema, locateResource, locateResourceSource, makeEmitter, makeLicensedConfiguration, makeNumberer, makeParser, makeSlotManager, makeTraceListener, makeTraceListener, makeURIResolver, newConfiguration, newStaticQueryContext, readConfiguration, registerCollation, registerExtensionFunction, registerExternalObjectModel, reportFatalError, requireBoolean, requireString, reuseSourceParser, reuseStyleParser, setBooleanProperty, setCollationURIResolver, setCollectionFinder, setCollectionURIResolver, setCompileWithTracing, setConversionRules, setDebugger, setDefaultCollection, setDefaultCountry, setDefaultLanguage, setDefaultSerializationProperties, setDocumentNumberAllocator, setDynamicLoader, setErrorListener, setExpandAttributeDefaults, setLabel, setLineNumbering, setLocalizerFactory, setLogger, setMediaQueryEvaluator, setMessageEmitterClass, setModuleURIResolver, setModuleURIResolver, setNamePool, setOutputURIResolver, setProcessor, setRecoveryPolicy, setSchemaValidationMode, setSerializerFactory, setSourceParserClass, setSourceResolver, setStandardErrorOutput, setStaticQueryContextFactory, setStripsAllWhiteSpace, setStripsWhiteSpace, setStyleParserClass, setTiming, setTraceListener, setTraceListenerClass, setTreeModel, setURIResolver, setValidation, setValidationWarnings, setVersionWarning, setXIncludeAware, setXMLVersion, unravel
public EnterpriseConfiguration()
public String getEditionCode()
getEditionCode
in class ProfessionalConfiguration
public void setConfigurationProperty(String name, Object value)
setConfigurationProperty
in class ProfessionalConfiguration
name
- the URI identifying the property to be set. See the class FeatureKeys
for
constants representing the property names that can be set.value
- the value of the propertyIllegalArgumentException
- if the property name is not recognized or if the value is not
a valid value for the named propertyprotected Configuration readConfigurationFile(Source source) throws XPathException
readConfigurationFile
in class ProfessionalConfiguration
source
- the source of the configuration fileXPathException
public Object getConfigurationProperty(String name)
getConfigurationProperty
in class ProfessionalConfiguration
name
- the name of the required property. See the class FeatureKeys
for
constants representing the property names that can be requested.IllegalArgumentException
- thrown if the property is not one that Saxon recognizes.public void checkLicensedFeature(int feature, String name, int localLicenseId) throws LicenseException
checkLicensedFeature
in class ProfessionalConfiguration
feature
- the feature in question, identified by a constant in class LicenseFeature
name
- the name of the required feature, for use in diagnosticslocalLicenseId
- LicenseException
- if the feature is not licensedprotected void setLicensedFeatures()
setLicensedFeatures
in class ProfessionalConfiguration
protected boolean testFeature(int feature)
Configuration.isLicensedFeature(int)
which will load the license when necessary.testFeature
in class ProfessionalConfiguration
feature
- the feature in question, identified by a constant in class {#LicenseFeature}protected void needEnterpriseEdition()
needEnterpriseEdition
in class Configuration
public StyleNodeFactory makeStyleNodeFactory(Compilation compilation)
makeStyleNodeFactory
in class ProfessionalConfiguration
compilation
- the compilation episode (compiling one XSLT package)public StylesheetPackage makeStylesheetPackage()
makeStylesheetPackage
in class Configuration
public IAccumulatorRegistry makeAccumulatorRegistry()
makeAccumulatorRegistry
in class ProfessionalConfiguration
public IAccumulatorManager makeAccumulatorManager()
makeAccumulatorManager
in class ProfessionalConfiguration
public VendorFunctionLibrary getVendorFunctionLibrary()
getVendorFunctionLibrary
in class ProfessionalConfiguration
public TypeHierarchy getTypeHierarchy()
getTypeHierarchy
in class ProfessionalConfiguration
public void setParameterizedURIResolver()
setParameterizedURIResolver
in class Configuration
public void setSchemaURIResolver(SchemaURIResolver resolver)
resolver
- the URI resolver used for import schema declarationspublic PackageLoaderEE makePackageLoader()
makePackageLoader
in class ProfessionalConfiguration
public SchemaCompiler newSchemaCompiler()
public void setOccurrenceLimits(int minimum, int maximum)
minimum
- The highest value of minOccurs that will be strictly enforced. If the actual
value of minOccurs in a schema is higher than this value, it will be treated as if this value
had been specified. The default is 100.maximum
- The highest value of maxOccurs that will be strictly enforced. If the actual
value of maxOccurs in a schema is higher than this value, it will be treated as if "unbounded"
had been specified. The default is 250.public int[] getOccurrenceLimits()
public SchemaURIResolver getSchemaURIResolver()
public String readSchema(PipelineConfiguration pipe, String baseURI, String schemaLocation, String expected) throws SchemaException
readSchema
in class Configuration
pipe
- the PipelineConfigurationbaseURI
- the base URI for resolving relative URIsschemaLocation
- the location "hint" where to find the schema document. Must not be null.
If the "file extension" of the schemaLocation matches the registered SCM file
extension (default ".scm") then the schemaLocation is assumed to identify a
schema in compiled Schema Component Model formatexpected
- the target namespace expected; null if there is no
expectationSchemaException
- if the schema cannot be readpublic void readMultipleSchemas(PipelineConfiguration pipe, String baseURI, Collection<String> schemaLocations, String expected) throws SchemaException
readMultipleSchemas
in class Configuration
pipe
- the pipeline configurationbaseURI
- the base URI for resolving relative URIsschemaLocations
- the list of location "hints" where to find the schema document. Must not be null.expected
- the target namespace expected in each of the schema documents; null if there is no
expected namespaceSchemaException
- if an error occurspublic String readInlineSchema(NodeInfo root, String expected, ErrorListener errorListener) throws SchemaException
readInlineSchema
in class Configuration
root
- the xs:schema element in the stylesheetexpected
- the target namespace expected; "" if there is no
expectationerrorListener
- The destination for error messages. May be null, in which case
the errorListener registered with this Configuration is used.SchemaException
- if the schema cannot be processedpublic void addSchemaSource(Source schemaSource, ErrorListener errorListener) throws SchemaException
addSchemaSource
in class Configuration
schemaSource
- the JAXP Source object identifying the schema document to be loaded. This may be either
a source schema document in XSD format, or a compiled schema in Saxon's SCM formaterrorListener
- the ErrorListener to be notified of any errors in the schema. If null,
the configuration's errorListener is usedSchemaException
- if the schema cannot be read or parsed or if it is invalidpublic void addSchema(PreparedSchema pschema) throws SchemaException
pschema
- The schema to be addedSchemaException
- if the schema cannot be added because components in the schema
are incompatible with components already in the cachepublic void addSurrogateSchema(String namespace)
This method is intended for internal use
namespace
- the target namespace of the schemapublic void addSchemaForBuiltInNamespace(String namespace)
addSchemaForBuiltInNamespace
in class Configuration
namespace
- the namespace. Currently built-in schemas are available for the XML, XSI, and FN namespacespublic int getNamespaceStatus(String namespace)
namespace
- the Namespace URI whose status is required (supply "" for the non-namespace)PreparedSchema.NAMESPACE_KNOWN
, PreparedSchema.NAMESPACE_UNKNOWN
,
PreparedSchema.NAMESPACE_UNDER_CONSTRUCTION
, PreparedSchema.NAMESPACE_SEALED
public void setNamespaceStatus(String namespace, int status)
namespace
- the Namespace URI whose status is required (supply "" for the non-namespace)status
- one of PreparedSchema.NAMESPACE_KNOWN
, PreparedSchema.NAMESPACE_UNKNOWN
,
PreparedSchema.NAMESPACE_UNDER_CONSTRUCTION
, PreparedSchema.NAMESPACE_SEALED
public boolean isSchemaAvailable(String targetNamespace)
isSchemaAvailable
in class Configuration
targetNamespace
- the target namespace of the schema being sought (supply "" for the
unnamed namespace)public void removeSchema(String namespace)
namespace
- the namespace of the schema to be removedpublic Set<String> getImportedNamespaces()
getImportedNamespaces
in class Configuration
public PreparedSchema getSuperSchema()
public void sealNamespace(String namespace)
sealNamespace
in class Configuration
namespace
- the namespace URI of the components to be sealedpublic boolean isSealedNamespace(String namespace)
namespace
- the namespace URI of the components to be tested. Supply "" for the no-namespace.public Collection<GlobalParam> getDeclaredSchemaParameters()
getDeclaredSchemaParameters
in class Configuration
public Iterator<? extends SchemaType> getExtensionsOfType(SchemaType type)
getExtensionsOfType
in class Configuration
type
- the type whose extensions are requiredpublic void importComponents(Source source) throws XPathException
importComponents
in class Configuration
source
- the XML file containing the schema component model, as generated by a previous call on
exportComponents(net.sf.saxon.event.Receiver)
XPathException
- if an error occurspublic void exportComponents(Receiver out) throws XPathException
exportComponents
in class Configuration
out
- the destination to recieve the precompiled Schema Component Model in the form of an
XML documentXPathException
- if a failure occurspublic void clearSchemaCache()
clearSchemaCache
in class Configuration
public Function getSchemaAsFunctionItem()
getSchemaAsFunctionItem
in class Configuration
public Function getSchemaComponentAsFunctionItem(String kind, QNameValue name) throws XPathException
getSchemaComponentAsFunctionItem
in class Configuration
kind
- the component kind, e.g. "element declaration"name
- the component nameXPathException
- if the first argument does not identify a valid kind of componentpublic SchemaDeclaration getElementDeclaration(int fingerprint)
getElementDeclaration
in class Configuration
fingerprint
- the NamePool fingerprint of the element namepublic SchemaDeclaration getElementDeclaration(StructuredQName qName)
getElementDeclaration
in class Configuration
qName
- the name of the required
element declarationpublic SchemaDeclaration getAttributeDeclaration(int fingerprint)
getAttributeDeclaration
in class Configuration
fingerprint
- the NamePool fingerprint of the element namepublic SchemaDeclaration getAttributeDeclaration(StructuredQName attributeName)
getAttributeDeclaration
in class Configuration
attributeName
- the name of the required attribute declarationpublic SchemaType getSchemaType(StructuredQName name)
getSchemaType
in class Configuration
name
- the name of the required schema typepublic boolean isDeclaredNotation(String uri, String local)
isDeclaredNotation
in interface NotationSet
isDeclaredNotation
in class Configuration
uri
- the targetNamespace of the notationlocal
- the local part of the notation namepublic void checkTypeDerivationIsOK(SchemaType derived, SchemaType base, int block) throws SchemaException
checkTypeDerivationIsOK
in class Configuration
derived
- the derived typebase
- the base type; the algorithm tests whether derivation from this type is permittedblock
- the derivations that are blocked by the relevant element declarationSchemaException
- if the derivation is not allowedpublic void prepareValidationReporting(XPathContext context, ParseOptions options) throws XPathException
prepareValidationReporting
in class Configuration
context
- the XPath evaluation contextoptions
- the parser options, to be updatedXPathException
public Receiver getDocumentValidator(Receiver receiver, String systemId, ParseOptions validationOptions)
getDocumentValidator
in class Configuration
receiver
- The receiver to which events should be sent after validationsystemId
- the base URI of the document being validatedvalidationOptions
- Supplies options relevant to XSD validationpublic SequenceReceiver getElementValidator(SequenceReceiver receiver, ParseOptions options, Location locationId) throws XPathException
getElementValidator
in class Configuration
receiver
- the target receiver to receive the validated element; its pipelineConfiguration
must be initialized.options
- options affecting the way schema validation is donelocationId
- identifies the location of the element within its source document (or, if
preferred, the location of the instruction requesting validation), relative to the LocationProvider
in the PipelineConfiguration of the receiverXPathException
- if a validator for the element cannot be createdpublic SimpleType validateAttribute(StructuredQName nodeName, CharSequence value, int validation) throws ValidationException, MissingComponentException
validateAttribute
in class Configuration
nodeName
- the name of the attributevalue
- the value of the attribute as a stringvalidation
- STRICT or LAXValidationException
- if the value is invalidMissingComponentException
public Receiver getAnnotationStripper(Receiver destination)
getAnnotationStripper
in class Configuration
destination
- the Receiver that events will be written to after whitespace strippingpublic XPathParser newExpressionParser(String language, boolean updating, int languageVersion)
newExpressionParser
in class ProfessionalConfiguration
language
- set to "XP" (XPath) or "XQ" (XQuery) or "PATTERN" (XSLT Pattern syntax)updating
- indicates whether or not XQuery update syntax may be used. Note that XQuery Update
is supported only in Saxon-EElanguageVersion
- the required version as a 'tenths' integer (e.g 30, 31).UnsupportedOperationException
- if a parser that supports update syntax is requested on Saxon-HEpublic PendingUpdateList newPendingUpdateList()
newPendingUpdateList
in class Configuration
public PipelineConfiguration makePipelineConfiguration()
makePipelineConfiguration
in class Configuration
public FilterFactory makeDocumentProjector(PathMap.PathMapRoot map)
makeDocumentProjector
in class Configuration
map
- a path map root in a path map. This might represent the call to the initial
context item for a query, or it might represent a call on the doc() function. The path map
contains information about the paths that the query uses within this document.UnsupportedOperationException
- if this is not a schema-aware configuration, or
if no Saxon-EE license is availablepublic FilterFactory makeDocumentProjector(XQueryExpression exp)
makeDocumentProjector
in class Configuration
exp
- an XQuery expression. The document projector that is returned will
be for the document supplied as the context item to this query.UnsupportedOperationException
- if this is not a schema-aware configuration, or
if no Saxon-EE license is availablepublic void setStreamability(int streamability)
streamability
- the streamability rules. With a plain Saxon-HE Configuration,
any value other than 0 causes an IllegalArgumentExceptionpublic int getStreamability()
getStreamability
in class Configuration
Streamability.OFF
, Streamability.STANDARD
, or Streamability.EXTENDED
public Receiver makeStreamingTransformer(XPathContext context, Mode mode) throws XPathException
makeStreamingTransformer
in class Configuration
context
- the initial XPath contextmode
- the initial mode, which must be a streaming modeXPathException
- if a streaming transformer cannot be created (which
is always the case in Saxon-HE and Saxon-PE)public Optimizer obtainOptimizer()
obtainOptimizer
in class Configuration
public XQueryExpression makeXQueryExpression(Expression exp, QueryModule mainModule, boolean streaming) throws XPathException
makeXQueryExpression
in class Configuration
exp
- the expression forming the body of the querymainModule
- the query module containing the expressionstreaming
- true if streamed execution is requestedXPathException
- if an error occurspublic int getResultDocumentThreadsLimit()
public void processResultDocument(ResultDocument instruction, Expression content, XPathContext context) throws XPathException
processResultDocument
in class Configuration
instruction
- the instruction to be executedcontent
- the expression that defines the content of the new result documentcontext
- the evaluation contextXPathException
- if any dynamic error occurspublic SequenceIterator getMultithreadedItemMappingIterator(SequenceIterator base, ItemMappingFunction action) throws XPathException
getMultithreadedItemMappingIterator
in class Configuration
base
- iterator over the input sequenceaction
- mapping function to be applied to each item in the input sequence.XPathException
- if (for example) a dynamic error occurs while priming the queuepublic Sequence makeClosure(Expression expression, int ref, XPathContext context) throws XPathException
makeClosure
in class Configuration
expression
- the expression to be evaluatedref
- the (nominal) number of times the value of the expression is requiredcontext
- the XPath dynamic evaluation contextXPathException
- if a failure occurs constructing the Closurepublic Sequence makeSequenceExtent(Expression expression, int ref, XPathContext context) throws XPathException
makeSequenceExtent
in class Configuration
expression
- the expression to be evaluatedref
- the (nominal) number of times the value of the expression is requiredcontext
- the XPath dynamic evaluation contextXPathException
- if evaluation of the expression failspublic void declareBuiltInExtensionElementNamespaces()
declareBuiltInExtensionElementNamespaces
in class ProfessionalConfiguration
public SimpleMode makeMode(StructuredQName modeName, CompilerInfo compilerInfo)
makeMode
in class ProfessionalConfiguration
modeName
- the name of the modecompilerInfo
- information on the compiler, that can alter rule optimizationpublic XPathContextMajor.ThreadManager makeThreadManager()
makeThreadManager
in class Configuration
public CompilerInfo makeCompilerInfo()
makeCompilerInfo
in class Configuration
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.