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
Ordering
- Alphabetic
- By Inheritance
Inherited
- Tag
- Serializable
- Serializable
- Product
- Equals
- Node
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- def ++(nodes: List[Node]): Tag[TagName]
-
def
+:[U <: Singleton](node: Tag[U]): Tag[U]
- Definition Classes
- Node
- def -(node: Node): Tag[TagName]
- def --(node: List[Node]): Tag[TagName]
- def :+(node: Node): Tag[TagName]
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def append(node: Node): Tag[TagName]
- def appendAll(nodes: List[Node]): Tag[TagName]
- def as[T <: Singleton with String](implicit vo: ValueOf[T]): Tag[T]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def attr(attribute: String): Option[String]
- val attributes: Map[String, String]
- def byClass(class: String): Tag[_]
- def byClassAll(class: String): List[Tag[_]]
- def byClassOpt(class: String): Option[Tag[_]]
- def byId(id: String): Tag[_]
- def byIdOpt(id: String): Option[Tag[_]]
- def byTag[U <: Singleton](implicit ct: ValueOf[U]): Tag[U]
- def byTagAll[U <: Singleton](implicit vu: ValueOf[U]): List[Tag[U]]
- def byTagOpt[U <: Singleton](implicit vu: ValueOf[U]): Option[Tag[U]]
- val children: List[Node]
- def clearAll: Tag[TagName]
- def clearAttr: Tag[TagName]
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def filter(f: (Node) ⇒ Boolean): List[Node]
- def filterTags(f: (Tag[_]) ⇒ Boolean): List[Tag[_]]
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def find(f: (Node) ⇒ Boolean): Option[Node]
- def flatMap(f: (Node) ⇒ List[Node]): Tag[TagName]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hasAttr(attribute: String): Boolean
- def insertAt(position: Int, node: Node): Tag[TagName]
- def insertAt(position: Int, nodes: List[Node]): Tag[TagName]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
map(f: (Node) ⇒ Node): Tag[TagName]
Recursively map children, excluding root node
- def mapFirst(f: PartialFunction[Node, Node]): Tag[TagName]
-
def
mapRoot(f: (Tag[_]) ⇒ Tag[_]): Tag[TagName]
Recursively map tag children, including root node
-
final
def
matches[T <: Singleton](tagRef: TagRef[T]): Boolean
- Annotations
- @tailrec()
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def partialMap(f: PartialFunction[Node, Node]): Tag[TagName]
- def prepend(node: Node): Tag[TagName]
- def prependAll(node: List[Node]): Tag[TagName]
- def remAttr(attribute: String): Tag[TagName]
- def remove(node: Node): Tag[TagName]
- def removeAll(node: List[Node]): Tag[TagName]
- def replace(reference: Node, node: Node): Tag[TagName]
- def set(nodes: List[Node]): Tag[TagName]
- def set(node: Node): Tag[TagName]
- def setAttr(attribute: String, value: String): Tag[TagName]
-
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.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def tag[T <: Singleton with String](implicit vo: ValueOf[T]): Tag[T]
- val tagName: String with TagName
- def update(f: (NodeRenderContext) ⇒ Unit): Tag[TagName]
-
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( ... )