Class NodeServiceXPath

  • All Implemented Interfaces:
    Serializable, org.jaxen.XPath

    public class NodeServiceXPath
    extends org.jaxen.BaseXPath
    Represents an xpath statement that resolves against a NodeService
    Author:
    Andy Hind
    See Also:
    Serialized Form
    • Constructor Detail

      • NodeServiceXPath

        public NodeServiceXPath​(String xpath,
                                DocumentNavigator documentNavigator,
                                QueryParameterDefinition[] paramDefs)
                         throws org.jaxen.JaxenException
        Parameters:
        xpath - the xpath statement
        documentNavigator - the navigator that will allow the xpath to be resolved
        paramDefs - parameters to resolve variables required by xpath
        Throws:
        org.jaxen.JaxenException
    • Method Detail

      • selectNodes

        public List selectNodes​(Object arg0)
                         throws org.jaxen.JaxenException
        Jaxen has some magic with its IdentitySet, which means that we can get different results depending on whether we cache ChildAssociationRef instances or not.

        So, duplicates are eliminated here before the results are returned.

        Specified by:
        selectNodes in interface org.jaxen.XPath
        Overrides:
        selectNodes in class org.jaxen.BaseXPath
        Throws:
        org.jaxen.JaxenException
      • createFunctionContext

        protected org.jaxen.FunctionContext createFunctionContext()
        Overrides:
        createFunctionContext in class org.jaxen.BaseXPath