/** * Have the object release it's resources. * Call only when the variable or argument is going out of scope. */ public void detach() { if(null != m_val) { m_val.allowDetachToRelease(true); m_val.detach(); } }
/** * Have the object release it's resources. * Call only when the variable or argument is going out of scope. */ public void detach() { if(null != m_val) { m_val.allowDetachToRelease(true); m_val.detach(); } }
/** * Forces the object to release it's resources. This is more harsh than * detach(). */ public void destruct() { if (null != m_obj) { allowDetachToRelease(true); detach(); setObject(null); } }
/** * Forces the object to release it's resources. This is more harsh than * detach(). */ public void destruct() { if (null != m_obj) { allowDetachToRelease(true); detach(); setObject(null); } }
/** * Calling this with a value of false will cause the nodeset * to be cached. * @see DTMIterator#allowDetachToRelease(boolean) */ public void allowDetachToRelease(boolean allowRelease) { if((false == allowRelease) && !hasCache()) { setShouldCacheNodes(true); } if(null != m_iter) m_iter.allowDetachToRelease(allowRelease); super.allowDetachToRelease(allowRelease); }
/** * For support of literal objects in xpaths. * * @param xctxt The XPath execution context. * * @return This object. * * @throws javax.xml.transform.TransformerException */ public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException { Expression expr = ((ElemVariable)m_obj).getSelect().getExpression(); XObject xobj = expr.execute(xctxt); xobj.allowDetachToRelease(false); return xobj; }
/** * Calling this with a value of false will cause the nodeset * to be cached. * @see DTMIterator#allowDetachToRelease(boolean) */ public void allowDetachToRelease(boolean allowRelease) { if((false == allowRelease) && !hasCache()) { setShouldCacheNodes(true); } if(null != m_iter) m_iter.allowDetachToRelease(allowRelease); super.allowDetachToRelease(allowRelease); }
/** * For support of literal objects in xpaths. * * @param xctxt The XPath execution context. * * @return This object. * * @throws javax.xml.transform.TransformerException */ public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException { Expression expr = ((ElemVariable)m_obj).getSelect().getExpression(); XObject xobj = expr.execute(xctxt); xobj.allowDetachToRelease(false); return xobj; }
/** * For support of literal objects in xpaths. * * @param xctxt The XPath execution context. * * @return the result of executing the select expression * * @throws javax.xml.transform.TransformerException */ public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException { XObject m_selected; m_selected = ((Expression)m_obj).execute(xctxt); m_selected.allowDetachToRelease(m_allowRelease); if (m_selected.getType() == CLASS_STRING) return m_selected; else return new XString(m_selected.str()); }
/** * For support of literal objects in xpaths. * * @param xctxt The XPath execution context. * * @return the result of executing the select expression * * @throws javax.xml.transform.TransformerException */ public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException { XObject m_selected; m_selected = ((Expression)m_obj).execute(xctxt); m_selected.allowDetachToRelease(m_allowRelease); if (m_selected.getType() == CLASS_STRING) return m_selected; else return new XString(m_selected.str()); }
xobj.allowDetachToRelease(false); argVec.addElement(xobj);
xobj.allowDetachToRelease(false); argVec.addElement(xobj);
var.allowDetachToRelease(false);
var.allowDetachToRelease(false);
var.allowDetachToRelease(false);
var.allowDetachToRelease(false);
/** * Have the object release it's resources. * Call only when the variable or argument is going out of scope. */ public void detach() { if(null != m_val) { m_val.allowDetachToRelease(true); m_val.detach(); } }
/** * Have the object release it's resources. * Call only when the variable or argument is going out of scope. */ public void detach() { if(null != m_val) { m_val.allowDetachToRelease(true); m_val.detach(); } }
/** * Have the object release it's resources. * Call only when the variable or argument is going out of scope. */ public void detach() { if(null != m_val) { m_val.allowDetachToRelease(true); m_val.detach(); } }
/** * Have the object release it's resources. * Call only when the variable or argument is going out of scope. */ public void detach() { if(null != m_val) { m_val.allowDetachToRelease(true); m_val.detach(); } }