Traits Docs
Fall 2024
API

# NaturalPerson

o1.legal.NaturalPerson
trait NaturalPerson(val `personID`: String) extends Entity

A `NaturalPerson` is a legal entity that is a single human being. In addition to a name, which every Entity has, a `NaturalPerson` has a `personID`.

## Parameters

personID

  an identifier that uniquely specifies the individual person, such as a social security number

## Attributes

Graph
Supertypes
  trait Entity
  class Object
  trait Matchable
  class Any
Known subtypes
  class FullCapacityPerson
  class ReducedCapacityPerson

## Members list

### Value members

#### Concrete methods

def kind: String

A short description of the entity’s type. For natural persons, this method returns the word "human" by default, although this behavior may be overridden by subclasses.

A short description of the entity’s type. For natural persons, this method returns the word "human" by default, although this behavior may be overridden by subclasses.

## Attributes

#### Inherited methods

override def toString: String

Returns a textual description of the legal entity. This takes the form "NAME (KIND)", e.g., "Jane Doe (human in full capacity)".

Returns a textual description of the legal entity. This takes the form "NAME (KIND)", e.g., "Jane Doe (human in full capacity)".

## Attributes

Definition Classes
  Entity -> Any
Inherited from:
  Entity

#### Inherited and Abstract methods

def contact: NaturalPerson

The contact person of the legal entity. This is another legal entity which must be a human (a NaturalPerson).

The contact person of the legal entity. This is another legal entity which must be a human (a NaturalPerson).

## Attributes

Inherited from:
  Entity

#### Concrete fields

val personID: String

#### Inherited fields

val name: String

## Attributes

Inherited from:
  Entity