|
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 |
|
17 |
|
18 /** |
|
19 @file |
|
20 @publishedAll |
|
21 @released |
|
22 */ |
|
23 #ifndef XMLENGNAMESPACERESOLVER_H |
|
24 #define XMLENGNAMESPACERESOLVER_H |
|
25 |
|
26 /** |
|
27 Provides an interface to query the namespace context of a DOM object. |
|
28 @see TXmlEngXPathEvaluator |
|
29 @see RXmlEngXPathExpression |
|
30 */ |
|
31 class MXmlEngNamespaceResolver |
|
32 { |
|
33 public: |
|
34 /** |
|
35 Searches for the prefix that is bound to the given aNamespaceUri and |
|
36 applicable in the scope of this object. |
|
37 |
|
38 @param aNamespaceUri Namespace URI to search for |
|
39 @return The sought prefix or an empty string if not found or if aNamespaceUri is the |
|
40 default namespace |
|
41 @leave - Any system wide error code |
|
42 */ |
|
43 virtual TPtrC8 LookupPrefixL(const TDesC8& aNamespaceUri) const = 0; |
|
44 |
|
45 /** |
|
46 Searches for the namespace URI that is bound to the given prefix. |
|
47 |
|
48 @param aPrefix The namespace prefix to search for |
|
49 @return The sought URI or an empty string if the prefix is not bound |
|
50 @leave - Any system wide error code |
|
51 */ |
|
52 virtual TPtrC8 LookupNamespaceUriL(const TDesC8& aPrefix) const = 0; |
|
53 }; |
|
54 |
|
55 #endif /* XMLENGNAMESPACERESOLVER_H */ |
|
56 |