TBATypedBlob¶
Unit: BoldAttributes
Declaration¶
Hierarchy¶
- TObject
TBoldMemoryManagedObjectTBoldFlaggedObject- TBoldSubscribableObject
- TBoldElement
- TBoldDomainElement
- TBoldMember
- TBoldAttribute
- TBABlob
- TBATypedBlob
Description¶
This subclass of TBABlob adds the possibility to set the content type of the data. The content type is any string that identifies the format of the data, such as the Mime-type identifiers:
- image/bmp
- image/jpeg
- image/x-wmf
- audio/wav
- text/html
- text/xml
The attribute itself knows nothing about mimetypes, and will enforce no control of the correctness of data, this must be added by new subclasses.
Methods¶
| Name | Summary | Notes |
|---|---|---|
| AssignValue | override | |
| CanSetContentType | ||
| CompareToAs | override | |
| GetContentTypeContent | protected | |
| GetStringRepresentation | protected, override | |
| IsEqualAs | override | |
| ProxyClass | protected, override | |
| ProxyInterface | override | |
| SetStringRepresentation | protected, override | |
| SetToNull | override |
AssignValue¶
CanSetContentType¶
Use this function to test if it is allowed to set the attribute to a specific value.
If a subscriber is sent to the function, this subscriber will be notified if the conditions have changed (so that an illegal value is now legal). It is OK to send a nilpointer instead.
CompareToAs¶
function CompareToAs(CompareType: TBoldCompareType; BoldElement: TBoldElement): Integer; override; See also Ancestor Method
GetContentTypeContent¶
GetStringRepresentation¶
function GetStringRepresentation(Representation: TBoldRepresentation): string; override; See also Ancestor Method
IsEqualAs¶
function IsEqualAs(CompareType: TBoldCompareType; BoldElement: TBoldElement): Boolean; override; See also Ancestor Method
ProxyClass¶
ProxyInterface¶
function ProxyInterface(const IId: TGUID; Mode: TBoldDomainElementProxyMode; out Obj): Boolean; override; See also Ancestor Method
SetStringRepresentation¶
procedure SetStringRepresentation(Representation: TBoldRepresentation; Value: string); override; See also Ancestor Method
SetToNull¶
In addition to what is done by the inherited method (setting the attribute to null), it will also free the memory used by the content type string.
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.