NameReceptacle

pl.iterators.stir.common.NameReceptacle
class NameReceptacle[T](val name: String)

Attributes

Source
NameReceptacle.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def ![B](requiredValue: B): RequiredValueReceptacle[B]

Require the given value and extract nothing. Reject if it is missing or has a different value. Symbolic alias for requiredValue.

Require the given value and extract nothing. Reject if it is missing or has a different value. Symbolic alias for requiredValue.

Attributes

Source
NameReceptacle.scala

Extract multiple occurrences as Iterable[String]. Symbolic alias for repeated.

Extract multiple occurrences as Iterable[String]. Symbolic alias for repeated.

Attributes

Source
NameReceptacle.scala

Extract the optional value as Option[String]. Symbolic alias for optional.

Extract the optional value as Option[String]. Symbolic alias for optional.

Attributes

Source
NameReceptacle.scala
def ?[B](default: B): NameDefaultReceptacle[B]

Extract the optional value as String, if it is missing use the given default value. Symbolic alias for withDefault.

Extract the optional value as String, if it is missing use the given default value. Symbolic alias for withDefault.

Attributes

Source
NameReceptacle.scala
def as[B]: NameReceptacle[B]

Extract the value as the specified type. You need a matching Unmarshaller in scope for that to work.

Extract the value as the specified type. You need a matching Unmarshaller in scope for that to work.

Attributes

Source
NameReceptacle.scala
def as[B](unmarshaller: Unmarshaller[T, B])(implicit fsu: FromStringUnmarshaller[T]): NameUnmarshallerReceptacle[B]

Extract the value as the specified type with the given Unmarshaller.

Extract the value as the specified type with the given Unmarshaller.

Attributes

Source
NameReceptacle.scala

Extract the optional value as Option[String].

Extract the optional value as Option[String].

Attributes

Source
NameReceptacle.scala

Extract multiple occurrences as Iterable[String].

Extract multiple occurrences as Iterable[String].

Attributes

Source
NameReceptacle.scala
def requiredValue[B](requiredValue: B): RequiredValueReceptacle[B]

Require the given value and extract nothing. Reject if it is missing or has a different value.

Require the given value and extract nothing. Reject if it is missing or has a different value.

Attributes

Source
NameReceptacle.scala
def withDefault[B](default: B): NameDefaultReceptacle[B]

Extract the optional value as String, if it is missing use the given default value.

Extract the optional value as String, if it is missing use the given default value.

Attributes

Source
NameReceptacle.scala

Concrete fields

val name: String

Attributes

Source
NameReceptacle.scala