Package org.apache.xerces.dom
Class RangeImpl
java.lang.Object
org.apache.xerces.dom.RangeImpl
- All Implemented Interfaces:
org.w3c.dom.ranges.Range
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.
INTERNAL:
- Usage of this class is not supported. It may be altered or removed at any time.
- Version:
- $Id: RangeImpl.java 515302 2007-03-06 21:07:10Z mrglavas $
-
Field Summary
Fields inherited from interface org.w3c.dom.ranges.Range
END_TO_END, END_TO_START, START_TO_END, START_TO_START
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.w3c.dom.ranges.Range
void
collapse
(boolean toStart) short
compareBoundaryPoints
(short how, org.w3c.dom.ranges.Range sourceRange) void
void
detach()
boolean
int
int
void
insertedNodeFromDOM
(Node node) This function is called from the DOM.void
insertNode
(Node newNode) void
selectNode
(Node refNode) void
selectNodeContents
(Node refNode) void
void
setEndAfter
(Node refNode) void
setEndBefore
(Node refNode) void
void
setStartAfter
(Node refNode) void
setStartBefore
(Node refNode) void
surroundContents
(Node newParent) toString()
-
Constructor Details
-
RangeImpl
The constructor. Clients must use DocumentRange.createRange(), because it registers the Range with the document, so it can be fixed-up.
-
-
Method Details
-
getStartContainer
- Specified by:
getStartContainer
in interfaceorg.w3c.dom.ranges.Range
-
getStartOffset
public int getStartOffset()- Specified by:
getStartOffset
in interfaceorg.w3c.dom.ranges.Range
-
getEndContainer
- Specified by:
getEndContainer
in interfaceorg.w3c.dom.ranges.Range
-
getEndOffset
public int getEndOffset()- Specified by:
getEndOffset
in interfaceorg.w3c.dom.ranges.Range
-
getCollapsed
public boolean getCollapsed()- Specified by:
getCollapsed
in interfaceorg.w3c.dom.ranges.Range
-
getCommonAncestorContainer
- Specified by:
getCommonAncestorContainer
in interfaceorg.w3c.dom.ranges.Range
-
setStart
public void setStart(Node refNode, int offset) throws org.w3c.dom.ranges.RangeException, DOMException - Specified by:
setStart
in interfaceorg.w3c.dom.ranges.Range
- Throws:
org.w3c.dom.ranges.RangeException
DOMException
-
setEnd
- Specified by:
setEnd
in interfaceorg.w3c.dom.ranges.Range
- Throws:
org.w3c.dom.ranges.RangeException
DOMException
-
setStartBefore
- Specified by:
setStartBefore
in interfaceorg.w3c.dom.ranges.Range
- Throws:
org.w3c.dom.ranges.RangeException
-
setStartAfter
- Specified by:
setStartAfter
in interfaceorg.w3c.dom.ranges.Range
- Throws:
org.w3c.dom.ranges.RangeException
-
setEndBefore
- Specified by:
setEndBefore
in interfaceorg.w3c.dom.ranges.Range
- Throws:
org.w3c.dom.ranges.RangeException
-
setEndAfter
- Specified by:
setEndAfter
in interfaceorg.w3c.dom.ranges.Range
- Throws:
org.w3c.dom.ranges.RangeException
-
collapse
public void collapse(boolean toStart) - Specified by:
collapse
in interfaceorg.w3c.dom.ranges.Range
-
selectNode
- Specified by:
selectNode
in interfaceorg.w3c.dom.ranges.Range
- Throws:
org.w3c.dom.ranges.RangeException
-
selectNodeContents
- Specified by:
selectNodeContents
in interfaceorg.w3c.dom.ranges.Range
- Throws:
org.w3c.dom.ranges.RangeException
-
compareBoundaryPoints
public short compareBoundaryPoints(short how, org.w3c.dom.ranges.Range sourceRange) throws DOMException - Specified by:
compareBoundaryPoints
in interfaceorg.w3c.dom.ranges.Range
- Throws:
DOMException
-
deleteContents
- Specified by:
deleteContents
in interfaceorg.w3c.dom.ranges.Range
- Throws:
DOMException
-
extractContents
- Specified by:
extractContents
in interfaceorg.w3c.dom.ranges.Range
- Throws:
DOMException
-
cloneContents
- Specified by:
cloneContents
in interfaceorg.w3c.dom.ranges.Range
- Throws:
DOMException
-
insertNode
- Specified by:
insertNode
in interfaceorg.w3c.dom.ranges.Range
- Throws:
DOMException
org.w3c.dom.ranges.RangeException
-
surroundContents
- Specified by:
surroundContents
in interfaceorg.w3c.dom.ranges.Range
- Throws:
DOMException
org.w3c.dom.ranges.RangeException
-
cloneRange
public org.w3c.dom.ranges.Range cloneRange()- Specified by:
cloneRange
in interfaceorg.w3c.dom.ranges.Range
-
toString
-
detach
public void detach()- Specified by:
detach
in interfaceorg.w3c.dom.ranges.Range
-
insertedNodeFromDOM
This function is called from the DOM. This node has already been inserted into the DOM. Fix-up any offsets.
-