/* */ package org.jaxen;
/* */
/* */ import java.util.
HashMap;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class
SimpleFunctionContext
/* */ implements
FunctionContext
/* */ {
/* 77 */ private
HashMap functions = new
HashMap();
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public void
registerFunction(
String namespaceURI,
String localName,
Function function) {
/* 112 */ this.
functions.
put(new
QualifiedName(
namespaceURI,
localName),
function);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public
Function getFunction(
String namespaceURI,
String prefix,
String localName) throws
UnresolvableException {
/* 121 */
QualifiedName key = new
QualifiedName(
namespaceURI,
localName);
/* */
/* 123 */ if (this.
functions.
containsKey(
key)) {
/* 124 */ return (
Function)this.
functions.
get(
key);
/* */ }
/* */
/* 127 */ throw new
UnresolvableException("No Such Function " +
key.
getClarkForm());
/* */ }
/* */ }
/* Location: /Users/tommy/.m2/repository/jaxen/jaxen/1.1.1/jaxen-1.1.1.jar!/org/jaxen/SimpleFunctionContext.class
* Java compiler version: 2 (46.0)
* JD-Core Version: 1.1.3
*/