object
StringOrNodeSeq
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
-
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
-
implicit
def
strTo[T](str: T)(implicit arg0: (T) ⇒ String): StringOrNodeSeq
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
implicit
def
toNodeSeq(sns: StringOrNodeSeq): NodeSeq
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Provides implicit conversions to the
StringOrNodeSeq
trait, which can in turn be implicitly converted toNodeSeq
. This allows using aString
as a natural part ofNodeSeq
APIs without having to explicitly wrap it inscala.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, abutton
can have either a simple label or complex HTML content. HTML APIs that can do this can accept a parameter of typeStringOrNodeSeq
to allow the user to pass either in as their needs dictate.