Oracle® Database XML C++ API Reference 11g Release 1 (11.1) Part Number B28389-01 |
|
|
View PDF |
Table 2-24 summarizes the methods available through Range interface.
Table 2-24 Summary of Range Methods; Dom Package
Function | Summary |
---|---|
|
|
|
|
|
|
|
|
|
Invalidate the range. |
|
|
|
Check if the range is collapsed. |
|
Get the deepest common ancestor node. |
|
Get end container node. |
|
Get offset of the end point. |
|
Get start container node. |
|
Get offset of the start point. |
|
|
|
|
|
|
|
Set end point. |
|
|
|
|
|
Set start point. |
|
|
|
|
|
|
|
Compares boundary points.
Syntax
CompareHowCode compareBoundaryPoints( unsigned short how, Range< Node>* sourceRange) throw (DOMException);
Parameter | Description |
---|---|
how |
how to compare |
sourceRange |
range of comparison |
Returns
(CompareHowCode)
result of comparison
Makes a clone of the node, including its children.
Syntax
Node* cloneContents() throw (DOMException);
Returns
(Node*)
subtree cloned
Clones a range of nodes.
Syntax
Range< Node>* cloneRange();
Returns
(Range< Node>*)
new cloned range
Deletes contents of the node.
Syntax
void deleteContents() throw (DOMException);
Invalidates the range. It is not recommended to use this method since it leaves the object in invalid state. The preferable way is to call the destructor.
Syntax
void detach();
Extract the node.
Syntax
Node* extractContents() throw (DOMException);
Returns
(Node*)
subtree extracted
Checks if the range is collapsed.
Syntax
boolean getCollapsed() const;
Returns
(boolean)
TRUE
if the range is collapsed, FALSE
otherwise
Get the deepest common ancestor of the node.
Syntax
Node* getCommonAncestorContainer() const;
Returns
(Node*)
common ancestor node
Gets the container node.
Syntax
Node* getEndContainer() const;
Returns
(Node*)
end container node
Get offset of the end point.
Syntax
long getEndOffset() const;
Returns
(long)
offset
Get start container node.
Syntax
Node* getStartContainer() const;
Returns
(Node*)
start container node
Get offset of the start point.
Syntax
long getStartOffset() const;
Returns
(long)
offset
Inserts a node.
Syntax
void insertNode( NodeRef< Node>& newNode) throw (RangeException, DOMException);
Parameter | Description |
---|---|
newNode |
inserted node |
Selects node content by its reference.
Syntax
void selectNodeContent( NodeRef< Node>& refNode) throw (RangeException);
Parameter | Description |
---|---|
refNode |
reference node |
Selects a node.
Syntax
void selectNode( NodeRef< Node>& refNode) throw (RangeException);
Parameter | Description |
---|---|
refNode |
reference node |
Sets an end point.
Syntax
void setEnd( NodeRef< Node>& refNode, long offset) throw (RangeException, DOMException);
Parameter | Description |
---|---|
refNode |
reference node |
offset |
offset |
Sets the end pointer after a specified node.
Syntax
void setEndAfter( NodeRef< Node>& refNode) throw (RangeException);
Parameter | Description |
---|---|
refNode |
reference node |
Set the end before a specified node.
Syntax
void setEndBefore( NodeRef< Node>& refNode) throw (RangeException);
Parameter | Description |
---|---|
refNode |
reference node |
Sets start point.
Syntax
void setStart( NodeRef< Node>& refNode, long offset) throw (RangeException, DOMException);
Parameter | Description |
---|---|
refNode |
reference node |
offset |
offset |
Sets start pointer after a specified node.
Syntax
void setStartAfter( NodeRef< Node>& refNode) throw (RangeException);
Parameter | Description |
---|---|
refNode |
reference node |
Sets start pointer before a specified node.
Syntax
void setStartBefore( NodeRef< Node>& refNode) throw (RangeException);
Parameter | Description |
---|---|
refNode |
reference node |
Makes a node into a child of the specified node.
Syntax
void surroundContents( NodeRef< Node>& newParent) throw (RangeException, DOMException);
Parameter | Description |
---|---|
newParent |
parent node |
Converts an item into a string.
Syntax
oratext* toString();
Returns
(oratext*)
string representation of the range