Properties result = new Properties(); result.put(pn_xqj_baseURI, ctx.getBaseURI()); result.setProperty(pn_xqj_bindingMode, String.valueOf(ctx.getBindingMode())); result.setProperty(pn_xqj_boundarySpacePolicy, String.valueOf(ctx.getBoundarySpacePolicy())); result.setProperty(pn_xqj_constructionMode, String.valueOf(ctx.getConstructionMode()));
public void copyFrom(XQStaticContext from) throws XQException { this.prefixes = null; this.namespaces.clear(); for (String prefix: from.getNamespacePrefixes()) { this.declareNamespace(prefix, from.getNamespaceURI(prefix)); } this.defaultElementTypeNamespace = from.getDefaultElementTypeNamespace(); this.defaultFunctionNamespace = from.getDefaultFunctionNamespace(); this.defaultCollationUri = from.getDefaultCollation(); this.constructionMode = from.getConstructionMode(); this.orderingMode = from.getOrderingMode(); this.defaultOrderForEmptySequences = from.getDefaultOrderForEmptySequences(); this.boundarySpacePolicy = from.getBoundarySpacePolicy(); this.copyNamespacesModePreserve = from.getCopyNamespacesModePreserve(); this.copyNamespacesModeInherit = from.getCopyNamespacesModeInherit(); this.baseUri = from.getBaseURI(); this.bindingMode = from.getBindingMode(); this.holdability = from.getHoldability(); this.queryLanguageTypeAndVersion = from.getQueryLanguageTypeAndVersion(); this.scrollability = from.getScrollability(); this.queryTimeout = from.getQueryTimeout(); setContextItemStaticType(from.getContextItemStaticType()); }