Package org.apache.xerces.dom
Class RangeImpl
java.lang.Object
org.apache.xerces.dom.RangeImpl
- All Implemented Interfaces:
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 TypeMethodDescriptionvoidcollapse(boolean toStart) shortcompareBoundaryPoints(short how, Range sourceRange) voidvoiddetach()booleanintintvoidinsertedNodeFromDOM(Node node) This function is called from the DOM.voidinsertNode(Node newNode) voidselectNode(Node refNode) voidselectNodeContents(Node refNode) voidvoidsetEndAfter(Node refNode) voidsetEndBefore(Node refNode) voidvoidsetStartAfter(Node refNode) voidsetStartBefore(Node refNode) voidsurroundContents(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:
getStartContainerin interfaceRange
-
getStartOffset
public int getStartOffset()- Specified by:
getStartOffsetin interfaceRange
-
getEndContainer
- Specified by:
getEndContainerin interfaceRange
-
getEndOffset
public int getEndOffset()- Specified by:
getEndOffsetin interfaceRange
-
getCollapsed
public boolean getCollapsed()- Specified by:
getCollapsedin interfaceRange
-
getCommonAncestorContainer
- Specified by:
getCommonAncestorContainerin interfaceRange
-
setStart
- Specified by:
setStartin interfaceRange- Throws:
RangeExceptionDOMException
-
setEnd
- Specified by:
setEndin interfaceRange- Throws:
RangeExceptionDOMException
-
setStartBefore
- Specified by:
setStartBeforein interfaceRange- Throws:
RangeException
-
setStartAfter
- Specified by:
setStartAfterin interfaceRange- Throws:
RangeException
-
setEndBefore
- Specified by:
setEndBeforein interfaceRange- Throws:
RangeException
-
setEndAfter
- Specified by:
setEndAfterin interfaceRange- Throws:
RangeException
-
collapse
public void collapse(boolean toStart) -
selectNode
- Specified by:
selectNodein interfaceRange- Throws:
RangeException
-
selectNodeContents
- Specified by:
selectNodeContentsin interfaceRange- Throws:
RangeException
-
compareBoundaryPoints
- Specified by:
compareBoundaryPointsin interfaceRange- Throws:
DOMException
-
deleteContents
- Specified by:
deleteContentsin interfaceRange- Throws:
DOMException
-
extractContents
- Specified by:
extractContentsin interfaceRange- Throws:
DOMException
-
cloneContents
- Specified by:
cloneContentsin interfaceRange- Throws:
DOMException
-
insertNode
- Specified by:
insertNodein interfaceRange- Throws:
DOMExceptionRangeException
-
surroundContents
- Specified by:
surroundContentsin interfaceRange- Throws:
DOMExceptionRangeException
-
cloneRange
- Specified by:
cloneRangein interfaceRange
-
toString
-
detach
public void detach() -
insertedNodeFromDOM
This function is called from the DOM. This node has already been inserted into the DOM. Fix-up any offsets.
-