Skip to content

TBATypedBlob

Unit: BoldAttributes

Declaration

TBATypedBlob = class(TBABlob)

Hierarchy

  1. TObject
  2. TBoldMemoryManagedObject
  3. TBoldFlaggedObject
  4. TBoldSubscribableObject
  5. TBoldElement
  6. TBoldDomainElement
  7. TBoldMember
  8. TBoldAttribute
  9. TBABlob
  10. 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

procedure AssignValue(Source: IBoldValue); override; See also Ancestor Method

CanSetContentType

function CanSetContentType(Value: string; Subscriber: TBoldSubscriber): Boolean;

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

function GetContentTypeContent: String;

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

function ProxyClass: TBoldMember_ProxyClass; override; See also Ancestor Method

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

procedure SetToNull; override; See also Ancestor Method

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.