/** * Create the TreeInfo * @param config the Saxon Configuration * @param root the root node * @throws java.lang.IllegalArgumentException if the supplied node is not parentless */ public GenericTreeInfo(Configuration config, NodeInfo root) { this.config = config; setRootNode(root); }
/** * Create the TreeInfo * @param config the Saxon Configuration * @param root the root node * @throws java.lang.IllegalArgumentException if the supplied node is not parentless */ public GenericTreeInfo(Configuration config, NodeInfo root) { this.config = config; setRootNode(root); }
/** * 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); }