org.jaxen
Class ContextSupport

java.lang.Object
  |
  +--org.jaxen.ContextSupport
All Implemented Interfaces:
Serializable

public class ContextSupport
extends Object
implements Serializable

Supporting context information for resolving namespace prefixess, functions, and variables.

NOTE: This class is not typically used directly, but is exposed for writers of implementation-specific XPath packages.

Author:
bob mcwhirter (bob@werken.com)
See Also:
XPath for dom4j, XPath for JDOM, XPath for W3C DOM, XPath for Electric XML, Serialized Form

Constructor Summary
ContextSupport()
          Construct an empty ContextSupport.
ContextSupport(NamespaceContext namespaceContext, FunctionContext functionContext, VariableContext variableContext, Navigator navigator)
          Construct.
 
Method Summary
 Function getFunction(String namespaceURI, String prefix, String localName)
           
 FunctionContext getFunctionContext()
           
 NamespaceContext getNamespaceContext()
           
 Navigator getNavigator()
           
 VariableContext getVariableContext()
           
 Object getVariableValue(String namespaceURI, String prefix, String localName)
           
 void setFunctionContext(FunctionContext functionContext)
           
 void setNamespaceContext(NamespaceContext namespaceContext)
           
 void setVariableContext(VariableContext variableContext)
           
 String translateNamespacePrefixToUri(String prefix)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextSupport

public ContextSupport()
Construct an empty ContextSupport.

ContextSupport

public ContextSupport(NamespaceContext namespaceContext,
                      FunctionContext functionContext,
                      VariableContext variableContext,
                      Navigator navigator)
Construct.
Parameters:
namespaceContext - The NamespaceContext.
functionContext - The FunctionContext.
variableContext - The VariableContext.
Method Detail

setNamespaceContext

public void setNamespaceContext(NamespaceContext namespaceContext)

setFunctionContext

public void setFunctionContext(FunctionContext functionContext)

setVariableContext

public void setVariableContext(VariableContext variableContext)

getNamespaceContext

public NamespaceContext getNamespaceContext()

getFunctionContext

public FunctionContext getFunctionContext()

getVariableContext

public VariableContext getVariableContext()

getNavigator

public Navigator getNavigator()

translateNamespacePrefixToUri

public String translateNamespacePrefixToUri(String prefix)

getVariableValue

public Object getVariableValue(String namespaceURI,
                               String prefix,
                               String localName)
                        throws UnresolvableException

getFunction

public Function getFunction(String namespaceURI,
                            String prefix,
                            String localName)
                     throws UnresolvableException


Copyright © 2002 bob mcwhirter & James Strachan. All Rights Reserved. Hosted by

SourceForge Logo