Package net.sf.saxon.lib
Class StaticQueryContextFactory
- java.lang.Object
-
- net.sf.saxon.lib.StaticQueryContextFactory
-
public class StaticQueryContextFactory extends java.lang.Object
Factory class for creating a customized instance of StaticQueryContext
-
-
Constructor Summary
Constructors Constructor Description StaticQueryContextFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StaticQueryContext
newStaticQueryContext(Configuration config, boolean copyFromDefault)
Create a new instance ofStaticQueryContext
.
-
-
-
Method Detail
-
newStaticQueryContext
public StaticQueryContext newStaticQueryContext(Configuration config, boolean copyFromDefault)
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
-
-