Traits Docs
Fall 2024
API

# Corporation

o1.legal.Corporation
class Corporation(val `id`: String, val `seeksProfit`: Boolean, `name`: String, `contact`: NaturalPerson) extends Entity, HumanOrganization

A `Nation` is a sovereign state such as Finland or Brazil.

## Parameters

contact

  a contact person

id

  an identifier that uniquely specifies the corporation

name

  the name of the corporation

seeksProfit

  whether the corporation seeks financial profit or not

## Attributes

Graph
Supertypes
  trait HumanOrganization
  trait JuridicalPerson
  trait Entity
  class Object
  trait Matchable
  class Any
  Show all

## Members list

### Value members

#### Concrete methods

def kind: String

A short description of the entity’s type. For a `Corporation`, this is either "for-profit corporation" or "non-profit corporation".

A short description of the entity’s type. For a `Corporation`, this is either "for-profit corporation" or "non-profit corporation".

## 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

#### Concrete fields

val id: String
val seeksProfit: Boolean