/** * Make a builder for the selected tree model. * * @return an instance of the Builder for the chosen tree model * @since 8.4 */ public Builder makeBuilder() { Builder b = treeModel.makeBuilder(makePipelineConfiguration()); b.setTiming(config.isTiming()); b.setLineNumbering(config.isLineNumbering()); return b; }
/** * Make a builder for the selected tree model. * * @return an instance of the Builder for the chosen tree model * @since 8.4 */ public Builder makeBuilder() { Builder b = treeModel.makeBuilder(makePipelineConfiguration()); b.setTiming(config.isTiming()); b.setLineNumbering(config.isLineNumbering()); return b; }
/** * Make the handler to construct the XML tree representation for JSON * * @param context the context in which the result tree is to be built * @param staticBaseUri the static base URI, used for the base URI of the constructed tree * @param flags flags indicating the chosen options * @throws XPathException if initialization fails, for example because of problems loading the schema */ public JsonHandlerXML(XPathContext context, String staticBaseUri, int flags) throws XPathException { init(context, flags); builder = context.getController().makeBuilder(); builder.setSystemId(staticBaseUri); builder.setTiming(false); out = new NamespaceReducer(builder); out.open(); out.startDocument(0); }
/** * Make a builder for the selected tree model. * * @return an instance of the Builder for the chosen tree model * @since 8.4 */ public Builder makeBuilder() { Builder b; if (treeModel==Builder.TINY_TREE) { b = new TinyBuilder(); } else { b = new TreeBuilder(); } b.setTiming(config.isTiming()); b.setLineNumbering(config.isLineNumbering()); b.setPipelineConfiguration(makePipelineConfiguration()); return b; }
/** * Make the handler to construct the XML tree representation for JSON * * @param context the context in which the result tree is to be built * @param staticBaseUri the static base URI, used for the base URI of the constructed tree * @param flags flags indicating the chosen options * @throws XPathException if initialization fails, for example because of problems loading the schema */ public JsonHandlerXML(XPathContext context, String staticBaseUri, int flags) throws XPathException { init(context, flags); builder = context.getController().makeBuilder(); builder.setSystemId(staticBaseUri); builder.setTiming(false); out = new NamespaceReducer(builder); out.open(); out.startDocument(0); }
/** * Make a builder for the selected tree model. * * @return an instance of the Builder for the chosen tree model * @since 8.4 */ public Builder makeBuilder() { Builder b; if (treeModel==Builder.TINY_TREE) { b = new TinyBuilder(); } else { b = new TreeBuilder(); } b.setTiming(config.isTiming()); b.setLineNumbering(config.isLineNumbering()); b.setPipelineConfiguration(makePipelineConfiguration()); return b; }
pipe.setParseOptions(options); Builder builder = treeModel.makeBuilder(pipe); builder.setTiming(isTiming()); builder.setLineNumbering(lineNumbering); builder.setPipelineConfiguration(pipe);
pipe.setParseOptions(options); Builder builder = treeModel.makeBuilder(pipe); builder.setTiming(isTiming()); builder.setLineNumbering(lineNumbering); builder.setPipelineConfiguration(pipe);
/** * Create a TinyTree to hold a document or element node. * @throws net.sf.saxon.trans.XPathException */ private void createTree() throws XPathException { PipelineConfiguration pipe = getPipelineConfiguration(); builder = pipe.getController().makeBuilder(); builder.setPipelineConfiguration(pipe); builder.setSystemId(getSystemId()); builder.setTiming(false); NamespaceReducer reducer = new NamespaceReducer(); reducer.setUnderlyingReceiver(builder); reducer.setPipelineConfiguration(getPipelineConfiguration()); ComplexContentOutputter cco = new ComplexContentOutputter(); cco.setHostLanguage(getPipelineConfiguration().getHostLanguage()); cco.setPipelineConfiguration(getPipelineConfiguration()); cco.setReceiver(reducer); outputter = cco; outputter.setSystemId(systemId); outputter.setPipelineConfiguration(getPipelineConfiguration()); outputter.open(); }
b.setTiming(isTiming());
b.setTiming(isTiming());
builder.setSystemId(systemId); builder.setBaseURI(systemId); builder.setTiming(false); builder.setUseEventLocation(false);
builder.setSystemId(systemId); builder.setBaseURI(systemId); builder.setTiming(false); builder.setUseEventLocation(false);
builder.setTiming(false);
builder.setTiming(false);