MultiExtractor

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

Trait to define the behavior of an iterable type which can be constructed from an XML NodeSeq.

Type parameters

T

the (iterable) type to be constructed.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def extract(nodeSeq: NodeSeq): Try[T]

Method to convert a NodeSeq into a Try[T], usually an iterable type. This method will typically be used on the result of: node \ tag where tag is a particular tag String.

Method to convert a NodeSeq into a Try[T], usually an iterable type. This method will typically be used on the result of: node \ tag where tag is a particular tag String.

Value parameters

nodeSeq

a NodeSeq.

Attributes

Returns

a Try[T].

Inherited methods

def ^+(w: String): MultiExtractor[T]

Appends the given string to the current name, separated by a colon, and updates the name of the current instance.

Appends the given string to the current name, separated by a colon, and updates the name of the current instance.

Value parameters

w

the string to prepend to the current name.

Attributes

Returns

the instance of the current object cast to type E.

Inherited from:
NamedFunction
def ^^(w: String): MultiExtractor[T]

Updates the name of the current instance and returns it as the specified type.

Updates the name of the current instance and returns it as the specified type.

Value parameters

w

the new name to be assigned.

Attributes

Returns

the instance of the current object cast to type E.

Inherited from:
NamedFunction
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
NamedFunction -> Any
Inherited from:
NamedFunction

Inherited fields

var name: String

Represents the name attribute of a NamedFunction instance.

Represents the name attribute of a NamedFunction instance.

The name is a mutable string variable with a default value of "unnamed". It can be updated via methods such as ^^ and ^+ in the NamedFunction trait.

Attributes

Inherited from:
NamedFunction