Oracle® Database XML C++ API Reference 11g Release 2 (11.2) Part Number E10771-01 |
|
|
PDF · Mobi · ePub |
XPointer
package contains XPointer processing related types and interfaces.
This chapter contains the following sections:
Table 9-1 summarizes the datatypes of the XPointer
package.
Table 9-1 Summary of Datatypes; XPointer Package
Datatype | Description |
---|---|
Defines XPath compiler identifiers. |
|
Defines XPointer processor identifiers. |
|
Defines location types for XPointer. |
XPointer related exception codes.
typedef enum XPathCompIdType { XvmXPathCompCXml = 1 } XPathCompIdType;
Defines XPointer processor identifiers.
typedef enum XppPrIdType { XPtrPrCXml = 1} XppPrIdType;
Defines location types for XPointer.
typedef enum XppLocType { XPPLOC_TYPE_UNKNOWN = 0, XPPLOC_TYPE_NODE = 1, XPPLOC_TYPE_POINT = 2, XPPLOC_TYPE_RANGE = 3, XPPLOC_TYPE_BOOL = 4, XPPLOC_TYPE_NUM = 5, XPPLOC_TYPE_STR = 6 } XppLocType;
Table 9-2 summarizes the methods available through the Processor
interface.
Table 9-2 Summary of Processor Methods; XPointer Package
Function | Summary |
---|---|
Get processor's Id. |
|
Evaluate XPointer expression against given document. |
Get Processor Id.
virtual XppPrIdType getProcessorId() const = 0;
(XppPrIdType)
Processor's Id
Evaluates XPointer expression against given document and returns result XPointer location set object.
virtual XppLocSet< Node>* process ( InputSource* isrc_ptr, oratext* xpp_exp) throw (XppException) = 0;
Parameter | Description |
---|---|
isrc_ptr |
instance document to process |
xpp_exp |
XPointer expression |
(XppLocSet*)
XPath object
Table 9-3 summarizes the methods available through the XPPException
interface.
Table 9-3 Summary of XppException Methods; Package XPointer
Function | Summary |
---|---|
Get Oracle XML error code embedded in the exception. |
|
Get current language (encoding) of error messages. |
|
Get Oracle XML error message. |
|
Get XPointer exception code embedded in the exception. |
Virtual member function inherited from XmlException
.
virtual unsigned getCode() const = 0;
(unsigned)
numeric error code (0 on success)
Virtual member function inherited from XmlException
.
virtual oratext* getMesLang() const = 0;
(oratext*)
Current language (encoding) of error messages
Virtual member function inherited from XmlException
.
virtual oratext* getMessage() const = 0;
(oratext *)
Error message
This is a virtual member function that defines a prototype for implementation defined member functions returning XPointer processor and compiler exception codes, defined in XppExceptionCode, of the exceptional situations during execution.
virtual XppExceptionCode getXppCode() const = 0;
(XppExceptionCode)
exception code
Table 9-4 summarizes the methods available through the XppLocation
interface.
Table 9-4 Summary of XppLocation Methods; XPointer Package
Function | Summary |
---|---|
Get the location type. |
|
Get the node. |
|
Get range. |
Get the location type.
XppLocType getLocType() const;
Get the node.
Node* getNode() const;
Get range.
Range< Node>* getRange() const;
Table 9-5 summarizes the methods available through the XppLocSet
interface.
Table 9-5 Summary of XppLocSet Methods; XPointer Package
Function | Summary |
---|---|
Get item given its index. |
|
Get location set size. |
Returns a reference to the item.
XppLocation< Node>* getItem( ub4 index) const;
Parameter | Description |
---|---|
index |
index of an item |
(XppLocation*)
reference to the item
The size of the node set.
ub4 getSize() const;
(ub4)
node set size