Class: ConcurrencyModel
Models concurrency options for an entity.
Extends
Constructors
new ConcurrencyModel()
new ConcurrencyModel(
versionName
:string
):ConcurrencyModel
Parameters
Parameter | Type |
---|---|
versionName | string |
Returns
Overrides
Defined in
packages/verse-core/src/model/model.ts:988
Accessors
parent
get
parent():EntityModel
<any
,any
>
Returns the parent model element.
Returns
EntityModel
<any
, any
>
The parent model element.
Overrides
Defined in
packages/verse-core/src/model/model.ts:1004
version
get
version():ScalarPropertyModel
Returns
Defined in
packages/verse-core/src/model/model.ts:1000
versionName
get
versionName():string
Returns
string
Defined in
packages/verse-core/src/model/model.ts:996
Methods
accept()
accept<
T
,S
>(visitor
:ModelVisitor
<T
,S
>,state
?:S
):T
Accepts a visitor and returns the result of visiting this model element.
Type Parameters
Type Parameter | Default type |
---|---|
T | - |
S | unknown |
Parameters
Parameter | Type | Description |
---|---|---|
visitor | ModelVisitor <T , S > | The visitor to accept. |
state ? | S | An optional state to pass to the visitor. |
Returns
T
The result of visiting this model element.
Overrides
Defined in
packages/verse-core/src/model/model.ts:1014
equals()
equals(
other
:unknown
):boolean
Checks if the current object is equal to the provided object.
Parameters
Parameter | Type | Description |
---|---|---|
other | unknown | The object to compare with. |
Returns
boolean
Whether the objects are equal or not.
Overrides
Defined in
packages/verse-core/src/model/model.ts:1018
hashCode()
hashCode():
number
Returns the hash code of this object.
Returns
number
The hash code.
Overrides
Defined in
packages/verse-core/src/model/model.ts:1022
rewrite()
rewrite(
rewriter
:ModelRewriter
):AbstractModel
Rewrite method for processing a given model with a rewriter.
Parameters
Parameter | Type | Description |
---|---|---|
rewriter | ModelRewriter | The rewriter to use for rewriting the model. |
Returns
The rewritten model.
Inherited from
Defined in
packages/verse-core/src/model/model.ts:55
toJSON()
toJSON():
string
Returns a JSON representation of this model element.
Returns
string
The JSON representation.
Inherited from
Defined in
packages/verse-core/src/model/model.ts:82
toObject()
toObject(): {
version
:string
; }
Returns this instance as a plain object.
Returns
{version
: string
; }
The plain object.
version
version:
string