< prev index next >

jaxp/src/java.xml/share/classes/com/sun/org/apache/xml/internal/dtm/ref/DTMNodeProxy.java

Print this page




2099      * CDATA_SECTION_NODE, COMMENT_NODE, PROCESSING_INSTRUCTION_NODE</td>
2100      * <td valign='top' rowspan='1' colspan='1'>
2101      * <code>nodeValue</code></td>
2102      * </tr>
2103      * <tr>
2104      * <td valign='top' rowspan='1' colspan='1'>DOCUMENT_NODE, DOCUMENT_TYPE_NODE, NOTATION_NODE</td>
2105      * <td valign='top' rowspan='1' colspan='1'>
2106      * null</td>
2107      * </tr>
2108      * </table>
2109      * @exception DOMException
2110      *   NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
2111      * @exception DOMException
2112      *   DOMSTRING_SIZE_ERR: Raised when it would return more characters than
2113      *   fit in a <code>DOMString</code> variable on the implementation
2114      *   platform.
2115      * @since DOM Level 3
2116      */
2117     @Override
2118     public String getTextContent() throws DOMException {
2119         return getNodeValue();  // overriden in some subclasses
2120     }
2121 
2122      /**
2123      * Compares a node with this node with regard to their position in the
2124      * document.
2125      * @param other The node to compare against this node.
2126      * @return Returns how the given node is positioned relatively to this
2127      *   node.
2128      * @since DOM Level 3
2129      */
2130     @Override
2131     public short compareDocumentPosition(Node other) throws DOMException {
2132         return 0;
2133     }
2134 
2135      /**
2136      * The absolute base URI of this node or <code>null</code> if undefined.
2137      * This value is computed according to . However, when the
2138      * <code>Document</code> supports the feature "HTML" , the base URI is
2139      * computed using first the value of the href attribute of the HTML BASE




2099      * CDATA_SECTION_NODE, COMMENT_NODE, PROCESSING_INSTRUCTION_NODE</td>
2100      * <td valign='top' rowspan='1' colspan='1'>
2101      * <code>nodeValue</code></td>
2102      * </tr>
2103      * <tr>
2104      * <td valign='top' rowspan='1' colspan='1'>DOCUMENT_NODE, DOCUMENT_TYPE_NODE, NOTATION_NODE</td>
2105      * <td valign='top' rowspan='1' colspan='1'>
2106      * null</td>
2107      * </tr>
2108      * </table>
2109      * @exception DOMException
2110      *   NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
2111      * @exception DOMException
2112      *   DOMSTRING_SIZE_ERR: Raised when it would return more characters than
2113      *   fit in a <code>DOMString</code> variable on the implementation
2114      *   platform.
2115      * @since DOM Level 3
2116      */
2117     @Override
2118     public String getTextContent() throws DOMException {
2119         return dtm.getStringValue(node).toString();
2120     }
2121 
2122      /**
2123      * Compares a node with this node with regard to their position in the
2124      * document.
2125      * @param other The node to compare against this node.
2126      * @return Returns how the given node is positioned relatively to this
2127      *   node.
2128      * @since DOM Level 3
2129      */
2130     @Override
2131     public short compareDocumentPosition(Node other) throws DOMException {
2132         return 0;
2133     }
2134 
2135      /**
2136      * The absolute base URI of this node or <code>null</code> if undefined.
2137      * This value is computed according to . However, when the
2138      * <code>Document</code> supports the feature "HTML" , the base URI is
2139      * computed using first the value of the href attribute of the HTML BASE


< prev index next >