MultiExtractor

com.phasmidsoftware.xmldoc.xml.MultiExtractor
See theMultiExtractor companion trait

Companion object to MultiExtractor.

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply[T](f: NodeSeq => Try[T]): MultiExtractor[T]

Method to create an MultiExtractor[T] from a NodeSeq => Try[T] function. Note that this isn't strictly necessary because of the SAM conversion mechanism which turns a Node => Try[T] function into an Extractor[T].

Method to create an MultiExtractor[T] from a NodeSeq => Try[T] function. Note that this isn't strictly necessary because of the SAM conversion mechanism which turns a Node => Try[T] function into an Extractor[T].

TESTME

Type parameters

T

the underlying type of the resulting MultiExtractor.

Value parameters

f

a NodeSeq => Try[T] function.

Attributes

Returns

a MultiExtractor[T].

def createLazy[T](tm: => MultiExtractor[T]): MultiExtractor[T]

Method to create a lazy MultiExtractor[T] from an explicit MultiExtractor[T] which is call-by-name. The purpose of this method is to break the infinite recursion caused when implicit values are defined recursively. See the Play JSON library method in JsPath called lazyRead.

Method to create a lazy MultiExtractor[T] from an explicit MultiExtractor[T] which is call-by-name. The purpose of this method is to break the infinite recursion caused when implicit values are defined recursively. See the Play JSON library method in JsPath called lazyRead.

Type parameters

T

the underlying type of the MultiExtractor required.

Value parameters

tm

a MultiExtractor[T].

Attributes

Returns

a MultiExtractor[T].