1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
21 module com
{ module sun
{ module star
{ module xml
{ module xpath
{
24 interface XXPathAPI
: com
::sun
::star
::uno
::XInterface
35 void registerExtension
( [in] string serviceName
);
36 void registerExtensionInstance
(
37 [in] com
::sun
::star
::xml
::xpath
::XXPathExtension aExtension
);
39 /** Evaluate XPath Expression.
42 the context node (expression is relative to this node)
47 @throws XPathException
48 if the expression is malformed, or evaluation fails
51 an object representing the result of the XPath evaluation
56 [in] com
::sun
::star
::xml
::dom
::XNode contextNode
,
58 raises
( com
::sun
::star
::xml
::xpath
::XPathException
);
60 /** Evaluate XPath Expression.
63 the context node (expression is relative to this node)
69 all namespaces declared on this node will be registered
71 @throws XPathException
72 if the expression is malformed, or evaluation fails
75 an object representing the result of the XPath evaluation
80 [in] com
::sun
::star
::xml
::dom
::XNode contextNode
,
82 [in] com
::sun
::star
::xml
::dom
::XNode namespaceNode
)
83 raises
( com
::sun
::star
::xml
::xpath
::XPathException
);
85 /** Evaluate an XPath expression to select a list of nodes.
88 the context node (expression is relative to this node)
93 @throws XPathException
94 if the expression is malformed, or evaluation fails
97 result of the XPath evaluation: a list of nodes
101 com
::sun
::star
::xml
::dom
::XNodeList selectNodeList
(
102 [in] com
::sun
::star
::xml
::dom
::XNode contextNode
,
104 raises
( com
::sun
::star
::xml
::xpath
::XPathException
);
106 /** Evaluate an XPath expression to select a list of nodes.
109 the context node (expression is relative to this node)
115 all namespaces declared on this node will be registered
117 @throws XPathException
118 if the expression is malformed, or evaluation fails
121 result of the XPath evaluation: a list of nodes
125 com
::sun
::star
::xml
::dom
::XNodeList selectNodeListNS
(
126 [in] com
::sun
::star
::xml
::dom
::XNode contextNode
,
128 [in] com
::sun
::star
::xml
::dom
::XNode namespaceNode
)
129 raises
( com
::sun
::star
::xml
::xpath
::XPathException
);
131 /** Evaluate an XPath expression to select a single node.
134 the context node (expression is relative to this node)
139 @throws XPathException
140 if the expression is malformed, or evaluation fails
143 result of the XPath evaluation: a single node
145 com
::sun
::star
::xml
::dom
::XNode selectSingleNode
(
146 [in] com
::sun
::star
::xml
::dom
::XNode contextNode
,
148 raises
( com
::sun
::star
::xml
::xpath
::XPathException
);
150 /** Evaluate an XPath expression to select a single node.
153 the context node (expression is relative to this node)
159 all namespaces declared on this node will be registered
161 @throws XPathException
162 if the expression is malformed, or evaluation fails
165 result of the XPath evaluation: a single node
167 com
::sun
::star
::xml
::dom
::XNode selectSingleNodeNS
(
168 [in] com
::sun
::star
::xml
::dom
::XNode contextNode
,
170 [in] com
::sun
::star
::xml
::dom
::XNode namespaceNode
)
171 raises
( com
::sun
::star
::xml
::xpath
::XPathException
);
177 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */