case class PathFunction(node: Node, function: XPathFunctions.XPathFunction, attributes: List[String] = Nil, attributeValues: Map[String, String] = Map(), exactMatch: Boolean = false, textMessage: Option[String] = None, textMatcher: Matcher[String] = AlwaysMatcher[String]()) extends (Seq[Node]) ⇒ Seq[Node] with XPathFunctions with Product with Serializable
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
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- PathFunction
- Serializable
- Serializable
- Product
- Equals
- XPathFunctions
- Function1
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new PathFunction(node: Node, function: XPathFunctions.XPathFunction, attributes: List[String] = Nil, attributeValues: Map[String, String] = Map(), exactMatch: Boolean = false, textMessage: Option[String] = None, textMatcher: Matcher[String] = AlwaysMatcher[String]())
Type Members
-
type
XPathFunction = (Node, String) ⇒ NodeSeq
- Definition Classes
- XPathFunctions
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
andThen[A](g: (Seq[Node]) ⇒ A): (Seq[Node]) ⇒ A
- Definition Classes
- Function1
- Annotations
- @unspecialized()
-
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
- Definition Classes
- PathFunction → Function1
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val attributeValues: Map[String, String]
- val attributes: List[String]
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
compose[A](g: (A) ⇒ Seq[Node]): (A) ⇒ Seq[Node]
- Definition Classes
- Function1
- Annotations
- @unspecialized()
-
def
deepNodeSearch(node: Node, label: String): NodeSeq
- returns
the \\ XPath function
- Definition Classes
- XPathFunctions
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val exactMatch: Boolean
- def exactly: PathFunction
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
firstNodeSearch(node: Node, label: String): NodeSeq
- returns
the \ XPath function
- Definition Classes
- XPathFunctions
- val function: XPathFunctions.XPathFunction
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val node: Node
-
def
nodeLabel: String
- returns
"subnode" or "node" depending on the type of search a direct child search or a general search
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
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
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
textIs(t: String): PathFunction
add a matcher for the node text
- val textMatcher: Matcher[String]
-
def
textMatches(regexp: String): PathFunction
add a matcher for the node text with a regular exp
- val textMessage: Option[String]
-
def
toString(): String
- Definition Classes
- Function1 → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )