Class BasePathResultsMap

All Implemented Interfaces:
Serializable, Cloneable, 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.
Author:
Kevin Roast
See Also:
  • Field Details

    • logger

      protected static org.apache.commons.logging.Log logger
  • Constructor Details

    • BasePathResultsMap

      public BasePathResultsMap(TemplateNode parent, ServiceRegistry services)
      Constructor
      Parameters:
      parent - The parent TemplateNode to execute searches from
      services - 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 execute
      firstOnly - True to return the first result only