result.setProperty(pn_xqj_defaultCollationUri, ctx.getDefaultCollation()); result.setProperty(pn_xqj_defaultElementTypeNamespace, ctx.getDefaultElementTypeNamespace()); result.setProperty(pn_xqj_defaultFunctionNamespace, ctx.getDefaultFunctionNamespace()); if (ctx.getNamespacePrefixes().length > 0) { StringBuilder namespaces = new StringBuilder();
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()); }
sqc.declareDefaultCollation(ctx.getDefaultCollation()); sqc.setDefaultElementNamespace(ctx.getDefaultElementTypeNamespace()); sqc.setDefaultFunctionNamespace(ctx.getDefaultFunctionNamespace()); sqc.setEmptyLeast(ctx.getDefaultOrderForEmptySequences() == DEFAULT_ORDER_FOR_EMPTY_SEQUENCES_LEAST); sqc.clearNamespaces();