Class

org.specs2.matcher

PathFunction

Related Doc: package matcher

Permalink

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
Serializable, Serializable, Product, Equals, XPathFunctions, (Seq[Node]) ⇒ Seq[Node], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. PathFunction
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. XPathFunctions
  7. Function1
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. 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]())

    Permalink

Type Members

  1. type XPathFunction = (Node, String) ⇒ NodeSeq

    Permalink
    Definition Classes
    XPathFunctions

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def andThen[A](g: (Seq[Node]) ⇒ A): (Seq[Node]) ⇒ A

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  5. def apply(nodes: Seq[Node]): Seq[Node]

    Permalink

    returns

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

    Definition Classes
    PathFunction → Function1
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. val attributeValues: Map[String, String]

    Permalink
  8. val attributes: List[String]

    Permalink
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def compose[A](g: (A) ⇒ Seq[Node]): (A) ⇒ Seq[Node]

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  11. def deepNodeSearch(node: Node, label: String): NodeSeq

    Permalink

    returns

    the \\ XPath function

    Definition Classes
    XPathFunctions
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. val exactMatch: Boolean

    Permalink
  14. def exactly: PathFunction

    Permalink
  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def firstNodeSearch(node: Node, label: String): NodeSeq

    Permalink

    returns

    the \ XPath function

    Definition Classes
    XPathFunctions
  17. val function: XPathFunctions.XPathFunction

    Permalink
  18. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. val node: Node

    Permalink
  22. def nodeLabel: String

    Permalink

    returns

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

  23. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. def searchedAttributes: String

    Permalink

    returns

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

  26. def searchedElements: String

    Permalink

    returns

    a string representing the searched nodes, attributes, attribute values

  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  28. def textIs(t: String): PathFunction

    Permalink

    add a matcher for the node text

  29. val textMatcher: Matcher[String]

    Permalink
  30. def textMatches(regexp: String): PathFunction

    Permalink

    add a matcher for the node text with a regular exp

  31. val textMessage: Option[String]

    Permalink
  32. def toString(): String

    Permalink
    Definition Classes
    Function1 → AnyRef → Any
  33. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from XPathFunctions

Inherited from (Seq[Node]) ⇒ Seq[Node]

Inherited from AnyRef

Inherited from Any

Ungrouped