GNUstep Core Data 0.1
NSPropertyDescription.h
1/* Interface of the NSPropertyDescription class for the GNUstep
2 Core Data framework.
3 Copyright (C) 2005 Free Software Foundation, Inc.
4
5 Written by: Saso Kiselkov <diablos@manga.sk>
6 Date: August 2005
7
8 This file is part of the GNUstep Core Data framework.
9
10 This library is free software; you can redistribute it and/or
11 modify it under the terms of the GNU Lesser General Public
12 License as published by the Free Software Foundation; either
13 version 2.1 of the License, or (at your option) any later version.
14
15 This library is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 Lesser General Public License for more details.
19
20 You should have received a copy of the GNU Lesser General Public
21 License along with this library; if not, write to the Free
22 Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
23 */
24
25#ifndef _NSPropertyDescription_h_
26#define _NSPropertyDescription_h_
27
28#import <Foundation/NSObject.h>
29
30@class NSstring, NSDictionary, NSArray;
31@class NSEntityDescription;
32
33@interface NSPropertyDescription : NSObject <NSCopying, NSCoding>
34{
35 NSString * _name;
36 // a weak reference
37 NSEntityDescription * _entity;
38 BOOL _optional,
39 _transient;
40 NSDictionary * _userInfo;
41
42 NSArray * _validationPredicates;
43 NSArray * _validationWarnings;
44}
45
46- (NSEntityDescription *) entity;
47- (BOOL) isOptional;
48- (BOOL) isTransient;
49- (NSString *) name;
50- (void) setName: (NSString *) aName;
51- (void) setOptional: (BOOL) flag;
52- (void) setTransient: (BOOL) flag;
53- (void) setUserInfo: (NSDictionary *) someUserInfo;
54- (void) setValidationPredicates: (NSArray *) someValidationPredicates
55 withValidationWarnings: (NSArray *) someValidationWarnings;
56- (NSDictionary *) userInfo;
57- (NSArray *) validationPredicates;
58- (NSArray *) validationWarnings;
59
60@end
61
62#endif // _NSPropertyDescription_h_