Package org.alfresco.repo.search
Class NodeServiceXPath
- java.lang.Object
-
- org.jaxen.BaseXPath
-
- org.alfresco.repo.search.NodeServiceXPath
-
- All Implemented Interfaces:
java.io.Serializable,org.jaxen.XPath
public class NodeServiceXPath extends org.jaxen.BaseXPathRepresents an xpath statement that resolves against aNodeService- Author:
- Andy Hind
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNodeServiceXPath.FirstFunctionstatic classNodeServiceXPath.JCRPatternMatchstatic classNodeServiceXPath.XPathFunctionContext
-
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.FunctionContextcreateFunctionContext()java.util.ListselectNodes(java.lang.Object arg0)Jaxen has some magic with its IdentitySet, which means that we can get different results depending on whether we cacheChildAssociationRefinstances 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
-
-
-
-
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 statementdocumentNavigator- the navigator that will allow the xpath to be resolvedparamDefs- 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.JaxenExceptionJaxen has some magic with its IdentitySet, which means that we can get different results depending on whether we cacheChildAssociationRefinstances or not.So, duplicates are eliminated here before the results are returned.
- Specified by:
selectNodesin interfaceorg.jaxen.XPath- Overrides:
selectNodesin classorg.jaxen.BaseXPath- Throws:
org.jaxen.JaxenException
-
createFunctionContext
protected org.jaxen.FunctionContext createFunctionContext()
- Overrides:
createFunctionContextin classorg.jaxen.BaseXPath
-
-