use crate::common::*;
use crate::CoreData::*;
use crate::Foundation::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "CoreData_NSPropertyDescription")]
pub struct NSPropertyDescription;
#[cfg(feature = "CoreData_NSPropertyDescription")]
unsafe impl ClassType for NSPropertyDescription {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "CoreData_NSPropertyDescription")]
unsafe impl NSCoding for NSPropertyDescription {}
#[cfg(feature = "CoreData_NSPropertyDescription")]
unsafe impl NSCopying for NSPropertyDescription {}
#[cfg(feature = "CoreData_NSPropertyDescription")]
unsafe impl NSObjectProtocol for NSPropertyDescription {}
extern_methods!(
#[cfg(feature = "CoreData_NSPropertyDescription")]
unsafe impl NSPropertyDescription {
#[cfg(feature = "CoreData_NSEntityDescription")]
#[method_id(@__retain_semantics Other entity)]
pub unsafe fn entity(&self) -> Id<NSEntityDescription>;
#[cfg(feature = "Foundation_NSString")]
#[method_id(@__retain_semantics Other name)]
pub unsafe fn name(&self) -> Id<NSString>;
#[cfg(feature = "Foundation_NSString")]
#[method(setName:)]
pub unsafe fn setName(&self, name: &NSString);
#[method(isOptional)]
pub unsafe fn isOptional(&self) -> bool;
#[method(setOptional:)]
pub unsafe fn setOptional(&self, optional: bool);
#[method(isTransient)]
pub unsafe fn isTransient(&self) -> bool;
#[method(setTransient:)]
pub unsafe fn setTransient(&self, transient: bool);
#[cfg(all(feature = "Foundation_NSArray", feature = "Foundation_NSPredicate"))]
#[method_id(@__retain_semantics Other validationPredicates)]
pub unsafe fn validationPredicates(&self) -> Id<NSArray<NSPredicate>>;
#[cfg(feature = "Foundation_NSArray")]
#[method_id(@__retain_semantics Other validationWarnings)]
pub unsafe fn validationWarnings(&self) -> Id<NSArray>;
#[cfg(all(
feature = "Foundation_NSArray",
feature = "Foundation_NSPredicate",
feature = "Foundation_NSString"
))]
#[method(setValidationPredicates:withValidationWarnings:)]
pub unsafe fn setValidationPredicates_withValidationWarnings(
&self,
validation_predicates: Option<&NSArray<NSPredicate>>,
validation_warnings: Option<&NSArray<NSString>>,
);
#[cfg(feature = "Foundation_NSDictionary")]
#[method_id(@__retain_semantics Other userInfo)]
pub unsafe fn userInfo(&self) -> Option<Id<NSDictionary>>;
#[cfg(feature = "Foundation_NSDictionary")]
#[method(setUserInfo:)]
pub unsafe fn setUserInfo(&self, user_info: Option<&NSDictionary>);
#[deprecated = "Use NSEntityDescription.indexes instead"]
#[method(isIndexed)]
pub unsafe fn isIndexed(&self) -> bool;
#[deprecated = "Use NSEntityDescription.indexes instead"]
#[method(setIndexed:)]
pub unsafe fn setIndexed(&self, indexed: bool);
#[cfg(feature = "Foundation_NSData")]
#[method_id(@__retain_semantics Other versionHash)]
pub unsafe fn versionHash(&self) -> Id<NSData>;
#[cfg(feature = "Foundation_NSString")]
#[method_id(@__retain_semantics Other versionHashModifier)]
pub unsafe fn versionHashModifier(&self) -> Option<Id<NSString>>;
#[cfg(feature = "Foundation_NSString")]
#[method(setVersionHashModifier:)]
pub unsafe fn setVersionHashModifier(&self, version_hash_modifier: Option<&NSString>);
#[method(isIndexedBySpotlight)]
pub unsafe fn isIndexedBySpotlight(&self) -> bool;
#[method(setIndexedBySpotlight:)]
pub unsafe fn setIndexedBySpotlight(&self, indexed_by_spotlight: bool);
#[deprecated = "Spotlight integration is deprecated. Use CoreSpotlight integration instead."]
#[method(isStoredInExternalRecord)]
pub unsafe fn isStoredInExternalRecord(&self) -> bool;
#[deprecated = "Spotlight integration is deprecated. Use CoreSpotlight integration instead."]
#[method(setStoredInExternalRecord:)]
pub unsafe fn setStoredInExternalRecord(&self, stored_in_external_record: bool);
#[cfg(feature = "Foundation_NSString")]
#[method_id(@__retain_semantics Other renamingIdentifier)]
pub unsafe fn renamingIdentifier(&self) -> Option<Id<NSString>>;
#[cfg(feature = "Foundation_NSString")]
#[method(setRenamingIdentifier:)]
pub unsafe fn setRenamingIdentifier(&self, renaming_identifier: Option<&NSString>);
}
);
extern_methods!(
#[cfg(feature = "CoreData_NSPropertyDescription")]
unsafe impl NSPropertyDescription {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Id<Self>;
}
);