Name

world.party.Name
See theName companion object
final case class Name

A person's name in CLDR's fields, under their British names. Capture it as separate fields, as one unstructured full string, or as both; usable says whether enough of it is there to address someone by. The name's own locale travels with it, so it can be presented by its owner's conventions rather than the reader's. There is no parser from free text into these fields, because CLDR declines to define one. Instances via Name.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def credentials(v: String): Name
Extension method from Name

Post-nominal qualifications, such as CPA.

Post-nominal qualifications, such as CPA.

Attributes

def forename(v: String): Name
Extension method from Name
def forename2(v: String): Name
Extension method from Name

A further forename, where a middle name is recorded separately.

A further forename, where a middle name is recorded separately.

Attributes

def full(v: String): Name
Extension method from Name
def generation(v: String): Name
Extension method from Name

A generational suffix, such as II.

A generational suffix, such as II.

Attributes

def locale(v: Locale): Name
Extension method from Name

The locale the name itself belongs to, not the reader's.

The locale the name itself belongs to, not the reader's.

Attributes

def prefix(v: String): Name
Extension method from Name

A particle attaching to the surname, such as de la, kept apart so sorting can ignore it.

A particle attaching to the surname, such as de la, kept apart so sorting can ignore it.

Attributes

def surname(v: String): Name
Extension method from Name
def surname2(v: String): Name
Extension method from Name

A further surname, as the double surnames of Iberian naming carry.

A further surname, as the double surnames of Iberian naming carry.

Attributes

def title(v: String): Name
Extension method from Name

An honorific before the name, such as Dr.

An honorific before the name, such as Dr.

Attributes

def usable: Boolean
Extension method from Name

Whether the name has enough in it to address someone by: a full form, or at least one of the two core fields.

Whether the name has enough in it to address someone by: a full form, or at least one of the two core fields.

Attributes

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product