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.Rangevoidcollapse(boolean toStart) shortcompareBoundaryPoints(short how, org.w3c.dom.ranges.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 interfaceorg.w3c.dom.ranges.Range
-
getStartOffset
public int getStartOffset()- Specified by:
getStartOffsetin interfaceorg.w3c.dom.ranges.Range
-
getEndContainer
- Specified by:
getEndContainerin interfaceorg.w3c.dom.ranges.Range
-
getEndOffset
public int getEndOffset()- Specified by:
getEndOffsetin interfaceorg.w3c.dom.ranges.Range
-
getCollapsed
public boolean getCollapsed()- Specified by:
getCollapsedin interfaceorg.w3c.dom.ranges.Range
-
getCommonAncestorContainer
- Specified by:
getCommonAncestorContainerin interfaceorg.w3c.dom.ranges.Range
-
setStart
public void setStart(Node refNode, int offset) throws org.w3c.dom.ranges.RangeException, DOMException - Specified by:
setStartin interfaceorg.w3c.dom.ranges.Range- Throws:
org.w3c.dom.ranges.RangeExceptionDOMException
-
setEnd
- Specified by:
setEndin interfaceorg.w3c.dom.ranges.Range- Throws:
org.w3c.dom.ranges.RangeExceptionDOMException
-
setStartBefore
- Specified by:
setStartBeforein interfaceorg.w3c.dom.ranges.Range- Throws:
org.w3c.dom.ranges.RangeException
-
setStartAfter
- Specified by:
setStartAfterin interfaceorg.w3c.dom.ranges.Range- Throws:
org.w3c.dom.ranges.RangeException
-
setEndBefore
- Specified by:
setEndBeforein interfaceorg.w3c.dom.ranges.Range- Throws:
org.w3c.dom.ranges.RangeException
-
setEndAfter
- Specified by:
setEndAfterin interfaceorg.w3c.dom.ranges.Range- Throws:
org.w3c.dom.ranges.RangeException
-
collapse
public void collapse(boolean toStart) - Specified by:
collapsein interfaceorg.w3c.dom.ranges.Range
-
selectNode
- Specified by:
selectNodein interfaceorg.w3c.dom.ranges.Range- Throws:
org.w3c.dom.ranges.RangeException
-
selectNodeContents
- Specified by:
selectNodeContentsin 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:
compareBoundaryPointsin interfaceorg.w3c.dom.ranges.Range- Throws:
DOMException
-
deleteContents
- Specified by:
deleteContentsin interfaceorg.w3c.dom.ranges.Range- Throws:
DOMException
-
extractContents
- Specified by:
extractContentsin interfaceorg.w3c.dom.ranges.Range- Throws:
DOMException
-
cloneContents
- Specified by:
cloneContentsin interfaceorg.w3c.dom.ranges.Range- Throws:
DOMException
-
insertNode
- Specified by:
insertNodein interfaceorg.w3c.dom.ranges.Range- Throws:
DOMExceptionorg.w3c.dom.ranges.RangeException
-
surroundContents
- Specified by:
surroundContentsin interfaceorg.w3c.dom.ranges.Range- Throws:
DOMExceptionorg.w3c.dom.ranges.RangeException
-
cloneRange
public org.w3c.dom.ranges.Range cloneRange()- Specified by:
cloneRangein interfaceorg.w3c.dom.ranges.Range
-
toString
-
detach
public void detach()- Specified by:
detachin 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.
-