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