Class NSMappingModel

  • All Implemented Interfaces:
    NSObject

    public class NSMappingModel
    extends NSObject
    • Constructor Detail

      • NSMappingModel

        protected NSMappingModel​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • inferredMappingModelForSourceModelDestinationModelError

        public static NSMappingModel inferredMappingModelForSourceModelDestinationModelError​(NSManagedObjectModel sourceModel,
                                                                                             NSManagedObjectModel destinationModel,
                                                                                             org.moe.natj.general.ptr.Ptr<NSError> error)
        Returns a newly created mapping model to translate data from the source to the destination model, if possible. The differences between the source and destination model are compared and if all changes are simple enough to be able to reasonably infer a data migration mapping model, such a model is created and returned. If the mapping model can not be created, nil is returned and an error code is returned to indicate why inferring a mapping model automatically failed.
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • mappingModelFromBundlesForSourceModelDestinationModel

        public static NSMappingModel mappingModelFromBundlesForSourceModelDestinationModel​(NSArray<? extends NSBundle> bundles,
                                                                                           NSManagedObjectModel sourceModel,
                                                                                           NSManagedObjectModel destinationModel)
        Returns the mapping model to translate data from the source to the destination model. This method is a companion to the mergedModelFromBundles: methods; in this case, the framework uses the version information from the models to locate the appropriate mapping model in the available bundles. If the mapping model for the models cannot be found, this method returns nil.
      • new_objc

        public static java.lang.Object new_objc()
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • version_static

        public static long version_static()
      • entityMappings

        public NSArray<? extends NSEntityMapping> entityMappings()
        Returns/sets the collection of entity mappings for the model. The order of the mappings dictates the order in which they will be processed during migration.
      • entityMappingsByName

        public NSDictionary<java.lang.String,​? extends NSEntityMapping> entityMappingsByName()
        Returns a dictionary of the entity mappings for the model, keyed by their respective name. (This API is provided for quick access to a mapping by name, rather than iterating the ordered entityMapping array.)
      • initWithContentsOfURL

        public NSMappingModel initWithContentsOfURL​(NSURL url)
        Loads the mapping model from the specified URL.
      • setEntityMappings

        public void setEntityMappings​(NSArray<? extends NSEntityMapping> value)
        Returns/sets the collection of entity mappings for the model. The order of the mappings dictates the order in which they will be processed during migration.