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
StringOrNodeSeqtrait, which can in turn be implicitly converted toNodeSeq. This allows using aStringas a natural part ofNodeSeqAPIs without having to explicitly wrap it inscala.xml.Textor having to write overloads for all methods that should accept both.This is used in certain Lift APIs, for example, to accept either a
Stringor more complex content. For example, abuttoncan have either a simple label or complex HTML content. HTML APIs that can do this can accept a parameter of typeStringOrNodeSeqto allow the user to pass either in as their needs dictate.