public CNLabeledValue(String label, T value) { super((SkipInit)null); initObject(init(label, convertValue(value))); } public CNLabeledValue(CNLabel label, T value) {
public CNLabeledValue<T> setValue(T value) { return setValue(convertValue(value)); } public CNLabeledValue<T> setLabelAndValue(String label, T value) {
public CNLabeledValue(CNLabel label, T value) { super((SkipInit)null); initObject(init(label.value().toString(), convertValue(value))); }
public CNInstantMessageAddress(String username, CNInstantMessageService service) { super((SkipInit) null); initObject(init(username, service.value().toString())); } /*<properties>*/
public CNSocialProfile(String urlString, String username, String userIdentifier, CNSocialProfileService service) { super((SkipInit) null); initObject(init(urlString, username, userIdentifier, service.value().toString())); } /*<properties>*/
public CNLabeledValue<T> setLabelAndValue(String label, T value) { return setLabelAndValue(label, convertValue(value)); }
public CNInstantMessageAddress(String username, String service) { super((SkipInit) null); initObject(init(username, service)); } /*</constructors>*/
public CNPhoneNumber(String string) { super((SkipInit) null); initObject(init(string)); } /*</constructors>*/
public CNContactRelation(String name) { super((SkipInit) null); initObject(init(name)); } /*</constructors>*/
public CNSocialProfile(String urlString, String username, String userIdentifier, String service) { super((SkipInit) null); initObject(init(urlString, username, userIdentifier, service)); } /*</constructors>*/
public CNLabeledValue<T> setLabelAndValue(CNLabel label, T value) { return setLabelAndValue(label.value().toString(), value); } public static String getLocalizedLabel(CNLabel label) {
public static String getLocalizedLabel(CNLabel label) { return getLocalizedLabel(label.value().toString()); } /*<properties>*/
@Method(selector = "localizedStringForService:") public static native String getLocalizedService(String service); /*</methods>*/
@Method(selector = "localizedStringForService:") public static native String getLocalizedService(String service); /*</methods>*/
public static NSAttributedString format(CNContact contact, CNContactFormatterStyle style, NSAttributedStringAttributes attributes) { return format(contact, style, attributes.getDictionary()); } public static NSAttributedString format(CNContact contact, CNContactFormatterStyle style, CTAttributedStringAttributes attributes) {
public T getValue() { NSObject value = getValue0(); if (value == null) { return null; } else if (value instanceof NSString) { return (T) value.toString(); } return (T) value; } public CNLabeledValue<T> setValue(T value) {
public static NSAttributedString format(CNPostalAddress postalAddress, CNPostalAddressFormatterStyle style, NSAttributedStringAttributes attributes) { return format(postalAddress, style, attributes.getDictionary()); } public static NSAttributedString format(CNPostalAddress postalAddress, CNPostalAddressFormatterStyle style, CTAttributedStringAttributes attributes) {
public NSAttributedString format(CNContact contact, NSAttributedStringAttributes attributes) { return format(contact, attributes.getDictionary()); } public NSAttributedString format(CNContact contact, CTAttributedStringAttributes attributes) {