Class RangeImpl
- java.lang.Object
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.dom.RangeImpl
-
- All Implemented Interfaces:
org.w3c.dom.ranges.Range
public class RangeImpl extends Object implements 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.
- Version:
- $Id$
-
-
Constructor Summary
Constructors Constructor Description RangeImpl(DocumentImpl document)
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentFragment
cloneContents()
org.w3c.dom.ranges.Range
cloneRange()
void
collapse(boolean toStart)
short
compareBoundaryPoints(short how, org.w3c.dom.ranges.Range sourceRange)
void
deleteContents()
void
detach()
DocumentFragment
extractContents()
boolean
getCollapsed()
Node
getCommonAncestorContainer()
Node
getEndContainer()
int
getEndOffset()
Node
getStartContainer()
int
getStartOffset()
void
insertedNodeFromDOM(Node node)
This function is called from the DOM.void
insertNode(Node newNode)
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()
-
-
-
Constructor Detail
-
RangeImpl
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.
-
-
Method Detail
-
getStartContainer
public Node getStartContainer()
- Specified by:
getStartContainer
in interfaceorg.w3c.dom.ranges.Range
-
getStartOffset
public int getStartOffset()
- Specified by:
getStartOffset
in interfaceorg.w3c.dom.ranges.Range
-
getEndContainer
public Node 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
public Node 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
public void setEnd(Node refNode, int offset) throws org.w3c.dom.ranges.RangeException, DOMException
- Specified by:
setEnd
in interfaceorg.w3c.dom.ranges.Range
- Throws:
org.w3c.dom.ranges.RangeException
DOMException
-
setStartBefore
public void setStartBefore(Node refNode) throws org.w3c.dom.ranges.RangeException
- Specified by:
setStartBefore
in interfaceorg.w3c.dom.ranges.Range
- Throws:
org.w3c.dom.ranges.RangeException
-
setStartAfter
public void setStartAfter(Node refNode) throws org.w3c.dom.ranges.RangeException
- Specified by:
setStartAfter
in interfaceorg.w3c.dom.ranges.Range
- Throws:
org.w3c.dom.ranges.RangeException
-
setEndBefore
public void setEndBefore(Node refNode) throws org.w3c.dom.ranges.RangeException
- Specified by:
setEndBefore
in interfaceorg.w3c.dom.ranges.Range
- Throws:
org.w3c.dom.ranges.RangeException
-
setEndAfter
public void setEndAfter(Node refNode) throws org.w3c.dom.ranges.RangeException
- 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
public void selectNode(Node refNode) throws org.w3c.dom.ranges.RangeException
- Specified by:
selectNode
in interfaceorg.w3c.dom.ranges.Range
- Throws:
org.w3c.dom.ranges.RangeException
-
selectNodeContents
public void selectNodeContents(Node refNode) throws org.w3c.dom.ranges.RangeException
- 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
public void deleteContents() throws DOMException
- Specified by:
deleteContents
in interfaceorg.w3c.dom.ranges.Range
- Throws:
DOMException
-
extractContents
public DocumentFragment extractContents() throws DOMException
- Specified by:
extractContents
in interfaceorg.w3c.dom.ranges.Range
- Throws:
DOMException
-
cloneContents
public DocumentFragment cloneContents() throws DOMException
- Specified by:
cloneContents
in interfaceorg.w3c.dom.ranges.Range
- Throws:
DOMException
-
insertNode
public void insertNode(Node newNode) throws DOMException, org.w3c.dom.ranges.RangeException
- Specified by:
insertNode
in interfaceorg.w3c.dom.ranges.Range
- Throws:
DOMException
org.w3c.dom.ranges.RangeException
-
surroundContents
public void surroundContents(Node newParent) throws DOMException, org.w3c.dom.ranges.RangeException
- 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
public String toString()
-
detach
public void detach()
- Specified by:
detach
in interfaceorg.w3c.dom.ranges.Range
-
insertedNodeFromDOM
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.
-
-