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 of `StaticQueryContext`.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### StaticQueryContextFactory

          public StaticQueryContextFactory()

  - ### Method Detail

    - #### newStaticQueryContext

          public StaticQueryContext newStaticQueryContext​(Configuration config,
                                                          boolean copyFromDefault)

      Create a new instance of `StaticQueryContext`. The default implementation creates a new `StaticQueryContext` as a copy of the `Configuration`'s default static query context. User implementations are encouraged to do the same, but this is not mandatory. If the `Configuration`'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 this `StaticQueryContext`
      Parameters:
        `config` - the configuration
        `copyFromDefault` - 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