public static /*<name>*/SecAttrProtocol/*</name>*/ valueOf(/*<type>*/CFType/*</type>*/ value) { for (/*<name>*/SecAttrProtocol/*</name>*/ v : values) { if (v.value().equals(value)) { return v; } } throw new IllegalArgumentException("No constant with value " + value + " found in " + /*<name>*/SecAttrProtocol/*</name>*/.class.getName()); }
@MarshalsPointer public static SecAttrProtocol toObject(Class<SecAttrProtocol> cls, long handle, long flags) { CFType o = (CFType) CFType.Marshaler.toObject(CFType.class, handle, flags); if (o == null) { return null; } return SecAttrProtocol.valueOf(o); } @MarshalsPointer
/** * @since Available in iOS 2.0 and later. */ public SecAttributes setProtocol(SecAttrProtocol protocol) { set(Keys.Protocol(), protocol.value()); return this; } /**
@MarshalsPointer public static List<SecAttrProtocol> toObject(Class<? extends CFType> cls, long handle, long flags) { CFArray o = (CFArray) CFType.Marshaler.toObject(CFArray.class, handle, flags); if (o == null) { return null; } List<SecAttrProtocol> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(SecAttrProtocol.valueOf(o.get(i, CFType.class))); } return list; } @MarshalsPointer
@MarshalsPointer public static long toNative(SecAttrProtocol o, long flags) { if (o == null) { return 0L; } return CFType.Marshaler.toNative(o.value(), flags); } }
/** * @since Available in iOS 2.0 and later. */ public SecAttrProtocol getProtocol() { if (has(Keys.Protocol())) { CFType val = get(Keys.Protocol(), CFType.class); return SecAttrProtocol.valueOf(val); } return null; } /**
@MarshalsPointer public static long toNative(List<SecAttrProtocol> l, long flags) { if (l == null) { return 0L; } CFArray array = CFMutableArray.create(); for (SecAttrProtocol o : l) { array.add(o.value()); } return CFType.Marshaler.toNative(array, flags); } }
@MarshalsPointer public static SecAttrProtocol toObject(Class<SecAttrProtocol> cls, long handle, long flags) { CFType o = (CFType) CFType.Marshaler.toObject(CFType.class, handle, flags); if (o == null) { return null; } return SecAttrProtocol.valueOf(o); } @MarshalsPointer
public static /*<name>*/SecAttrProtocol/*</name>*/ valueOf(/*<type>*/CFType/*</type>*/ value) { for (/*<name>*/SecAttrProtocol/*</name>*/ v : values) { if (v.value().equals(value)) { return v; } } throw new IllegalArgumentException("No constant with value " + value + " found in " + /*<name>*/SecAttrProtocol/*</name>*/.class.getName()); }
@MarshalsPointer public static SecAttrProtocol toObject(Class<SecAttrProtocol> cls, long handle, long flags) { CFType o = (CFType) CFType.Marshaler.toObject(CFType.class, handle, flags); if (o == null) { return null; } return SecAttrProtocol.valueOf(o); } @MarshalsPointer
public static /*<name>*/SecAttrProtocol/*</name>*/ valueOf(/*<type>*/CFType/*</type>*/ value) { for (/*<name>*/SecAttrProtocol/*</name>*/ v : values) { if (v.value().equals(value)) { return v; } } throw new IllegalArgumentException("No constant with value " + value + " found in " + /*<name>*/SecAttrProtocol/*</name>*/.class.getName()); }
@MarshalsPointer public static List<SecAttrProtocol> toObject(Class<? extends CFType> cls, long handle, long flags) { CFArray o = (CFArray) CFType.Marshaler.toObject(CFArray.class, handle, flags); if (o == null) { return null; } List<SecAttrProtocol> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(SecAttrProtocol.valueOf(o.get(i, CFType.class))); } return list; } @MarshalsPointer
@MarshalsPointer public static long toNative(SecAttrProtocol o, long flags) { if (o == null) { return 0L; } return CFType.Marshaler.toNative(o.value(), flags); } }
@MarshalsPointer public static List<SecAttrProtocol> toObject(Class<? extends CFType> cls, long handle, long flags) { CFArray o = (CFArray) CFType.Marshaler.toObject(CFArray.class, handle, flags); if (o == null) { return null; } List<SecAttrProtocol> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(SecAttrProtocol.valueOf(o.get(i, CFType.class))); } return list; } @MarshalsPointer
/** * @since Available in iOS 2.0 and later. */ public SecAttributes setProtocol(SecAttrProtocol protocol) { set(Keys.Protocol(), protocol.value()); return this; } /**
/** * @since Available in iOS 2.0 and later. */ public SecAttrProtocol getProtocol() { if (has(Keys.Protocol())) { CFType val = get(Keys.Protocol(), CFType.class); return SecAttrProtocol.valueOf(val); } return null; } /**
/** * @since Available in iOS 2.0 and later. */ public SecAttributes setProtocol(SecAttrProtocol protocol) { set(Keys.Protocol(), protocol.value()); return this; } /**
/** * @since Available in iOS 2.0 and later. */ public SecAttrProtocol getProtocol() { if (has(Keys.Protocol())) { CFType val = get(Keys.Protocol(), CFType.class); return SecAttrProtocol.valueOf(val); } return null; } /**
@MarshalsPointer public static long toNative(SecAttrProtocol o, long flags) { if (o == null) { return 0L; } return CFType.Marshaler.toNative(o.value(), flags); } }
@MarshalsPointer public static long toNative(List<SecAttrProtocol> l, long flags) { if (l == null) { return 0L; } CFArray array = CFMutableArray.create(); for (SecAttrProtocol o : l) { array.add(o.value()); } return CFType.Marshaler.toNative(array, flags); } }