public class

RangeImpl

extends Object
implements Range
java.lang.Object
   ↳ org.apache.xerces.dom.RangeImpl

Class Overview

The RangeImpl class implements the org.w3c.dom.range.Range interface.

Please see the API documentation for the interface classes and use the interfaces in your client programs.@xerces.internal

Summary

[Expand]
Inherited Constants
From interface org.w3c.dom.ranges.Range
Public Constructors
RangeImpl(DocumentImpl document)
The constructor.
Public Methods
DocumentFragment cloneContents()
Range cloneRange()
void collapse(boolean toStart)
short compareBoundaryPoints(short how, Range sourceRange)
void deleteContents()
void detach()
DocumentFragment extractContents()
boolean getCollapsed()
Node getCommonAncestorContainer()
Node getEndContainer()
int getEndOffset()
Node getStartContainer()
int getStartOffset()
void insertNode(Node newNode)
void insertedNodeFromDOM(Node node)
This function is called from the DOM.
void selectNode(Node refNode)
void selectNodeContents(Node refNode)
void setEnd(Node refNode, int offset)
void setEndAfter(Node refNode)
void setEndBefore(Node refNode)
void setStart(Node refNode, int offset)
void setStartAfter(Node refNode)
void setStartBefore(Node refNode)
void surroundContents(Node newParent)
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.w3c.dom.ranges.Range

Public Constructors

public RangeImpl (DocumentImpl document)

The constructor. Clients must use DocumentRange.createRange(), because it registers the Range with the document, so it can be fixed-up.

Public Methods

public DocumentFragment cloneContents ()

Throws
DOMException

public Range cloneRange ()

public void collapse (boolean toStart)

public short compareBoundaryPoints (short how, Range sourceRange)

Throws
DOMException

public void deleteContents ()

Throws
DOMException

public void detach ()

public DocumentFragment extractContents ()

Throws
DOMException

public boolean getCollapsed ()

public Node getCommonAncestorContainer ()

public Node getEndContainer ()

public int getEndOffset ()

public Node getStartContainer ()

public int getStartOffset ()

public void insertNode (Node newNode)

Throws
DOMException
RangeException

public void insertedNodeFromDOM (Node node)

This function is called from the DOM. This node has already been inserted into the DOM. Fix-up any offsets.

public void selectNode (Node refNode)

Throws
RangeException

public void selectNodeContents (Node refNode)

Throws
RangeException

public void setEnd (Node refNode, int offset)

Throws
DOMException
RangeException

public void setEndAfter (Node refNode)

Throws
RangeException

public void setEndBefore (Node refNode)

Throws
RangeException

public void setStart (Node refNode, int offset)

Throws
DOMException
RangeException

public void setStartAfter (Node refNode)

Throws
RangeException

public void setStartBefore (Node refNode)

Throws
RangeException

public void surroundContents (Node newParent)

Throws
DOMException
RangeException

public String toString ()