/** * Get the current context node. * * @return the current context node. */ public org.w3c.dom.Node getContextNode() { return sourceTree.getNode(sourceNode); }
/** * * * @see org.w3c.dom.Node */ public final Node getNextSibling() { // Attr's Next is defined at DTM level, but not at DOM level. if (dtm.getNodeType(node) == Node.ATTRIBUTE_NODE) return null; int newnode = dtm.getNextSibling(node); return (newnode == DTM.NULL) ? null : dtm.getNode(newnode); }
/** * * * @see org.w3c.dom.Node */ public final Node getLastChild() { int newnode = dtm.getLastChild(node); return (newnode == DTM.NULL) ? null : dtm.getNode(newnode); }
/** * * * @see org.w3c.dom.Node */ public final Node getPreviousSibling() { int newnode = dtm.getPreviousSibling(node); return (newnode == DTM.NULL) ? null : dtm.getNode(newnode); }
/** * * * @see org.w3c.dom.Node */ public final Document getOwnerDocument() { // Note that this uses the DOM-compatable version of the call return (Document)(dtm.getNode(dtm.getOwnerDocument(node))); }
/** * * * @see org.w3c.dom.Node */ public final Node getFirstChild() { int newnode = dtm.getFirstChild(node); return (newnode == DTM.NULL) ? null : dtm.getNode(newnode); }
/** * * @param elementId * * * @see org.w3c.dom.Document as of DOM Level 2 */ public final Element getElementById(String elementId) { return (Element) dtm.getNode(dtm.getElementById(elementId)); }
/** * * * @see org.w3c.dom.Node */ public final Node getOwnerNode() { int newnode = dtm.getParent(node); return (newnode == DTM.NULL) ? null : dtm.getNode(newnode); }
/** * * * @see org.w3c.dom.Node */ public final Document getOwnerDocument() { // Note that this uses the DOM-compatable version of the call return (Document)(dtm.getNode(dtm.getOwnerDocument(node))); }
/** * * @param elementId * * * @see org.w3c.dom.Document as of DOM Level 2 */ public final Element getElementById(String elementId) { return (Element) dtm.getNode(dtm.getElementById(elementId)); }
/** * * * @see org.w3c.dom.Node */ public final Node getOwnerNode() { int newnode = dtm.getParent(node); return (newnode == DTM.NULL) ? null : dtm.getNode(newnode); }
/** @return The root node of the NodeIterator, as specified * when it was created. * */ public Node getRoot() { int handle=dtm_iter.getRoot(); return dtm_iter.getDTM(handle).getNode(handle); }
/** * * * @see org.w3c.dom.Node */ public final Node getParentNode() { if (getNodeType() == Node.ATTRIBUTE_NODE) return null; int newnode = dtm.getParent(node); return (newnode == DTM.NULL) ? null : dtm.getNode(newnode); }
/** * Get the current context node. * @return The current context node. */ public org.w3c.dom.Node getContextNode() { int context = getCurrentNode(); return getDTM(context).getNode(context); }
/** @return The root node of the NodeIterator, as specified * when it was created. * */ public Node getRoot() { int handle=dtm_iter.getRoot(); return dtm_iter.getDTM(handle).getNode(handle); }
/** * Get the DOM Node of the current XPath context, which is possibly null. * @param sourceNode the handle on the node used by a DTM. */ private Node getDOMNodeFromDTM(int sourceNode) { org.apache.xml.dtm.DTM dtm = m_transformer.getXPathContext().getDTM(sourceNode); final Node source = (dtm == null) ? null : dtm.getNode(sourceNode); return source; } }
/** * Get the current context node. * @return The current context node. */ public org.w3c.dom.Node getContextNode() { int context = getCurrentNode(); return getDTM(context).getNode(context); }
/** * @see org.apache.xalan.transformer.TransformState#getMatchedNode() */ public Node getMatchedNode() { if (m_elemPending) { DTM dtm = m_transformer.getXPathContext().getDTM(m_matchedNode); return dtm.getNode(m_matchedNode); } else { DTM dtm = m_transformer.getXPathContext().getDTM(m_transformer.getMatchedNode()); return dtm.getNode(m_transformer.getMatchedNode()); } }
/** * @see org.apache.xalan.transformer.TransformState#getCurrentNode() */ public Node getCurrentNode() { if (m_currentNode != null) { return m_currentNode; } else { DTM dtm = m_transformer.getXPathContext().getDTM(m_transformer.getCurrentNode()); return dtm.getNode(m_transformer.getCurrentNode()); } }
/** * @see org.apache.xalan.transformer.TransformState#getCurrentNode() */ public Node getCurrentNode() { if (m_currentNode != null) { return m_currentNode; } else { DTM dtm = m_transformer.getXPathContext().getDTM(m_transformer.getCurrentNode()); return dtm.getNode(m_transformer.getCurrentNode()); } }