com.gargoylesoftware.htmlunit.javascript.host
Class NativeFunctionPrefixResolver

java.lang.Object
  extended by com.gargoylesoftware.htmlunit.javascript.host.NativeFunctionPrefixResolver
All Implemented Interfaces:
org.apache.xml.utils.PrefixResolver

public class NativeFunctionPrefixResolver
extends Object
implements org.apache.xml.utils.PrefixResolver

A special PrefixResolver for NativeFunctions.

Version:
$Revision: 8397 $
Author:
Chuck Dumont

Constructor Summary
NativeFunctionPrefixResolver(net.sourceforge.htmlunit.corejs.javascript.NativeFunction resolverFn, net.sourceforge.htmlunit.corejs.javascript.Scriptable scope)
          Constructor.
 
Method Summary
 String getBaseIdentifier()
          
 String getNamespaceForPrefix(String prefix)
          
 String getNamespaceForPrefix(String prefix, Node node)
          
 boolean handlesNullPrefixes()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NativeFunctionPrefixResolver

public NativeFunctionPrefixResolver(net.sourceforge.htmlunit.corejs.javascript.NativeFunction resolverFn,
                                    net.sourceforge.htmlunit.corejs.javascript.Scriptable scope)
Constructor.

Parameters:
resolverFn - the NativeFunction this resolver is for
scope - the scope
Method Detail

getBaseIdentifier

public String getBaseIdentifier()

Specified by:
getBaseIdentifier in interface org.apache.xml.utils.PrefixResolver

getNamespaceForPrefix

public String getNamespaceForPrefix(String prefix)

Specified by:
getNamespaceForPrefix in interface org.apache.xml.utils.PrefixResolver

getNamespaceForPrefix

public String getNamespaceForPrefix(String prefix,
                                    Node node)

Specified by:
getNamespaceForPrefix in interface org.apache.xml.utils.PrefixResolver

handlesNullPrefixes

public boolean handlesNullPrefixes()

Specified by:
handlesNullPrefixes in interface org.apache.xml.utils.PrefixResolver


Copyright © 2002–2013 Gargoyle Software Inc.. All rights reserved.