@MarshalsPointer public static NSURLFileProperty toObject(Class<NSURLFileProperty> cls, long handle, long flags) { NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags); if (o == null) { return null; } return NSURLFileProperty.valueOf(o); } @MarshalsPointer
@MarshalsPointer public static NSURLFileProperty toObject(Class<NSURLFileProperty> cls, long handle, long flags) { NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags); if (o == null) { return null; } return NSURLFileProperty.valueOf(o); } @MarshalsPointer
@SuppressWarnings("unchecked") @MarshalsPointer public static List<NSURLFileProperty> toObject(Class<? extends NSObject> cls, long handle, long flags) { NSArray<NSString> o = (NSArray<NSString>) NSObject.Marshaler.toObject(NSArray.class, handle, flags); if (o == null) { return null; } List<NSURLFileProperty> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(NSURLFileProperty.valueOf(o.get(i))); } return list; } @MarshalsPointer
@SuppressWarnings("unchecked") @MarshalsPointer public static List<NSURLFileProperty> toObject(Class<? extends NSObject> cls, long handle, long flags) { NSArray<NSString> o = (NSArray<NSString>) NSObject.Marshaler.toObject(NSArray.class, handle, flags); if (o == null) { return null; } List<NSURLFileProperty> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(NSURLFileProperty.valueOf(o.get(i))); } return list; } @MarshalsPointer
public static NSURLProperty valueOf(NSString value) { NSURLProperty property = null; property = NSURLFileProperty.valueOf(value); if (property != null) return property; property = NSURLFileSystemProperty.valueOf(value); if (property != null) return property; property = NSURLVolumeProperty.valueOf(value); if (property != null) return property; property = NSURLUbiquitousItemProperty.valueOf(value); return property; } /*</methods>*/
public static NSURLProperty valueOf(NSString value) { NSURLProperty property = null; property = NSURLFileProperty.valueOf(value); if (property != null) return property; property = NSURLFileSystemProperty.valueOf(value); if (property != null) return property; property = NSURLVolumeProperty.valueOf(value); if (property != null) return property; property = NSURLUbiquitousItemProperty.valueOf(value); return property; } /*</methods>*/