Class: abstract
PropertyModel
Base class for property models.
Extends
Extended by
Constructors
new PropertyModel()
new PropertyModel():
PropertyModel
Returns
Inherited from
Properties
name
abstract
readonly
name:string
Defined in
packages/verse-core/src/model/model.ts:1080
Accessors
parent
get
parent():undefined
|AbstractModel
Returns the parent model element.
Returns
undefined
| AbstractModel
The parent model element.
Inherited from
Defined in
packages/verse-core/src/model/model.ts:74
Methods
accept()
abstract
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.
Inherited from
Defined in
packages/verse-core/src/model/model.ts:41
equals()
abstract
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.
Inherited from
Defined in
packages/verse-core/src/model/model.ts:97
hashCode()
abstract
hashCode():number
Returns the hash code of this object.
Returns
number
The hash code.
Inherited from
Defined in
packages/verse-core/src/model/model.ts:103
merge()
merge(
override
?:PropertyModel
):PropertyModel
Parameters
Parameter | Type |
---|---|
override ? | PropertyModel |
Returns
Defined in
packages/verse-core/src/model/model.ts:1082
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()
abstract
toObject():object
Returns this instance as a plain object.
Returns
object
The plain object.