Class: StringPropertyModel
Models a string property.
Extends
Constructors
new StringPropertyModel()
new StringPropertyModel(
state
:Readonly
<StringPropertyModelState
>):StringPropertyModel
Parameters
Parameter | Type |
---|---|
state | Readonly <StringPropertyModelState > |
Returns
Overrides
ScalarPropertyModel
.constructor
Defined in
packages/verse-core/src/model/model.ts:1267
Accessors
column
get
column():undefined
|string
Returns
undefined
| string
Inherited from
Defined in
packages/verse-core/src/model/model.ts:1112
convert
get
convert():undefined
|ConversionModel
Returns
undefined
| ConversionModel
Inherited from
Defined in
packages/verse-core/src/model/model.ts:1168
generate
get
generate():undefined
|GeneratorModel
Returns
undefined
| GeneratorModel
Inherited from
Defined in
packages/verse-core/src/model/model.ts:1151
maxLength
get
maxLength():undefined
|number
Returns
undefined
| number
Defined in
packages/verse-core/src/model/model.ts:1271
name
get
name():string
Returns
string
Inherited from
Defined in
packages/verse-core/src/model/model.ts:1108
nullable
get
nullable():undefined
|boolean
Returns
undefined
| boolean
Inherited from
Defined in
packages/verse-core/src/model/model.ts:1138
parent
get
parent():EntityModel
<any
,any
>
Returns the parent model element.
Returns
EntityModel
<any
, any
>
The parent model element.
Inherited from
Defined in
packages/verse-core/src/model/model.ts:1204
principal
get
principal():undefined
|ScalarPropertyModel
Returns
undefined
| ScalarPropertyModel
Inherited from
Defined in
packages/verse-core/src/model/model.ts:1208
state
get
protected
state():StringPropertyModelState
Returns
Overrides
Defined in
packages/verse-core/src/model/model.ts:1283
storeGenerated
get
storeGenerated():boolean
Returns
boolean
Inherited from
ScalarPropertyModel
.storeGenerated
Defined in
packages/verse-core/src/model/model.ts:1164
type
get
type():undefined
|SqlType
Returns
undefined
| SqlType
Inherited from
Defined in
packages/verse-core/src/model/model.ts:1125
valueCtor
get
protected
valueCtor():StringConstructor
Returns
StringConstructor
Overrides
Defined in
packages/verse-core/src/model/model.ts:1287
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:1299
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:1303
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:1312
merge()
merge(
override
?:PropertyModel
):any
Parameters
Parameter | Type |
---|---|
override ? | PropertyModel |
Returns
any
Inherited from
Defined in
packages/verse-core/src/model/model.ts:1186
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. |