diff options
author | Rüdiger Timm <rt@openoffice.org> | 2008-06-06 10:47:07 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2008-06-06 10:47:07 +0000 |
commit | 4c2114012ca3050cb895e7dcec8a13057288f8ba (patch) | |
tree | eb1dd6ce495368904656b347fd6ede9f9fcd3ee5 /offapi/com/sun/star/xml/xpath | |
parent | 0a833f8f40fd5eeae4d4aabe2672175c9644baf2 (diff) |
INTEGRATION: CWS xmlfix2 (1.4.326); FILE MERGED
2008/05/15 17:06:30 mst 1.4.326.2: RESYNC: (1.4-1.5); FILE MERGED
2008/03/31 14:03:46 mst 1.4.326.1: #i81678#: interface change: XXPathAPI
- offapi/com/sun/star/xml/xpath/XPathException.idl:
+ new file: new exception XPathException
- offapi/com/sun/star/xml/xpath/XXPathAPI.idl:
+ methods of XXPathAPI now throw XPathException on error conditions
+ improved documentation
- offapi/com/sun/star/xml/xpath/makefile.mk:
+ new file: XPathException.idl
Diffstat (limited to 'offapi/com/sun/star/xml/xpath')
-rw-r--r-- | offapi/com/sun/star/xml/xpath/XXPathAPI.idl | 159 |
1 files changed, 125 insertions, 34 deletions
diff --git a/offapi/com/sun/star/xml/xpath/XXPathAPI.idl b/offapi/com/sun/star/xml/xpath/XXPathAPI.idl index 3e98ba05781f..1fffd686584a 100644 --- a/offapi/com/sun/star/xml/xpath/XXPathAPI.idl +++ b/offapi/com/sun/star/xml/xpath/XXPathAPI.idl @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: XXPathAPI.idl,v $ - * $Revision: 1.5 $ + * $Revision: 1.6 $ * * This file is part of OpenOffice.org. * @@ -46,7 +46,9 @@ #ifndef __com_sun_star_xml_xpath_XXPathExtension_idl__ #include <com/sun/star/xml/xpath/XXPathExtension.idl> #endif - +#ifndef __com_sun_star_xml_XPath_XPathException_idl__ +#include <com/sun/star/xml/xpath/XPathException.idl> +#endif module com { module sun { module star { module xml { module xpath { @@ -64,53 +66,142 @@ interface XXPathAPI : com::sun::star::uno::XInterface [in] string url); void registerExtension( [in] string serviceName ); - void registerExtensionInstance( [in] com::sun::star::xml::xpath::XXPathExtension aExtension); + void registerExtensionInstance( + [in] com::sun::star::xml::xpath::XXPathExtension aExtension); - /** - Eval XPath Expression - */ + /** Eval XPath Expression. + + @param contextNode + the context node (expression is relative to this node) + + @param expr + the XPath expression + + @throws XPathException + if the expression is malformed, or evaluation fails + + @returns + an object representing the result of the XPath evaluation + + @see XXPathObject + */ XXPathObject eval( - [in] com::sun::star::xml::dom::XNode contextNode, - [in] string str); + [in] com::sun::star::xml::dom::XNode contextNode, + [in] string expr) + raises( com::sun::star::xml::xpath::XPathException ); - /** - Eval XPath Expression - */ + /** Eval XPath Expression. + + @param contextNode + the context node (expression is relative to this node) + + @param expr + the XPath expression + + @param namespaceNode + all namespaces declared on this node will be registered + + @throws XPathException + if the expression is malformed, or evaluation fails + + @returns + an object representing the result of the XPath evaluation + + @see XXPathObject + */ XXPathObject evalNS( - [in] com::sun::star::xml::dom::XNode contextNode, - [in] string str, - [in] com::sun::star::xml::dom::XNode namespaceNode); + [in] com::sun::star::xml::dom::XNode contextNode, + [in] string expr, + [in] com::sun::star::xml::dom::XNode namespaceNode) + raises( com::sun::star::xml::xpath::XPathException ); + /** Evaluate an XPath expression to select a list of nodes. - /** - Use an XPath string to select a nodelist. - */ + @param contextNode + the context node (expression is relative to this node) + + @param expr + the XPath expression + + @throws XPathException + if the expression is malformed, or evaluation fails + + @returns + result of the XPath evaluation: a list of nodes + + @see XNodeList + */ com::sun::star::xml::dom::XNodeList selectNodeList( - [in] com::sun::star::xml::dom::XNode contextNode, - [in] string str); + [in] com::sun::star::xml::dom::XNode contextNode, + [in] string expr) + raises( com::sun::star::xml::xpath::XPathException ); - /** - Use an XPath string to select a nodelist. - */ + /** Evaluate an XPath expression to select a list of nodes. + + @param contextNode + the context node (expression is relative to this node) + + @param expr + the XPath expression + + @param namespaceNode + all namespaces declared on this node will be registered + + @throws XPathException + if the expression is malformed, or evaluation fails + + @returns + result of the XPath evaluation: a list of nodes + + @see XNodeList + */ com::sun::star::xml::dom::XNodeList selectNodeListNS( - [in] com::sun::star::xml::dom::XNode contextNode, - [in] string str, - [in] com::sun::star::xml::dom::XNode namespaceNode); + [in] com::sun::star::xml::dom::XNode contextNode, + [in] string str, + [in] com::sun::star::xml::dom::XNode namespaceNode) + raises( com::sun::star::xml::xpath::XPathException ); - /** - Use an XPath string to select a single node. + /** Evaluate an XPath expression to select a single node. + + @param contextNode + the context node (expression is relative to this node) + + @param expr + the XPath expression + + @throws XPathException + if the expression is malformed, or evaluation fails + + @returns + result of the XPath evaluation: a single node */ com::sun::star::xml::dom::XNode selectSingleNode( - [in] com::sun::star::xml::dom::XNode contextNode, - [in] string str); + [in] com::sun::star::xml::dom::XNode contextNode, + [in] string expr) + raises( com::sun::star::xml::xpath::XPathException ); + + /** Evaluate an XPath expression to select a single node. + + @param contextNode + the context node (expression is relative to this node) + + @param expr + the XPath expression + + @param namespaceNode + all namespaces declared on this node will be registered + + @throws XPathException + if the expression is malformed, or evaluation fails - /** - Use an XPath string to select a single node. + @returns + result of the XPath evaluation: a single node */ com::sun::star::xml::dom::XNode selectSingleNodeNS( - [in] com::sun::star::xml::dom::XNode contextNode, - [in] string str, - [in] com::sun::star::xml::dom::XNode namespaceNode); + [in] com::sun::star::xml::dom::XNode contextNode, + [in] string str, + [in] com::sun::star::xml::dom::XNode namespaceNode) + raises( com::sun::star::xml::xpath::XPathException ); }; |