Class NodeServiceXPath

  • All Implemented Interfaces:
    java.io.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 Summary

      Constructors 
      Constructor Description
      NodeServiceXPath​(java.lang.String xpath, DocumentNavigator documentNavigator, org.alfresco.service.cmr.search.QueryParameterDefinition[] paramDefs)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.jaxen.FunctionContext createFunctionContext()  
      java.util.List selectNodes​(java.lang.Object arg0)
      Jaxen has some magic with its IdentitySet, which means that we can get different results depending on whether we cache ChildAssociationRef instances or not.
      • Methods inherited from class org.jaxen.BaseXPath

        addNamespace, booleanValueOf, createNamespaceContext, createVariableContext, debug, evaluate, getContext, getContextSupport, getFunctionContext, getNamespaceContext, getNavigator, getRootExpr, getVariableContext, numberValueOf, selectNodesForContext, selectSingleNode, selectSingleNodeForContext, setFunctionContext, setNamespaceContext, setVariableContext, stringValueOf, toString, valueOf
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • NodeServiceXPath

        public NodeServiceXPath​(java.lang.String xpath,
                                DocumentNavigator documentNavigator,
                                org.alfresco.service.cmr.search.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 java.util.List selectNodes​(java.lang.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