25#ifndef _NSEntityDescription_h_
26#define _NSEntityDescription_h_
28#import <Foundation/NSObject.h>
30@class NSString, NSArray, NSDictionary;
31@class NSManagedObjectModel, NSManagedObjectContext;
33@interface NSEntityDescription : NSObject <NSCopying, NSCoding>
37 NSString * _managedObjectClassName;
38 NSArray * _properties;
39 NSDictionary * _userInfo;
41 NSArray * _subentities;
43 NSEntityDescription * _superentity;
46 NSManagedObjectModel * _model;
52 unsigned int _modelRefCount;
56+ (NSEntityDescription *) entityForName: (NSString *) anEntityName
57 inManagedObjectContext: (NSManagedObjectContext *) aContext;
58+ (id) insertNewObjectForEntityForName: (NSString *) anEntityName
59 inManagedObjectContext: (NSManagedObjectContext *) aContext;
61- (NSDictionary *) attributesByName;
64- (NSString *) managedObjectClassName;
65- (NSManagedObjectModel *) managedObjectModel;
67- (NSArray *) properties;
68- (NSDictionary *) propertiesByName;
69- (NSDictionary *) relationshipsByName;
70- (NSArray *) relationshipsWithDestinationEntity:(NSEntityDescription *) _destinationEntity;
71- (void) setAbstract: (BOOL) flag;
72- (void) setManagedObjectClassName: (NSString *) aClassName;
73- (void) setName: (NSString *) aName;
74- (void) setProperties: (NSArray *) someProperties;
75- (void) setSubentities: (NSArray *) someSubentities;
76- (void) setUserInfo: (NSDictionary *) someUserInfo;
77- (NSArray *) subentities;
78- (NSDictionary *) subentitiesByName;
79- (NSEntityDescription *) superentity;
80- (NSDictionary *) userInfo;
81- (BOOL) _isSubentityOfEntity: (NSEntityDescription *) otherEntity;