XmlPredicate

class Object
trait Matchable
class Any

Value members

Concrete methods

Filter nodes by attributes.

Filter nodes by attributes.

Value parameters:
value

advxml.data.KeyValuePredicate to filter attributes

values

N advxml.data.KeyValuePredicate to filter attributes

Returns:

Predicate for nodes of type Node

def attrs(values: NonEmptyList[KeyValuePredicate]): XmlPredicate

Filter nodes by attributes.

Filter nodes by attributes.

Value parameters:
values

N advxml.data.KeyValuePredicate to filter attributes

Returns:

Predicate for nodes of type Node

def hasAttrs(key: Key, keys: Key*): XmlPredicate

Check if node has all attributes.

Check if node has all attributes.

Value parameters:
key

advxml.data.Key to check

keys

N advxml.data.Key list to check

Returns:

Predicate for nodes of type Node

def hasAttrs(keys: NonEmptyList[Key]): XmlPredicate

Check if node has all attributes.

Check if node has all attributes.

Value parameters:
keys

advxml.data.Key list to check

Returns:

Predicate for nodes of type Node

def hasImmediateChild(label: String, predicate: XmlPredicate): XmlPredicate

Create a advxml.data.XmlPredicate that can check if a NodeSeq contains a child with specified predicates

Create a advxml.data.XmlPredicate that can check if a NodeSeq contains a child with specified predicates

Value parameters:
label

Name of the child to find

predicate

Predicate to check child

Returns:

advxml.data.XmlPredicate that can check if a NodeSeq contains a child with specified predicates

def label(p: String => Boolean): XmlPredicate

Filter nodes by label property.

Filter nodes by label property.

Value parameters:
p

Label predicate

Returns:

Predicate for nodes of type Node

def strictEqualsTo(ns: NodeSeq): XmlPredicate

Create an advxml.data.XmlPredicate that can check if two NodeSeq are strictly equals.

Create an advxml.data.XmlPredicate that can check if two NodeSeq are strictly equals.

Value parameters:
ns

to compare

Returns:

advxml.data.XmlPredicate that can check if two NodeSeq are strictly equals.

def text(p: String => Boolean): XmlPredicate

Filter nodes by text property.

Filter nodes by text property.

Value parameters:
p

Text predicate