00001 /* 00002 * Copyright (c) 2001-2006 00003 * DecisionSoft Limited. All rights reserved. 00004 * Copyright (c) 2004-2006 00005 * Progress Software Corporation. All rights reserved. 00006 * Copyright (c) 2004-2006 00007 * Oracle. All rights reserved. 00008 * 00009 * See the file LICENSE for redistribution information. 00010 * 00011 * $Id: ModuleResolver.hpp,v 1.2 2006/11/01 16:37:12 jpcs Exp $ 00012 */ 00013 00014 #ifndef _MODULERESOLVER_HPP 00015 #define _MODULERESOLVER_HPP 00016 00017 #include <xqilla/framework/XQillaExport.hpp> 00018 00019 class DynamicContext; 00020 00021 class XQILLA_API ModuleResolver { 00022 public: 00023 /* virtual destructor, does nothing */ 00024 virtual ~ModuleResolver() {}; 00025 00026 /* Fills the string vector with a list of locations tht, once assembled, build the module referenced by the given URI. 00027 If the URI is unknown, returns false, otherwise returns true. */ 00028 virtual bool resolveModuleLocation(VectorOfStrings* result, const XMLCh* nsUri, const StaticContext* context) = 0; 00029 }; 00030 #endif // _MODULERESOLVER_HPP