org.dom4j
Interface XPathFactory

All Known Subinterfaces:
OzoneDocumentFactory
All Known Implementing Classes:
DocumentFactory, OzoneDocumentFactoryImpl

public interface XPathFactory

Author:
Maarten

Method Summary
 Pattern createPattern(java.lang.String xpathPattern)
          createPattern parses the given XPath expression to create an XSLT style Pattern instance which can then be used in an XSLT processing model.
 XPath createXPath(java.lang.String xpathExpression)
          createXPath parses an XPath expression and creates a new XPath XPath instance.
 XPath createXPath(java.lang.String xpathExpression, org.jaxen.VariableContext variableContext)
          createXPath parses an XPath expression and creates a new XPath XPath instance.
 NodeFilter createXPathFilter(java.lang.String xpathFilterExpression)
          createXPathFilter parses a NodeFilter from the given XPath filter expression.
 NodeFilter createXPathFilter(java.lang.String xpathFilterExpression, org.jaxen.VariableContext variableContext)
          createXPathFilter parses a NodeFilter from the given XPath filter expression.
 void setXPathNamespaceURIs(java.util.Map xpathNamespaceURIs)
          Sets the namespace URIs to be used by XPath expressions created by this factory or by nodes associated with this factory.
 

Method Detail

setXPathNamespaceURIs

public void setXPathNamespaceURIs(java.util.Map xpathNamespaceURIs)
Sets the namespace URIs to be used by XPath expressions created by this factory or by nodes associated with this factory. The keys are namespace prefixes and the values are namespace URIs.


createXPath

public XPath createXPath(java.lang.String xpathExpression)
                  throws InvalidXPathException

createXPath parses an XPath expression and creates a new XPath XPath instance.

Parameters:
xpathExpression - is the XPath expression to create
Returns:
a new XPath instance
Throws:
InvalidXPathException - if the XPath expression is invalid

createXPath

public XPath createXPath(java.lang.String xpathExpression,
                         org.jaxen.VariableContext variableContext)

createXPath parses an XPath expression and creates a new XPath XPath instance.

Parameters:
xpathExpression - is the XPath expression to create
variableContext - is the variable context to use when evaluating the XPath
Returns:
a new XPath instance
Throws:
InvalidXPathException - if the XPath expression is invalid

createXPathFilter

public NodeFilter createXPathFilter(java.lang.String xpathFilterExpression,
                                    org.jaxen.VariableContext variableContext)

createXPathFilter parses a NodeFilter from the given XPath filter expression. XPath filter expressions occur within XPath expressions such as self::node()[ filterExpression ]

Parameters:
xpathFilterExpression - is the XPath filter expression to create
variableContext - is the variable context to use when evaluating the XPath
Returns:
a new NodeFilter instance

createXPathFilter

public NodeFilter createXPathFilter(java.lang.String xpathFilterExpression)

createXPathFilter parses a NodeFilter from the given XPath filter expression. XPath filter expressions occur within XPath expressions such as self::node()[ filterExpression ]

Parameters:
xpathFilterExpression - is the XPath filter expression to create
Returns:
a new NodeFilter instance

createPattern

public Pattern createPattern(java.lang.String xpathPattern)

createPattern parses the given XPath expression to create an XSLT style Pattern instance which can then be used in an XSLT processing model.

Parameters:
xpathPattern - is the XPath pattern expression to create
Returns:
a new Pattern instance


Copyright © 2004 The Ozone Database Project - www.ozone-db.org. All Rights Reserved.