Package org.alfresco.repo.template
Class BasePathResultsMap
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap
org.alfresco.repo.template.BaseTemplateMap
org.alfresco.repo.template.BasePathResultsMap
- All Implemented Interfaces:
Serializable,Cloneable,Map
- Direct Known Subclasses:
NamePathResultsMap,XPathResultsMap
A special Map that executes an XPath against the parent Node as part of the get()
Map interface implementation.
- Author:
- Kevin Roast
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Field Summary
FieldsFields inherited from class org.alfresco.repo.template.BaseTemplateMap
parent, services -
Constructor Summary
ConstructorsConstructorDescriptionBasePathResultsMap(TemplateNode parent, ServiceRegistry services) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected List<TemplateNode>getChildrenByXPath(String xpath, QueryParameterDefinition[] params, boolean firstOnly) Return a list or a single Node from executing an xpath against the parent Node.Methods inherited from class org.alfresco.repo.template.BaseTemplateMap
getMethods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Field Details
-
logger
protected static org.apache.commons.logging.Log logger
-
-
Constructor Details
-
BasePathResultsMap
Constructor- Parameters:
parent- The parent TemplateNode to execute searches fromservices- The ServiceRegistry to use
-
-
Method Details
-
getChildrenByXPath
protected List<TemplateNode> getChildrenByXPath(String xpath, QueryParameterDefinition[] params, boolean firstOnly) Return a list or a single Node from executing an xpath against the parent Node.- Parameters:
xpath- XPath to executefirstOnly- True to return the first result only
-