/** * Creates a new {@code RootNode} instance. * * @param detailAst reference to {@code DetailAST} */ public RootNode(DetailAST detailAst) { super(new GenericTreeInfo(Configuration.newConfiguration())); this.detailAst = detailAst; if (detailAst != null) { createChildren(); } }
/** * Create an Orphan node * * @param config the Saxon configuration */ public Orphan(Configuration config) { treeInfo = new GenericTreeInfo(config); treeInfo.setRootNode(this); }
/** * Constructor: create a result tree fragment containing a single text node * * @param value a String containing the value * @param baseURI the base URI of the document node */ public TextFragmentValue(Configuration config, CharSequence value, String baseURI) { this.text = value; this.baseURI = baseURI; this.treeInfo = new GenericTreeInfo(config); this.treeInfo.setRootNode(this); }
/** * Create an Orphan node * * @param config the Saxon configuration */ public Orphan(Configuration config) { treeInfo = new GenericTreeInfo(config); treeInfo.setRootNode(this); }
/** * Constructor: create a result tree fragment containing a single text node * * @param value a String containing the value * @param baseURI the base URI of the document node */ public TextFragmentValue(Configuration config, CharSequence value, String baseURI) { this.text = value; this.baseURI = baseURI; this.treeInfo = new GenericTreeInfo(config); this.treeInfo.setRootNode(this); }
/** * Creates a new {@code RootNode} instance. * * @param detailAst reference to {@code DetailAST} */ public RootNode(DetailAST detailAst) { super(new GenericTreeInfo(Configuration.newConfiguration())); this.detailAst = detailAst; if (detailAst != null) { createChildren(); } }
String docUri = ((NodeInfo)item).getSystemId(); DocumentURI docKey = new DocumentURI(docUri); TreeInfo info = item instanceof TreeInfo ? (TreeInfo)item : new GenericTreeInfo(controller.getConfiguration(), (NodeInfo)item); docPool.add(info, docKey);
String docUri = ((NodeInfo)item).getSystemId(); DocumentURI docKey = new DocumentURI(docUri); TreeInfo info = item instanceof TreeInfo ? (TreeInfo)item : new GenericTreeInfo(controller.getConfiguration(), (NodeInfo)item); docPool.add(info, docKey);