1
/* Interface for NSClassDescription for GNUStep
2
Copyright (C) 2000 Free Software Foundation, Inc.
4
Written by: Richard Frith-Macdonald <rfm@gnu.org>
7
This file is part of the GNUstep Base Library.
9
This library is free software; you can redistribute it and/or
10
modify it under the terms of the GNU Library General Public
11
License as published by the Free Software Foundation; either
12
version 2 of the License, or (at your option) any later version.
14
This library is distributed in the hope that it will be useful,
15
but WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
Library General Public License for more details.
19
You should have received a copy of the GNU Library General Public
20
License along with this library; if not, write to the Free
21
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
24
#ifndef __NSClassDescription_h_GNUSTEP_BASE_INCLUDE
25
#define __NSClassDescription_h_GNUSTEP_BASE_INCLUDE
27
#include <Foundation/NSObject.h>
28
#include <Foundation/NSException.h>
30
#ifndef STRICT_OPENSTEP
37
* Posted by [NSClassDescription+classDescriptionForClass:] when a class
38
* description cannot be found for a class. The implementation will check
39
* again after the notification is (synchronously) processed, allowing
40
* descriptions to be registered lazily.
42
GS_EXPORT NSString* const NSClassDescriptionNeededForClassNotification;
44
@interface NSClassDescription : NSObject
46
+ (NSClassDescription*) classDescriptionForClass: (Class)aClass;
47
+ (void) invalidateClassDescriptionCache;
48
+ (void) registerClassDescription: (NSClassDescription*)aDescription
49
forClass: (Class)aClass;
51
- (NSArray*) attributeKeys;
52
- (NSString*) inverseForRelationshipKey: (NSString*)aKey;
53
- (NSArray*) toManyRelationshipKeys;
54
- (NSArray*) toOneRelationshipKeys;
58
@interface NSObject (NSClassDescriptionPrimitives)
60
- (NSArray*) attributeKeys;
61
- (NSClassDescription*) classDescription;
62
- (NSString*) inverseForRelationshipKey: (NSString*)aKey;
63
- (NSArray*) toManyRelationshipKeys;
64
- (NSArray*) toOneRelationshipKeys;