Source for org.w3c.dom.ranges.DocumentRange

   1: /*
   2:  * Copyright (c) 2000 World Wide Web Consortium,
   3:  * (Massachusetts Institute of Technology, Institut National de
   4:  * Recherche en Informatique et en Automatique, Keio University). All
   5:  * Rights Reserved. This program is distributed under the W3C's Software
   6:  * Intellectual Property License. This program is distributed in the
   7:  * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
   8:  * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
   9:  * PURPOSE.
  10:  * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
  11:  */
  12: 
  13: package org.w3c.dom.ranges;
  14: 
  15: /**
  16:  * <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>.
  17:  * @since DOM Level 2
  18:  */
  19: public interface DocumentRange {
  20:     /**
  21:      * This interface can be obtained from the object implementing the 
  22:      * <code>Document</code> interface using binding-specific casting 
  23:      * methods.
  24:      * @return The initial state of the Range returned from this method is 
  25:      *   such that both of its boundary-points are positioned at the 
  26:      *   beginning of the corresponding Document, before any content. The 
  27:      *   Range returned can only be used to select content associated with 
  28:      *   this Document, or with DocumentFragments and Attrs for which this 
  29:      *   Document is the <code>ownerDocument</code>.
  30:      */
  31:     public Range createRange();
  32: 
  33: }