object StringOrNodeSeq
Provides implicit conversions to the StringOrNodeSeq
trait, which can in
turn be implicitly converted to NodeSeq
. This allows
using a String
as a natural part of NodeSeq
APIs without having to
explicitly wrap it in scala.xml.Text
or having to write overloads for all
methods that should accept both.
This is used in certain Lift APIs, for example, to accept either a String
or more complex content. For example, a button
can have either a simple
label or complex HTML content. HTML APIs that can do this can accept a
parameter of type StringOrNodeSeq
to allow the user to pass either in as
their needs dictate.
- Alphabetic
- By Inheritance
- StringOrNodeSeq
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
implicit
def
nsTo(ns: Seq[Node]): StringOrNodeSeq
This is written in terms of a
Seq[Node]
to make sure Scala converts everything it should to aStringOrNodeSeq
.This is written in terms of a
Seq[Node]
to make sure Scala converts everything it should to aStringOrNodeSeq
.NodeSeq
is aSeq[Node]
. - implicit def strTo[T](str: T)(implicit arg0: (T) ⇒ String): StringOrNodeSeq
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- implicit def toNodeSeq(sns: StringOrNodeSeq): NodeSeq
-
def
toString(): String
- Definition Classes
- 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
- @throws( ... )