/** @return the next node in the set and advance the position of the * iterator in the set. * * @throws DOMException - INVALID_STATE_ERR Raised if this method is * called after the detach method was invoked. * */ public Node nextNode() throws DOMException { if(!valid) throw new DTMDOMException(DOMException.INVALID_STATE_ERR); int handle=dtm_iter.nextNode(); if (handle==DTM.NULL) return null; return dtm_iter.getDTM(handle).getNode(handle); }
/** * * * @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 short getNodeType() { return (short) dtm.getNodeType(node); }
/** * * @param arg * * @throws DOMException * @see org.w3c.dom.CharacterData */ public final void appendData(String arg) throws DOMException { throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR); }
/** * * * @see org.w3c.dom.Node */ public final String getNodeName() { return dtm.getNodeName(node); }
/** * * * @see org.w3c.dom.Node as of DOM Level 2 */ public final String getNamespaceURI() { return dtm.getNamespaceURI(node); }
/** * * * @see org.w3c.dom.Node */ public final boolean hasChildNodes() { return (DTM.NULL != dtm.getFirstChild(node)); }
/** * Set the base ID (URI or system ID) from where relative * URLs will be resolved. * @param systemID Base URI for the source tree. */ public void setSystemId(String systemID) { m_baseSystemID = systemID; m_dtm.setDocumentBaseURI(systemID); }
/** * Creates an empty <code>DocumentFragment</code> object. * @return A new <code>DocumentFragment handle</code>. */ public DTM createDocumentFragment() { return m_dtmManager.createDocumentFragment(); } //
/** * @return The prefix for this node. * @see org.w3c.dom.Node as of DOM Level 2 */ public final String getPrefix() { return dtm.getPrefix(node); }
/** * * * @see org.w3c.dom.Attr */ public final String getValue() { return dtm.getNodeValue(node); }
/** * Simple error for asserts and the like. * * @param msg Error message to report. */ protected void error(String msg) { throw new DTMException(msg); }
/** * * @param offset * @param count * * @throws DOMException * @see org.w3c.dom.CharacterData */ public final void deleteData(int offset, int count) throws DOMException { throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR); }
/** * * * @see org.w3c.dom.Attr */ public final String getName() { return dtm.getNodeName(node); }
/** @see org.w3c.dom.Element */ public final void normalize() { throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR); }