Package net.sf.saxon.lib
Class StaticQueryContextFactory
java.lang.Object
net.sf.saxon.lib.StaticQueryContextFactory
Factory class for creating a customized instance of StaticQueryContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnewStaticQueryContext
(Configuration config, boolean copyFromDefault) Create a new instance ofStaticQueryContext
.
-
Constructor Details
-
StaticQueryContextFactory
public StaticQueryContextFactory()
-
-
Method Details
-
newStaticQueryContext
Create a new instance ofStaticQueryContext
. The default implementation creates a newStaticQueryContext
as a copy of theConfiguration
's default static query context. User implementations are encouraged to do the same, but this is not mandatory. If theConfiguration
's default static query context is ignored, then configuration settings specific to XQuery (construction mode, default element namespace, default function namespace, etc) are ignored for queries created under thisStaticQueryContext
- Parameters:
config
- the configurationcopyFromDefault
- true if the properties of the new static query context object are to be copied from the default query context object held in the Configuration- Returns:
- the new
StaticQueryContext
instance
-