< prev index next >

jaxp/src/java.xml/share/classes/org/w3c/dom/ranges/Range.java

Print this page




  30  *
  31  * Copyright (c) 2000 World Wide Web Consortium,
  32  * (Massachusetts Institute of Technology, Institut National de
  33  * Recherche en Informatique et en Automatique, Keio University). All
  34  * Rights Reserved. This program is distributed under the W3C's Software
  35  * Intellectual Property License. This program is distributed in the
  36  * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
  37  * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  38  * PURPOSE.
  39  * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
  40  */
  41 
  42 package org.w3c.dom.ranges;
  43 
  44 import org.w3c.dom.Node;
  45 import org.w3c.dom.DOMException;
  46 import org.w3c.dom.DocumentFragment;
  47 
  48 /**
  49  * <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Traversal-Range-20001113'>Document Object Model (DOM) Level 2 Traversal and Range Specification</a>.
  50  * @since 1.9, DOM Level 2
  51  */
  52 public interface Range {
  53     /**
  54      * Node within which the Range begins
  55      * @exception DOMException
  56      *   INVALID_STATE_ERR: Raised if <code>detach()</code> has already been
  57      *   invoked on this object.
  58      */
  59     public Node getStartContainer()
  60                        throws DOMException;
  61 
  62     /**
  63      * Offset within the starting node of the Range.
  64      * @exception DOMException
  65      *   INVALID_STATE_ERR: Raised if <code>detach()</code> has already been
  66      *   invoked on this object.
  67      */
  68     public int getStartOffset()
  69                        throws DOMException;
  70 




  30  *
  31  * Copyright (c) 2000 World Wide Web Consortium,
  32  * (Massachusetts Institute of Technology, Institut National de
  33  * Recherche en Informatique et en Automatique, Keio University). All
  34  * Rights Reserved. This program is distributed under the W3C's Software
  35  * Intellectual Property License. This program is distributed in the
  36  * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
  37  * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  38  * PURPOSE.
  39  * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
  40  */
  41 
  42 package org.w3c.dom.ranges;
  43 
  44 import org.w3c.dom.Node;
  45 import org.w3c.dom.DOMException;
  46 import org.w3c.dom.DocumentFragment;
  47 
  48 /**
  49  * <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Traversal-Range-20001113'>Document Object Model (DOM) Level 2 Traversal and Range Specification</a>.
  50  * @since 9, DOM Level 2
  51  */
  52 public interface Range {
  53     /**
  54      * Node within which the Range begins
  55      * @exception DOMException
  56      *   INVALID_STATE_ERR: Raised if <code>detach()</code> has already been
  57      *   invoked on this object.
  58      */
  59     public Node getStartContainer()
  60                        throws DOMException;
  61 
  62     /**
  63      * Offset within the starting node of the Range.
  64      * @exception DOMException
  65      *   INVALID_STATE_ERR: Raised if <code>detach()</code> has already been
  66      *   invoked on this object.
  67      */
  68     public int getStartOffset()
  69                        throws DOMException;
  70 


< prev index next >