001/*
002 * Copyright (c) 2000 World Wide Web Consortium,
003 * (Massachusetts Institute of Technology, Institut National de
004 * Recherche en Informatique et en Automatique, Keio University). All
005 * Rights Reserved. This program is distributed under the W3C's Software
006 * Intellectual Property License. This program is distributed in the
007 * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
008 * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
009 * PURPOSE.
010 * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
011 */
012
013package org.w3c.dom.ranges;
014
015/**
016 * <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>.
017 * @since DOM Level 2
018 */
019public interface DocumentRange {
020    /**
021     * This interface can be obtained from the object implementing the 
022     * <code>Document</code> interface using binding-specific casting 
023     * methods.
024     * @return The initial state of the Range returned from this method is 
025     *   such that both of its boundary-points are positioned at the 
026     *   beginning of the corresponding Document, before any content. The 
027     *   Range returned can only be used to select content associated with 
028     *   this Document, or with DocumentFragments and Attrs for which this 
029     *   Document is the <code>ownerDocument</code>.
030     */
031    public Range createRange();
032
033}