PathFunction

case class PathFunction(node: Node, function: XPathFunction, attributes: List[String], attributeValues: Map[String, String], exactMatch: Boolean, textMessage: Option[String], textMatcher: Matcher[String]) extends Seq[Node] => Seq[Node] with XPathFunctions

The PathFunction object encapsulate a search for a node and/or attributes or attributeValues with an XPath function If node has some children, then they are searched using equality

trait Serializable
trait Product
trait Equals
trait Seq[Node] => Seq[Node]
class Object
trait Matchable
class Any

Type members

Inherited types

type XPathFunction = (Node, String) => NodeSeq
Inherited from:
XPathFunctions

Value members

Concrete methods

def apply(nodes: Seq[Node]): Seq[Node]
Returns:

the node if it is found and matching the searched attributes and/or attribute values when specified

def nodeLabel: String
Returns:

"subnode" or "node" depending on the type of search a direct child search or a general search

def searchedAttributes: String
Returns:

a string representation of attributes or attributeValues (one of them being empty by construction)

def searchedElements: String
Returns:

a string representing the searched nodes, attributes, attribute values

def textIs(t: String): PathFunction

add a matcher for the node text

add a matcher for the node text

def textMatches[T](t: T)(using evidence$3: MatchingExpression[T]): PathFunction

add a matcher for the node text with a regular exp

add a matcher for the node text with a regular exp

Inherited methods

@unspecialized
def andThen[A](g: Seq[Node] => A): Seq[Node] => A
Inherited from:
Function1
@unspecialized
def compose[A](g: A => Seq[Node]): A => Seq[Node]
Inherited from:
Function1
def deepNodeSearch(node: Node, label: String): NodeSeq
Returns:

the \ XPath function

Inherited from:
XPathFunctions
def firstNodeSearch(node: Node, label: String): NodeSeq
Returns:

the \ XPath function

Inherited from:
XPathFunctions
def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product
override def toString(): String
Definition Classes
Function1 -> Any
Inherited from:
Function1