summaryrefslogtreecommitdiff
path: root/fpcsrc/packages/cocoaint/src/coredata/NSPropertyDescription.inc
blob: 9965b56eb58cda7c2c0360b833241e2788a70e55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
{ Parsed from Coredata.framework NSPropertyDescription.h }

{$ifdef TYPES}
{$ifndef NSPROPERTYDESCRIPTION_PAS_T}
{$define NSPROPERTYDESCRIPTION_PAS_T}

{$endif}
{$endif}

{$ifdef RECORDS}
{$ifndef NSPROPERTYDESCRIPTION_PAS_R}
{$define NSPROPERTYDESCRIPTION_PAS_R}

{$endif}
{$endif}

{$ifdef FUNCTIONS}
{$ifndef NSPROPERTYDESCRIPTION_PAS_F}
{$define NSPROPERTYDESCRIPTION_PAS_F}

{$endif}
{$endif}

{$ifdef EXTERNAL_SYMBOLS}
{$ifndef NSPROPERTYDESCRIPTION_PAS_S}
{$define NSPROPERTYDESCRIPTION_PAS_S}

{$endif}
{$endif}

{$ifdef FORWARD}
  NSPropertyDescription = objcclass;
  NSPropertyDescriptionPointer = ^NSPropertyDescription;
  NSPropertyDescriptionPtr = NSPropertyDescriptionPointer;

{$endif}

{$ifdef CLASSES}
{$ifndef NSPROPERTYDESCRIPTION_PAS_C}
{$define NSPROPERTYDESCRIPTION_PAS_C}

{ NSPropertyDescription }
  NSPropertyDescription = objcclass external (NSObject, NSCodingProtocol, NSCopyingProtocol)
  private
    _reserved: Pointer;
    _versionHashModifier: NSString;
    _versionHash: NSData;
    _entity: NSEntityDescription; {garbage collector: __weak }
    _name: NSString;
    _validationPredicates: NSArray;
    _validationWarnings: NSArray;
    __propertyDescriptionFlags: record
      case byte of
       0: (_anonbitfield_NSPropertyDescription0: cuint);
       1: (data: bitpacked record
        _isReadOnly: 0..1;
        _isTransient: 0..1;
        _isOptional: 0..1;
        _isIndexed: 0..1;
        _skipValidation: 0..1;
        _isIndexedBySpotlight: 0..1;
        _isStoredInExternalRecord: 0..1;
        _reservedPropertyDescription: 0..((1 shl 25)-1);
       end;
      );
      end;
    _extraIvars: Pointer; {garbage collector: __strong }
    _userInfo: NSMutableDictionary;
    _entitysReferenceIDForProperty: clong;
    
  public
    function entity: NSEntityDescription; message 'entity';
    function name: NSString; message 'name';
    procedure setName(name_: NSString); message 'setName:';
    function isOptional: Boolean; message 'isOptional';
    procedure setOptional(flag: Boolean); message 'setOptional:';
    function isTransient: Boolean; message 'isTransient';
    procedure setTransient(flag: Boolean); message 'setTransient:';
    function validationPredicates: NSArray; message 'validationPredicates';
    function validationWarnings: NSArray; message 'validationWarnings';
    procedure setValidationPredicates_withValidationWarnings(validationPredicates_: NSArray; validationWarnings_: NSArray); message 'setValidationPredicates:withValidationWarnings:';
    function userInfo: NSDictionary; message 'userInfo';
    procedure setUserInfo(dictionary: NSDictionary); message 'setUserInfo:';
    function isIndexed: Boolean; message 'isIndexed';
    procedure setIndexed(flag: Boolean); message 'setIndexed:';
    function versionHash: NSData; message 'versionHash';
    function versionHashModifier: NSString; message 'versionHashModifier';
    procedure setVersionHashModifier(modifierString: NSString); message 'setVersionHashModifier:';
    function isIndexedBySpotlight: Boolean; message 'isIndexedBySpotlight';
    procedure setIndexedBySpotlight(flag: Boolean); message 'setIndexedBySpotlight:';
    function isStoredInExternalRecord: Boolean; message 'isStoredInExternalRecord';
    procedure setStoredInExternalRecord(flag: Boolean); message 'setStoredInExternalRecord:';
    function renamingIdentifier: NSString; message 'renamingIdentifier';
    procedure setRenamingIdentifier(value: NSString); message 'setRenamingIdentifier:';

    { Adopted Protocols }
    procedure encodeWithCoder(aCoder: NSCoder);
    function initWithCoder(aDecoder: NSCoder): id;
    function copyWithZone(zone_: NSZonePtr): id;
  end;

{$endif}
{$endif}