123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- #import <Realm/RLMConstants.h>
- NS_ASSUME_NONNULL_BEGIN
- @protocol RLMInt @end
- @protocol RLMBool @end
- @protocol RLMDouble @end
- @protocol RLMFloat @end
- @protocol RLMString @end
- @protocol RLMDate @end
- @protocol RLMData @end
- @interface NSNumber ()<RLMInt, RLMBool, RLMDouble, RLMFloat>
- @end
- @interface RLMProperty : NSObject
- #pragma mark - Properties
- @property (nonatomic, readonly) NSString *name;
- @property (nonatomic, readonly) RLMPropertyType type;
- @property (nonatomic, readonly) BOOL indexed;
- @property (nonatomic, readonly, copy, nullable) NSString *objectClassName;
- @property (nonatomic, readonly, copy, nullable) NSString *linkOriginPropertyName;
- @property (nonatomic, readonly) BOOL optional;
- @property (nonatomic, readonly) BOOL array;
- #pragma mark - Methods
- - (BOOL)isEqualToProperty:(RLMProperty *)property;
- @end
- @interface RLMPropertyDescriptor : NSObject
- + (instancetype)descriptorWithClass:(Class)objectClass propertyName:(NSString *)propertyName;
- @property (nonatomic, readonly) Class objectClass;
- @property (nonatomic, readonly) NSString *propertyName;
- @end
- NS_ASSUME_NONNULL_END
|