1 /**********************************************
2 * Copyright (C) 2010 Lukas Laag
3 * This file is part of lib-gwt-svg.
4 *
5 * libgwtsvg is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU Lesser General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * libgwtsvg is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with libgwtsvg. If not, see http://www.gnu.org/licenses/
17 **********************************************/
18 package org.vectomatic.dom.svg.utils;
19
20 /**
21 * Interface to provide XPath prefix resolution.
22 * @author laaglu
23 */
24 public interface XPathPrefixResolver {
25 /**
26 * Returns the namespace URI which corresponds to this prefix.
27 * This method is called by the browser XPath engine when
28 * it evaluates XPath expressions which contain prefixes
29 * (like: <tt>/foo:bar/foo:boo</tt>)
30 * @param prefix
31 * The prefix to resolve
32 * @return
33 * The namespace URI which corresponds to this prefix
34 */
35 public String resolvePrefix(String prefix);
36 }