GNUstep Core Data  0.1
NSAttributeDescription.h
00001 /* Interface of the NSAttributeDescription 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 _NSAttributeDescription_h_
00026 #define _NSAttributeDescription_h_
00027 
00028 #import <CoreData/NSPropertyDescription.h>
00029 
00030 typedef enum {
00031         NSUndefinedAttributeType = 0,
00032         NSInteger16AttributeType = 100,
00033         NSInteger32AttributeType = 200,
00034         NSInteger64AttributeType = 300,
00035         NSDecimalAttributeType = 400,
00036         NSDoubleAttributeType = 500,
00037         NSFloatAttributeType = 600,
00038         NSStringAttributeType = 700,
00039         NSBooleanAttributeType = 800,
00040         NSDateAttributeType = 900,
00041         NSBinaryDataAttributeType = 1000
00042 } NSAttributeType;
00043 
00044 @class NSString;
00045 
00046 @interface NSAttributeDescription : NSPropertyDescription
00047 {
00048   NSAttributeType _attributeType;
00049   id _defaultValue;
00050 }
00051 
00052 // Getting and setting the attribute type.
00053 - (NSAttributeType) attributeType;
00054 - (NSString *) attributeValueClassName;
00055 - (id) defaultValue;
00056 - (void) setAttributeType: (NSAttributeType) anAttributeType;
00057 - (void) setDefaultValue: (id) aValue;
00058 
00059 // Getting and setting the default value.
00060 
00061 @end
00062 
00063 #endif // _NSAttributeDescription_h_