org.specs.matcher.PathFunction

class PathFunction

class PathFunction(val node : Node, val attributes : List[String], val attributeValues : Map[String, String], val function : Function2)

 extends (Iterable[Node]) => Iterable[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


Source: XmlMatchers.scala(218)

 Constructors

def this(n : Node, attributeValues : Map[String, String], function : Function2)
[details]
return
- s a PathFunction looking for a Node and its attributes and attributes values
def this(n : Node, function : Function2)
[details]
return
- s a PathFunction looking for a Node
def this(n : Node, attributes : List[String], function : Function2)
[details]
return
- s a PathFunction looking for a Node and its attributes
def this(node : Node, attributes : List[String], attributeValues : Map[String, String], function : Function2)

 Fields

nodeLabel def nodeLabel
[details]
return
- s "subnode" or "node" depending on the type of search a direct child search or a general search
String
searchedAttributes def searchedAttributes
[details]
return
- s a string representation of attributes or attributeValues (one of them being empty by construction)
String

 Methods

!= final def !=(arg0 : Any) Boolean Any
!= final def !=(arg0 : Object) Boolean AnyRef
== final def ==(arg0 : Object) Boolean AnyRef
== final def ==(arg0 : Any) Boolean Any
andThen def andThen[A](arg0 : (R) => A) (T1) => A Function1
apply def apply(nodes : Iterable[Node])
[details]
return
- s the node if it is found and matching the searched attributes and/or attribute values when specified
Iterable[Node]
asInstanceOf final def asInstanceOf[T0] T0 Any
clone protected def clone Object AnyRef
compose def compose[A](arg0 : (A) => T1) (A) => R Function1
eq final def eq(arg0 : Object) Boolean AnyRef
equals def equals(arg0 : Any) Boolean AnyRef
finalize protected def finalize Unit AnyRef
getClass final def getClass Class[Object] AnyRef
hashCode def hashCode Int AnyRef
isInstanceOf final def isInstanceOf[T0] Boolean Any
matchNode def matchNode(found : Node)
[details]
return
- s true if the node found with a label also satisfies the attributes and/or values requirement
Boolean
ne final def ne(arg0 : Object) Boolean AnyRef
nodeSearch def nodeSearch(node : Node, label : String)
[details]
return
- s the \\ XPath function
NodeSeq XPathFunctions
notify final def notify Unit AnyRef
notifyAll final def notifyAll Unit AnyRef
subNodeSearch def subNodeSearch(node : Node, label : String)
[details]
return
- s the \ XPath function
NodeSeq XPathFunctions
synchronized final def synchronized[T0](arg0 : T0) T0 AnyRef
toString override def toString String Function1
wait final def wait Unit AnyRef
wait final def wait(arg0 : Long) Unit AnyRef
wait final def wait(arg0 : Long, arg1 : Int) Unit AnyRef
Copyright (c) 2007-2009. All Rights Reserved.