ClassProperty
| 📊 Overview: 6 Properties | 1 Constructor | 2 Functions |
📝 Description
Creates metadata for a class property with name and type
🕐 Last updated: 2025-12-10T11:45:22.445Z
📑 Table of Contents
- 📋 Properties (6)
- 🏗️ Constructor (2 params)
- ⚙️ Functions
- Regular Functions
- setDefault (1 param)
- toObject →
Object
- Regular Functions
Properties
| Property | Type | Default | Description |
|---|---|---|---|
Name | Text | - | Property name |
Type | Text | - | Property data type (Text, Integer, Object, etc.) |
HasDefault | Boolean | False | Whether property has a default value assigned |
DefaultValue | Text | "" | Default value string if HasDefault is true |
LineNumber | Integer | 0 | Line number where property is declared |
DocComment | Text | "" | Inline comment documenting the property |
Constructor
constructor
[🏗️ constructor]
Class constructor($Name : Text; $Type : Text)
Creates metadata for a class property with name and type
Parameters:
| Name | Type | Optional | Description |
|---|---|---|---|
$Name | Text | - | - |
$Type | Text | - | - |
Functions
Regular Functions
setDefault
Function setDefault($Value : Text)
Sets the default value for this property
Parameters:
| Name | Type | Optional | Description |
|---|---|---|---|
$Value | Text | - | - |
toObject
Function toObject -> Object
Converts property metadata to JSON-serializable object
Returns: Object
Generated from ClassProperty.4dm