Model

Core Model

new Model(data, optionsopt)

Create a new Model.

Source:
Parameters:
Name Type Attributes Default Description
data *

The data for this model.

options Object <optional>
{}

An options object.

Name Type Attributes Description
type String <optional>

The type for this model.

Members

(readonly) cid :UUID

The client ID for this model. Generated on instantiation if not already present.

Source:
Type:
  • UUID

(readonly) dateCreated :Date

The date that the data for this model were originally created. Generated on instantiation if not already present.

Source:
Type:
  • Date

dateModified :Date

The date that the data for this model were last modified. Generated on instantiation if not already present.

Source:
Type:
  • Date

(constant) type :String

The type for this model, e.g. Language, Text, Lexeme, etc.

Source:
Type:
  • String