org.alfresco.repo.template
Class BasePathResultsMap
java.lang.Object
java.util.AbstractMap
java.util.HashMap
org.alfresco.repo.template.BaseTemplateMap
org.alfresco.repo.template.BasePathResultsMap
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.util.Map
- Direct Known Subclasses:
- NamePathResultsMap, XPathResultsMap
public abstract class BasePathResultsMap
- extends BaseTemplateMap
A special Map that executes an XPath against the parent Node as part of the get()
Map interface implementation.
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class java.util.AbstractMap |
java.util.AbstractMap.SimpleEntry, java.util.AbstractMap.SimpleImmutableEntry |
Field Summary |
protected static org.apache.commons.logging.Log |
logger
|
Method Summary |
protected java.util.List |
getChildrenByXPath(java.lang.String xpath,
org.alfresco.service.cmr.search.QueryParameterDefinition[] params,
boolean firstOnly)
Return a list or a single Node from executing an xpath against the parent Node. |
Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
equals, hashCode |
logger
protected static org.apache.commons.logging.Log logger
BasePathResultsMap
public BasePathResultsMap(TemplateNode parent,
ServiceRegistry services)
- Constructor
- Parameters:
parent
- The parent TemplateNode to execute searches fromservices
- The ServiceRegistry to use
getChildrenByXPath
protected java.util.List getChildrenByXPath(java.lang.String xpath,
org.alfresco.service.cmr.search.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
- Returns:
- List
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.