Packages

case class Tag[TagName <: Singleton](tagName: String with TagName, attributes: Map[String, String] = Map.empty, children: List[Node] = List.empty) extends Node with Product with Serializable

Linear Supertypes
Serializable, Product, Equals, Node, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Tag
  2. Serializable
  3. Product
  4. Equals
  5. Node
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Tag(tagName: String with TagName, attributes: Map[String, String] = Map.empty, children: List[Node] = List.empty)

Type Members

  1. type T = Tag[TagName]
    Definition Classes
    TagNode

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def ++(nodes: List[Node]): Tag[TagName]
  4. def +:[U <: Singleton](node: Tag[U]): Tag[U]
    Definition Classes
    Node
  5. def -(node: Node): Tag[TagName]
  6. def --(node: List[Node]): Tag[TagName]
  7. def :+(node: Node): Tag[TagName]
  8. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def append(node: Node): Tag[TagName]
  10. def appendAll(nodes: List[Node]): Tag[TagName]
  11. def as[S <: Singleton with String](implicit vo: ValueOf[S]): Tag[S]
  12. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  13. def attr(attribute: String): Option[String]
  14. val attributes: Map[String, String]
  15. def byClass(class: String): Tag[_]
  16. def byClassAll(class: String): List[Tag[_]]
  17. def byClassOpt(class: String): Option[Tag[_]]
  18. def byId(id: String): Tag[_]
  19. def byIdOpt(id: String): Option[Tag[_]]
  20. def byTag[U <: Singleton](implicit ct: ValueOf[U]): Tag[U]
  21. def byTagAll[U <: Singleton](implicit vu: ValueOf[U]): List[Tag[U]]
  22. def byTagOpt[U <: Singleton](implicit vu: ValueOf[U]): Option[Tag[U]]
  23. val children: List[Node]
  24. def clearAll: Tag[TagName]
  25. def clearAttr: Tag[TagName]
  26. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  27. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. def filter(f: (Node) => Boolean): List[Node]
  29. def filterTags(f: (Tag[_]) => Boolean): List[Tag[_]]
  30. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  31. def find(f: (Node) => Boolean): Option[Node]
  32. def flatMap(f: (Node) => List[Node]): Tag[TagName]
    Definition Classes
    TagNode
  33. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  34. def hasAttr(attribute: String): Boolean
  35. def insertAt(position: Int, node: Node): Tag[TagName]
  36. def insertAt(position: Int, nodes: List[Node]): Tag[TagName]
  37. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  38. def map(f: (Node) => Node): Tag[TagName]

    Recursively map children, excluding root node

    Recursively map children, excluding root node

    Definition Classes
    TagNode
  39. def mapFirst(f: PartialFunction[Node, Node]): Tag[TagName]
    Definition Classes
    TagNode
  40. def mapRoot(f: (Tag[_]) => Tag[_]): Tag[TagName]

    Recursively map tag children, including root node

  41. final def matches[S <: Singleton](tagRef: TagRef[S]): Boolean
    Annotations
    @tailrec()
  42. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  43. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  44. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  45. def partialMap(f: PartialFunction[Node, Node]): Tag[TagName]
  46. def prepend(node: Node): Tag[TagName]
  47. def prependAll(node: List[Node]): Tag[TagName]
  48. def productElementNames: Iterator[String]
    Definition Classes
    Product
  49. def remAttr(attribute: String): Tag[TagName]
  50. def remove(node: Node): Tag[TagName]
  51. def removeAll(nodes: List[Node]): Tag[TagName]
  52. def replace(reference: Node, node: Node): Tag[TagName]
  53. def set(nodes: List[Node]): Tag[TagName]
  54. def set(node: Node): Tag[TagName]
  55. def setAttr(attribute: String, value: String): Tag[TagName]
  56. def suffixIds(suffix: String, attributes: Set[String] = Set("id")): Tag[TagName]

    Recursively adds suffix to every given attribute.

    Recursively adds suffix to every given attribute.

    suffix

    the text to add to the attribute value

    attributes

    which attributes to add the suffix to, by default this is just Set("id") for backward compatibility reasons. Use Tag.IdAttributeNames for a more comprehensive set.

  57. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  58. def tag[S <: Singleton with String](implicit vo: ValueOf[S]): Tag[S]
  59. val tagName: String with TagName
  60. def textContent: Option[String]

    Recursively traverses tree and returns content of first text node

    Recursively traverses tree and returns content of first text node

    Definition Classes
    TagNode
  61. def update(f: (NodeRenderContext) => Unit): Tag[TagName]
  62. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  63. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  64. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Node

Inherited from AnyRef

Inherited from Any

Ungrouped