public abstract class

BaseXpathParser

extends Object
implements XmlNodeParser<T>
java.lang.Object
   ↳ org.rundeck.api.parser.BaseXpathParser<T>
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

BaseXpathParser is ...

Summary

Public Constructors
BaseXpathParser()
BaseXpathParser(String xpath)
Public Methods
abstract T parse(Node node)
final T parseXmlNode(Node node)
Parse the given XML Node
static Node selectNodeAndUnwrap(Node node, String xpath)
Select appropriate node based on xpath, will automatically look for "result" top-level element and alter xpath if necessary
static String unwrapXpath(Node node, String xpath)
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.rundeck.api.parser.XmlNodeParser

Public Constructors

public BaseXpathParser ()

public BaseXpathParser (String xpath)

Public Methods

public abstract T parse (Node node)

public final T parseXmlNode (Node node)

Parse the given XML Node

Returns
  • any object holding the converted value

public static Node selectNodeAndUnwrap (Node node, String xpath)

Select appropriate node based on xpath, will automatically look for "result" top-level element and alter xpath if necessary

public static String unwrapXpath (Node node, String xpath)

Returns
  • appropriate xpath to use based on whether node has a 'result' root element