FEMRelationshipAssignmentContext.h 971 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // Created by zen on 13/05/15.
  3. // Copyright (c) 2015 Yalantis. All rights reserved.
  4. //
  5. #import <Foundation/Foundation.h>
  6. @class FEMRelationship, FEMObjectStore, FEMRelationshipAssignmentContext;
  7. @protocol FEMRelationshipAssignmentContextDelegate <NSObject>
  8. @required
  9. - (void)assignmentContext:(nonnull FEMRelationshipAssignmentContext *)context deletedObject:(nonnull id)object;
  10. @end
  11. @interface FEMRelationshipAssignmentContext: NSObject
  12. @property (nonatomic, unsafe_unretained, readonly, nonnull) FEMObjectStore *store;
  13. - (nonnull instancetype)initWithStore:(nonnull FEMObjectStore *)store;
  14. @property (nonatomic, strong, readonly, nonnull) id destinationObject;
  15. @property (nonatomic, strong, readonly, nonnull) FEMRelationship *relationship;
  16. @property (nonatomic, strong, readonly, nullable) id sourceRelationshipValue;
  17. @property (nonatomic, strong, readonly, nullable) id targetRelationshipValue;
  18. - (void)deleteRelationshipObject:(nonnull id)object;
  19. @end