/** * Set the vector where nodes will be cached. */ protected void SetVector(NodeVector v) { setObject(v); }
/** * Set the vector where nodes will be cached. */ protected void SetVector(NodeVector v) { setObject(v); }
/** * Set the vector where nodes will be cached. */ protected void SetVector(NodeVector v) { setObject(v); }
/** * Set the vector where nodes will be cached. */ protected void SetVector(NodeVector v) { setObject(v); }
/** * Set the vector where nodes will be cached. */ protected void SetVector(NodeVector v) { setObject(v); }
/** * Set the vector where nodes will be cached. */ protected void SetVector(NodeVector v) { setObject(v); }
/** * Set the vector where nodes will be cached. */ protected void SetVector(NodeVector v) { setObject(v); }
/** * Set the vector where nodes will be cached. */ protected void SetVector(NodeVector v) { setObject(v); }
/** * Set the vector where nodes will be cached. */ protected void SetVector(NodeVector v) { setObject(v); }
/** * Set the vector where nodes will be cached. */ protected void SetVector(NodeVector v) { setObject(v); }
/** * Set the vector where nodes will be cached. */ protected void SetVector(NodeVector v) { setObject(v); }
public XNodeSetForDOM(NodeIterator nodeIter, XPathContext xctxt) { m_dtmMgr = xctxt.getDTMManager(); m_origObj = nodeIter; // JKESS 20020514: Longer-term solution is to force // folks to request length through an accessor, so we can defer this // retrieval... but that requires an API change. // m_obj = new org.apache.xpath.NodeSetDTM(nodeIter, xctxt); org.apache.xpath.NodeSetDTM nsdtm=new org.apache.xpath.NodeSetDTM(nodeIter, xctxt); m_last=nsdtm.getLength(); setObject(nsdtm); }
public XNodeSetForDOM(Node node, DTMManager dtmMgr) { m_dtmMgr = dtmMgr; m_origObj = node; int dtmHandle = dtmMgr.getDTMHandleFromNode(node); setObject(new NodeSetDTM(dtmMgr)); ((NodeSetDTM) m_obj).addNode(dtmHandle); }
public XNodeSetForDOM(Node node, DTMManager dtmMgr) { m_dtmMgr = dtmMgr; m_origObj = node; int dtmHandle = dtmMgr.getDTMHandleFromNode(node); setObject(new NodeSetDTM(dtmMgr)); ((NodeSetDTM) m_obj).addNode(dtmHandle); }
public XNodeSetForDOM(NodeIterator nodeIter, XPathContext xctxt) { m_dtmMgr = xctxt.getDTMManager(); m_origObj = nodeIter; // JKESS 20020514: Longer-term solution is to force // folks to request length through an accessor, so we can defer this // retrieval... but that requires an API change. // m_obj = new org.apache.xpath.NodeSetDTM(nodeIter, xctxt); org.apache.xpath.NodeSetDTM nsdtm=new org.apache.xpath.NodeSetDTM(nodeIter, xctxt); m_last=nsdtm.getLength(); setObject(nsdtm); }
public XNodeSetForDOM(NodeList nodeList, XPathContext xctxt) { m_dtmMgr = xctxt.getDTMManager(); m_origObj = nodeList; // JKESS 20020514: Longer-term solution is to force // folks to request length through an accessor, so we can defer this // retrieval... but that requires an API change. // m_obj=new org.apache.xpath.NodeSetDTM(nodeList, xctxt); org.apache.xpath.NodeSetDTM nsdtm=new org.apache.xpath.NodeSetDTM(nodeList, xctxt); m_last=nsdtm.getLength(); setObject(nsdtm); }
public XNodeSetForDOM(NodeList nodeList, XPathContext xctxt) { m_dtmMgr = xctxt.getDTMManager(); m_origObj = nodeList; // JKESS 20020514: Longer-term solution is to force // folks to request length through an accessor, so we can defer this // retrieval... but that requires an API change. // m_obj=new org.apache.xpath.NodeSetDTM(nodeList, xctxt); org.apache.xpath.NodeSetDTM nsdtm=new org.apache.xpath.NodeSetDTM(nodeList, xctxt); m_last=nsdtm.getLength(); setObject(nsdtm); }
/** * Construct a XNodeSet object. * * @param val Value of the XNodeSet object */ public XNodeSet(XNodeSet val) { super(); setIter(val.m_iter); m_dtmMgr = val.m_dtmMgr; m_last = val.m_last; if(!val.hasCache()) val.setShouldCacheNodes(true); setObject(val.m_obj); }
/** * Construct a XNodeSet object. * * @param val Value of the XNodeSet object */ public XNodeSet(XNodeSet val) { super(); setIter(val.m_iter); m_dtmMgr = val.m_dtmMgr; m_last = val.m_last; if(!val.hasCache()) val.setShouldCacheNodes(true); setObject(val.m_obj); }
/** * Cast result object to a mutableNodeset. * * @return The nodeset as a mutableNodeset */ public NodeSetDTM mutableNodeset() { NodeSetDTM mnl; if(m_obj instanceof NodeSetDTM) { mnl = (NodeSetDTM) m_obj; } else { mnl = new NodeSetDTM(iter()); setObject(mnl); setCurrentPos(0); } return mnl; }