predicates

object predicates extends XmlPredicateInstances
trait XmlPredicateInstances
class Object
trait Matchable
class Any

Value members

Inherited methods

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

Filter nodes by attributes.

Filter nodes by attributes.

Value Params
values

N advxml.core.data.KeyValuePredicate to filter attributes

Returns

Predicate for nodes of type Node

Inherited from
XmlPredicateInstances

Filter nodes by attributes.

Filter nodes by attributes.

Value Params
value

advxml.core.data.KeyValuePredicate to filter attributes

values

N advxml.core.data.KeyValuePredicate to filter attributes

Returns

Predicate for nodes of type Node

Inherited from
XmlPredicateInstances
def hasAttrs(keys: NonEmptyList[Key]): XmlPredicate

Check if node has all attributes.

Check if node has all attributes.

Value Params
keys

advxml.core.data.Key list to check

Returns

Predicate for nodes of type Node

Inherited from
XmlPredicateInstances
def hasAttrs(key: Key, keys: Key*): XmlPredicate

Check if node has all attributes.

Check if node has all attributes.

Value Params
key

advxml.core.data.Key to check

keys

N advxml.core.data.Key list to check

Returns

Predicate for nodes of type Node

Inherited from
XmlPredicateInstances
def hasImmediateChild(label: String, predicate: XmlPredicate): XmlPredicate

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

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

Value Params
label

Name of the child to find

predicate

Predicate to check child

Returns

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

Inherited from
XmlPredicateInstances
def label(p: String => Boolean): XmlPredicate

Filter nodes by label property.

Filter nodes by label property.

Value Params
p

Label predicate

Returns

Predicate for nodes of type Node

Inherited from
XmlPredicateInstances
def strictEqualsTo(ns: NodeSeq): XmlPredicate

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

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

Value Params
ns

to compare

Returns

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

Inherited from
XmlPredicateInstances
def text(p: String => Boolean): XmlPredicate

Filter nodes by text property.

Filter nodes by text property.

Value Params
p

Text predicate

Inherited from
XmlPredicateInstances