GNUstep Core Data  0.1
NSPropertyDescription.h
00001 /* Interface of the NSPropertyDescription class for the GNUstep
00002    Core Data framework.
00003    Copyright (C) 2005 Free Software Foundation, Inc.
00004 
00005    Written by:  Saso Kiselkov <diablos@manga.sk>
00006    Date: August 2005
00007 
00008    This file is part of the GNUstep Core Data framework.
00009 
00010    This library is free software; you can redistribute it and/or
00011    modify it under the terms of the GNU Lesser General Public
00012    License as published by the Free Software Foundation; either
00013    version 2.1 of the License, or (at your option) any later version.
00014 
00015    This library is distributed in the hope that it will be useful,
00016    but WITHOUT ANY WARRANTY; without even the implied warranty of
00017    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018    Lesser General Public License for more details.
00019 
00020    You should have received a copy of the GNU Lesser General Public
00021    License along with this library; if not, write to the Free
00022    Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
00023  */
00024 
00025 #ifndef _NSPropertyDescription_h_
00026 #define _NSPropertyDescription_h_
00027 
00028 #import <Foundation/NSObject.h>
00029 
00030 @class NSstring, NSDictionary, NSArray;
00031 @class NSEntityDescription;
00032 
00033 @interface NSPropertyDescription : NSObject <NSCopying, NSCoding>
00034 {
00035   NSString * _name;
00036   // a weak reference
00037   NSEntityDescription * _entity;
00038   BOOL _optional,
00039        _transient;
00040   NSDictionary * _userInfo;
00041 
00042   NSArray * _validationPredicates;
00043   NSArray * _validationWarnings;
00044 }
00045 
00046 - (NSEntityDescription *) entity;
00047 - (BOOL) isOptional;
00048 - (BOOL) isTransient;
00049 - (NSString *) name;
00050 - (void) setName: (NSString *) aName;
00051 - (void) setOptional: (BOOL) flag;
00052 - (void) setTransient: (BOOL) flag;
00053 - (void) setUserInfo: (NSDictionary *) someUserInfo;
00054 - (void) setValidationPredicates: (NSArray *) someValidationPredicates
00055           withValidationWarnings: (NSArray *) someValidationWarnings;
00056 - (NSDictionary *) userInfo;
00057 - (NSArray *) validationPredicates;
00058 - (NSArray *) validationWarnings;
00059 
00060 @end
00061 
00062 #endif // _NSPropertyDescription_h_