org.apache.servicemix.client
Class XPathHelper

java.lang.Object
  extended by org.apache.servicemix.client.XPathHelper

public class XPathHelper
extends Object

A helper class for working with XPath and Message instances.

Version:
$Revision: $

Constructor Summary
XPathHelper()
           
XPathHelper(javax.jbi.messaging.NormalizedMessage message)
           
XPathHelper(javax.jbi.messaging.NormalizedMessage message, Map namespaces)
           
XPathHelper(javax.jbi.messaging.NormalizedMessage message, NamespaceContext namespaces)
           
XPathHelper(Source content)
           
 
Method Summary
 String evaluate(String expression)
           
 Object evaluate(String expression, QName arg2)
           
 Source getContent()
           
protected  Object getItem()
           
 NamespaceContext getNamespaceContext()
           
 XPath getXPath()
           
 XPathFactory getXPathFactory()
           
 XPathFunctionResolver getXPathFunctionResolver()
           
 XPathVariableResolver getXPathVariableResolver()
           
 void reset()
           
 void setContent(Source content)
           
 void setMessage(javax.jbi.messaging.NormalizedMessage message)
           
 void setNamespaceContext(NamespaceContext context)
           
 void setNamespaces(Map namespaces)
          Sets the namespace context to the given map where the keys are namespace prefixes and the values are the URIs
 void setXPathFactory(XPathFactory factory)
           
 void setXPathFunctionResolver(XPathFunctionResolver resolver)
           
 void setXPathVariableResolver(XPathVariableResolver resolver)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPathHelper

public XPathHelper()

XPathHelper

public XPathHelper(javax.jbi.messaging.NormalizedMessage message)

XPathHelper

public XPathHelper(Source content)

XPathHelper

public XPathHelper(javax.jbi.messaging.NormalizedMessage message,
                   Map namespaces)

XPathHelper

public XPathHelper(javax.jbi.messaging.NormalizedMessage message,
                   NamespaceContext namespaces)
Method Detail

evaluate

public Object evaluate(String expression,
                       QName arg2)
                throws XPathExpressionException
Throws:
XPathExpressionException

evaluate

public String evaluate(String expression)
                throws XPathExpressionException
Throws:
XPathExpressionException

reset

public void reset()

setMessage

public void setMessage(javax.jbi.messaging.NormalizedMessage message)

setContent

public void setContent(Source content)

getNamespaceContext

public final NamespaceContext getNamespaceContext()

getXPathFunctionResolver

public XPathFunctionResolver getXPathFunctionResolver()

getXPathVariableResolver

public XPathVariableResolver getXPathVariableResolver()

setNamespaceContext

public final void setNamespaceContext(NamespaceContext context)

setXPathFunctionResolver

public void setXPathFunctionResolver(XPathFunctionResolver resolver)

setXPathVariableResolver

public void setXPathVariableResolver(XPathVariableResolver resolver)

getXPathFactory

public XPathFactory getXPathFactory()

setXPathFactory

public void setXPathFactory(XPathFactory factory)

getContent

public Source getContent()

getXPath

public final XPath getXPath()

setNamespaces

public final void setNamespaces(Map namespaces)
Sets the namespace context to the given map where the keys are namespace prefixes and the values are the URIs


getItem

protected Object getItem()


Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.