TBoldSystemTypeInfoHandle¶
This handle holds the runtime information needed by a TBoldSystemHandle.
Unit: BoldHandles
Declaration¶
Hierarchy¶
- TComponent
- TBoldSubscribableComponent
- TBoldElementHandle
- TBoldSystemTypeInfoHandle
Description¶
The information is a efficient representation of the information in the UML-model, heavily optimized for speed.
The type information is created from the model referenced by BoldModel. Several systems can share the same TBoldSystemTypeInfoHandle. In this case, they will be type compatible in the Bold sense of the word.
Bold events
TBoldSystemTypeInfoHandle is a subclass of TBoldSubscribableComponent, and can therefore by subscribed to using AddSmallSubscription. A TBoldSystemTypeInfoHandle. can send the following events:
- beDestroying: Sent when the handle is about to be destroyed
- beValueChanged: Sent if it receives any change from the BoldModel component
Properties¶
| Name | Summary | Notes |
|---|---|---|
| BoldModel | Link to the TBoldModel component | |
| CheckCodeCheckSum | Decides if the checksum in the generated code is honoured | |
| RegionDefinitions | The internal representation of the regions defined in the model. | read-only |
| UseGeneratedCode | Specifies if generated code is to be used. |
BoldModel¶
This property must point to a TBoldModel that holds the UML model for the system to be used.
CheckCodeCheckSum¶
When code is generated, and UseGeneratedCode is checked, the checksum of the generated code is compared with the checksum of the model at system startup.
In some cases during the debug phase, you may want to do changes that you figure will not require regeneration of code, but nevertheless changes the checksum. Setting this property to False will prevent the checksums from being compared.
| Note |
|---|
Changing this property to False is intended only as a debugging tool. Our recommendation is to check the checksum always, especially in production code! You may even want to write some code that brings up a warning dialog if the CheckCodeCheckSum is false and execute this "sanity checker" at application startup. |
|---|
RegionDefinitions¶
The internal representation of the regions defined in the model. See Related Topics for a description of the region definition language.
UseGeneratedCode¶
If this property is true the system will expect the project to include a unit containing generated code for the business-classes, allowing the use of Delphi-types, and user-written code. This is the most common case.
If the property is set to false, all objects will be instantiated as TBoldObjects, and all lists of objects as TBoldObjectLists. In this case all evaluation must be done using OCL, or via methods and properties on the above classes only, such as TBoldObject.BoldMemberByExpressionName.
New objects can be created with TBoldSystem.CreateNewObjectByExpressionName
Methods¶
| Name | Summary | Notes |
|---|---|---|
| Create | Creates an instance of TBoldSystemTypeInfoHandle | override |
| Destroy | Destroys an instance of TBoldSystemTypeInfoHandle | override |
| GetStaticBoldType | Overrides TBoldElementHandle.GetStaticBoldType | protected, override |
| GetStaticSystemTypeInfo | Overrides TBoldElementHandle.GetStaticSystemTypeInfo | protected, override |
| GetValue | Overrides TBoldElementHandle.GetValue | protected, override |
| InstallOclDefinitionLookUp | Bold-internal | |
| RefersToComponent | Determines if the TBoldSystemTypeHandle refers to the component in the parameter. | override |
Create¶
Use Create to create an instance of TBoldSystemTypeInfoHandle.
Destroy¶
Destroy destroys an instance of a TBoldSystemTypeInfoHandle. Do not call Destroy directly, use Free instead.
GetStaticBoldType¶
Overrides GetStaticBoldType
GetStaticSystemTypeInfo¶
Overrides GetStaticSystemTypeInfo
GetValue¶
Overrides GetValue
InstallOclDefinitionLookUp¶
Bold-internal
RefersToComponent¶
function RefersToComponent(Component: TBoldSubscribableComponent): Boolean; override; See also Ancestor Method
RefersToComponent is used internally to avoid circular references.
Generated from the Bold 4.0 help (Help/BfD.chm) by Tools/chm2mkdocs.py; member lists reflect Bold 4.0, see the source for members added since.