1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XXPathAPI.idl,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef __com_sun_star_xml_XPath_XXPathAPI_idl__
32 #define __com_sun_star_xml_XPath_XXPathAPI_idl__
34 #ifndef __com_sun_star_uno_XInterface_idl__
35 #include
<com
/sun
/star
/uno
/XInterface.idl
>
37 #ifndef __com_sun_star_xml_dom_XNode_idl__
38 #include
<com
/sun
/star
/xml
/dom
/XNode.idl
>
40 #ifndef __com_sun_star_xml_dom_XNodeList_idl__
41 #include
<com
/sun
/star
/xml
/dom
/XNodeList.idl
>
43 #ifndef __com_sun_star_xml_xpath_XXPathObject_idl__
44 #include
<com
/sun
/star
/xml
/xpath
/XXPathObject.idl
>
46 #ifndef __com_sun_star_xml_xpath_XXPathExtension_idl__
47 #include
<com
/sun
/star
/xml
/xpath
/XXPathExtension.idl
>
49 #ifndef __com_sun_star_xml_XPath_XPathException_idl__
50 #include
<com
/sun
/star
/xml
/xpath
/XPathException.idl
>
54 module com
{ module sun
{ module star
{ module xml
{ module xpath
{
57 interface XXPathAPI
: com
::sun
::star
::uno
::XInterface
68 void registerExtension
( [in] string serviceName
);
69 void registerExtensionInstance
(
70 [in] com
::sun
::star
::xml
::xpath
::XXPathExtension aExtension
);
72 /** Eval XPath Expression.
75 the context node (expression is relative to this node)
80 @throws XPathException
81 if the expression is malformed, or evaluation fails
84 an object representing the result of the XPath evaluation
89 [in] com
::sun
::star
::xml
::dom
::XNode contextNode
,
91 raises
( com
::sun
::star
::xml
::xpath
::XPathException
);
93 /** Eval XPath Expression.
96 the context node (expression is relative to this node)
102 all namespaces declared on this node will be registered
104 @throws XPathException
105 if the expression is malformed, or evaluation fails
108 an object representing the result of the XPath evaluation
113 [in] com
::sun
::star
::xml
::dom
::XNode contextNode
,
115 [in] com
::sun
::star
::xml
::dom
::XNode namespaceNode
)
116 raises
( com
::sun
::star
::xml
::xpath
::XPathException
);
118 /** Evaluate an XPath expression to select a list of nodes.
121 the context node (expression is relative to this node)
126 @throws XPathException
127 if the expression is malformed, or evaluation fails
130 result of the XPath evaluation: a list of nodes
134 com
::sun
::star
::xml
::dom
::XNodeList selectNodeList
(
135 [in] com
::sun
::star
::xml
::dom
::XNode contextNode
,
137 raises
( com
::sun
::star
::xml
::xpath
::XPathException
);
139 /** Evaluate an XPath expression to select a list of nodes.
142 the context node (expression is relative to this node)
148 all namespaces declared on this node will be registered
150 @throws XPathException
151 if the expression is malformed, or evaluation fails
154 result of the XPath evaluation: a list of nodes
158 com
::sun
::star
::xml
::dom
::XNodeList selectNodeListNS
(
159 [in] com
::sun
::star
::xml
::dom
::XNode contextNode
,
161 [in] com
::sun
::star
::xml
::dom
::XNode namespaceNode
)
162 raises
( com
::sun
::star
::xml
::xpath
::XPathException
);
164 /** Evaluate an XPath expression to select a single node.
167 the context node (expression is relative to this node)
172 @throws XPathException
173 if the expression is malformed, or evaluation fails
176 result of the XPath evaluation: a single node
178 com
::sun
::star
::xml
::dom
::XNode selectSingleNode
(
179 [in] com
::sun
::star
::xml
::dom
::XNode contextNode
,
181 raises
( com
::sun
::star
::xml
::xpath
::XPathException
);
183 /** Evaluate an XPath expression to select a single node.
186 the context node (expression is relative to this node)
192 all namespaces declared on this node will be registered
194 @throws XPathException
195 if the expression is malformed, or evaluation fails
198 result of the XPath evaluation: a single node
200 com
::sun
::star
::xml
::dom
::XNode selectSingleNodeNS
(
201 [in] com
::sun
::star
::xml
::dom
::XNode contextNode
,
203 [in] com
::sun
::star
::xml
::dom
::XNode namespaceNode
)
204 raises
( com
::sun
::star
::xml
::xpath
::XPathException
);