Trait/Object

org.specs2.html

Htmlx

Related Docs: object Htmlx | package html

Permalink

trait Htmlx extends AnyRef

This trait provide additional methods on a NodeSeq or a Node representing an html document

Self Type
Htmlx
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Htmlx
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. implicit class HRef extends AnyRef

    Permalink
  2. case class Header(level: Int = 1, node: Node = new Atom("first level"), namer: UniqueNames = uniqueNamer) extends Product with Serializable

    Permalink
  3. implicit class HtmlNodeOps extends AnyRef

    Permalink
  4. implicit class HtmlOps extends AnyRef

    Permalink
  5. implicit class HtmlSeqNodeOps extends AnyRef

    Permalink

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. implicit object HeaderShow extends Show[Header]

    Permalink
  5. def anchorName(name: String): String

    Permalink

    create a sanitized anchor name

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  11. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  12. def headers(nodes: NodeSeq): NodeSeq

    Permalink

    returns

    all the headers and all the subtoc elements of a document

  13. def headersAnchors: RewriteRule { ... /* 3 definitions in type refinement */ }

    Permalink

    This rule can be used to add anchors to header elements

  14. def headersToTree(body: NodeSeq, headers: TreeLoc[Header] = Leaf(Header()).loc): TreeLoc[Header]

    Permalink

    collect all the headers as a Tree

  15. def isHeader(e: Node): Boolean

    Permalink

    returns

    true if the element is a header

  16. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    AnyRef
  18. def nodeText(n: Node): String

    Permalink

    returns

    the text of the first child of a Node

  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  21. def rewriteRule(pf: PartialFunction[Node, Seq[Node]]): RewriteRule { ... /* 3 definitions in type refinement */ }

    Permalink

    returns

    a rewrite rule that will rewrite recursively each node based on a partial function

  22. def sanitize(s: String): String

    Permalink

    sanitize a string so that it can be used as a href

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

    Permalink
    Definition Classes
    AnyRef
  24. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  25. def updateHead(ns: NodeSeq)(f: PartialFunction[Node, Node]): NodeSeq

    Permalink

    returns

    a NodeSeq where the first Node is updated with a partial function

  26. def updateHeadAttribute(ns: NodeSeq, name: String, value: Int): NodeSeq

    Permalink

    returns

    a NodeSeq where the first Node attribute named 'named' has a new value, from an Int

  27. def updateHeadAttribute(ns: NodeSeq, name: String, value: String): NodeSeq

    Permalink

    returns

    a NodeSeq where the first Node attribute named 'named' has a new value

  28. def urls(ns: NodeSeq, filePath: FilePath = DirectoryPath.EMPTY.toFilePath): List[String]

    Permalink

    returns

    the href urls in elements

  29. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(): Unit

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

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped