|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |
class CLocationHandler: public CInterface { public: CLocationHandler(); virtual ~CLocationHandler(); public: virtual void SetParent(const XLocationHandler &pParent) = 0; virtual void AddLocation( const CNodeId &nodeId, const CString &strPublicId, const CString &strSystemId, int nLineNumber, int nColumnNumber) = 0; virtual bool FindLocation( const CNodeId &nodeId, CString &strPublicId, CString &strSystemId, int &nLineNumber, int &nColumnNumber) = 0; virtual bool GetBaseUri( const CNodeId &nodeId, CString &strBaseUri) = 0; virtual void RemoveDocument(const CNodeId &nodeId) = 0; };
The abstract interface for locating stylesheet and document nodes in source XML documents.
Every location handler provides location information for a collection of nodes which belong to one or more documents. A location handler may reference another (parent) location handler. Location handlers inherit all location information from their parents.
Constructor/Destructor Summary | |
CLocationHandler
();
����������Constructs the location handler. |
|
~CLocationHandler
();
����������Destroys the location handler. |
Function Summary | |
void
|
SetParent
(const XLocationHandler &pParent);
����������Sets the parent for this location handler. |
void
|
AddLocation
(const CNodeId &nodeId, const CString &strPublicId, const CString &strSystemId, int nLineNumber, int nColumnNumber);
����������Adds location information for the single node. |
bool
|
FindLocation
(const CNodeId &nodeId, CString &strPublicId, CString &strSystemId, int &nLineNumber, int &nColumnNumber);
����������Looks up the location of the node with the given node identifier. |
bool
|
GetBaseUri
(const CNodeId &nodeId, CString &strBaseUri);
����������Looks up the base URI of the node with the given node identifier. |
void
|
RemoveDocument
(const CNodeId &nodeId);
����������Deletes the location information for all nodes which belong to the document with the given node identifier. |
Constructor/Destructor Detail |
CLocationHandler();
Constructs the location handler.
virtual ~CLocationHandler();
Destroys the location handler.
Function Detail |
virtual void SetParent(const XLocationHandler &pParent) = 0;
Sets the parent for this location handler.
All location information handled by the parent will be inherited by this location handler.
pParent
- the parent location handlervirtual void AddLocation( const CNodeId &nodeId, const CString &strPublicId, const CString &strSystemId, int nLineNumber, int nColumnNumber) = 0;
Adds location information for the single node.
nodeId
- the node identifierstrPublicId
- the public identifier of the entity
containing the nodestrSystemId
- the system identifier of the entity
containing the nodenLineNumber
- the line number corresponding to
the start of the nodenColumnNumber
- the column number corresponding to
the start of the nodevirtual bool FindLocation( const CNodeId &nodeId, CString &strPublicId, CString &strSystemId, int &nLineNumber, int &nColumnNumber) = 0;
Looks up the location of the node with the given node identifier.
nodeId
- the node identifier to look upstrPublicId
- on return, the public identifier corresponding
to the given node identifier; unspecified if the node identifier
is not foundstrSystemId
- on return, the system identifier corresponding
to the given node identifier; unspecified if the node identifier
is not foundnLineNumber
- on return, the line number corresponding
to the given node identifier; unspecified if the node identifier
is not foundnColumnNumber
- on return, the column number corresponding
to the given node identifier; unspecified if the node identifier
is not foundtrue
if the node with the given
XDM identifier is found;
false
otherwisevirtual bool GetBaseUri( const CNodeId &nodeId, CString &strBaseUri) = 0;
Looks up the base URI of the node with the given node identifier.
nodeId
- the node identifier to look upstrBaseUri
- on return, the base URI corresponding
to the given node identifier; unspecified if the node identifier
is not foundtrue
if the node with the given
XDM identifier is found;
false
otherwisevirtual void RemoveDocument(const CNodeId &nodeId) = 0;
Deletes the location information for all nodes which belong to the document with the given node identifier.
nodeId
- the node identifier of the document
|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |