All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bugvm.apple.addressbookui.ABPersonPredicateKeyPath Maven / Gradle / Ivy

There is a newer version: 1.2.9
Show newest version
/*
 * Copyright (C) 2013-2015 RoboVM AB
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.bugvm.apple.addressbookui;

/**/
import java.io.*;
import java.nio.*;
import java.util.*;
import com.bugvm.objc.*;
import com.bugvm.objc.annotation.*;
import com.bugvm.objc.block.*;
import com.bugvm.rt.*;
import com.bugvm.rt.annotation.*;
import com.bugvm.rt.bro.*;
import com.bugvm.rt.bro.annotation.*;
import com.bugvm.rt.bro.ptr.*;
import com.bugvm.apple.foundation.*;
import com.bugvm.apple.uikit.*;
import com.bugvm.apple.addressbook.*;
/**/

/**/
/**/
/**/@Library("AddressBookUI") @StronglyLinked/**/
@Marshaler(/**/ABPersonPredicateKeyPath/**/.Marshaler.class)
/**/public/**/ class /**/ABPersonPredicateKeyPath/**/ 
    extends /**/NSPredicateKeyPath/**/
    /**//**/ {

    static { Bro.bind(/**/ABPersonPredicateKeyPath/**/.class); }

    /**/
    public static class Marshaler {
        @MarshalsPointer
        public static ABPersonPredicateKeyPath toObject(Class cls, long handle, long flags) {
            NSString o = (NSString) NSObject.Marshaler.toObject(NSString.class, handle, flags);
            if (o == null) {
                return null;
            }
            return ABPersonPredicateKeyPath.valueOf(o);
        }
        @MarshalsPointer
        public static long toNative(ABPersonPredicateKeyPath o, long flags) {
            if (o == null) {
                return 0L;
            }
            return NSObject.Marshaler.toNative(o.value(), flags);
        }
    }
    public static class AsListMarshaler {
        @SuppressWarnings("unchecked")
        @MarshalsPointer
        public static List toObject(Class cls, long handle, long flags) {
            NSArray o = (NSArray) NSObject.Marshaler.toObject(NSArray.class, handle, flags);
            if (o == null) {
                return null;
            }
            List list = new ArrayList<>();
            for (int i = 0; i < o.size(); i++) {
                list.add(ABPersonPredicateKeyPath.valueOf(o.get(i)));
            }
            return list;
        }
        @MarshalsPointer
        public static long toNative(List l, long flags) {
            if (l == null) {
                return 0L;
            }
            NSArray array = new NSMutableArray<>();
            for (ABPersonPredicateKeyPath o : l) {
                array.add(o.value());
            }
            return NSObject.Marshaler.toNative(array, flags);
        }
    }
    /**/

    /**/
    /**
     * @since Available in iOS 8.0 and later.
     */
    public static final ABPersonPredicateKeyPath NamePrefix = new ABPersonPredicateKeyPath("NamePrefix");
    /**
     * @since Available in iOS 8.0 and later.
     */
    public static final ABPersonPredicateKeyPath GivenName = new ABPersonPredicateKeyPath("GivenName");
    /**
     * @since Available in iOS 8.0 and later.
     */
    public static final ABPersonPredicateKeyPath MiddleName = new ABPersonPredicateKeyPath("MiddleName");
    /**
     * @since Available in iOS 8.0 and later.
     */
    public static final ABPersonPredicateKeyPath FamilyName = new ABPersonPredicateKeyPath("FamilyName");
    /**
     * @since Available in iOS 8.0 and later.
     */
    public static final ABPersonPredicateKeyPath NameSuffix = new ABPersonPredicateKeyPath("NameSuffix");
    /**
     * @since Available in iOS 8.0 and later.
     */
    public static final ABPersonPredicateKeyPath PreviousFamilyName = new ABPersonPredicateKeyPath("PreviousFamilyName");
    /**
     * @since Available in iOS 8.0 and later.
     */
    public static final ABPersonPredicateKeyPath Nickname = new ABPersonPredicateKeyPath("Nickname");
    /**
     * @since Available in iOS 8.0 and later.
     */
    public static final ABPersonPredicateKeyPath PhoneticGivenName = new ABPersonPredicateKeyPath("PhoneticGivenName");
    /**
     * @since Available in iOS 8.0 and later.
     */
    public static final ABPersonPredicateKeyPath PhoneticMiddleName = new ABPersonPredicateKeyPath("PhoneticMiddleName");
    /**
     * @since Available in iOS 8.0 and later.
     */
    public static final ABPersonPredicateKeyPath PhoneticFamilyName = new ABPersonPredicateKeyPath("PhoneticFamilyName");
    /**
     * @since Available in iOS 8.0 and later.
     */
    public static final ABPersonPredicateKeyPath OrganizationName = new ABPersonPredicateKeyPath("OrganizationName");
    /**
     * @since Available in iOS 8.0 and later.
     */
    public static final ABPersonPredicateKeyPath DepartmentName = new ABPersonPredicateKeyPath("DepartmentName");
    /**
     * @since Available in iOS 8.0 and later.
     */
    public static final ABPersonPredicateKeyPath JobTitle = new ABPersonPredicateKeyPath("JobTitle");
    /**
     * @since Available in iOS 8.0 and later.
     */
    public static final ABPersonPredicateKeyPath Birthday = new ABPersonPredicateKeyPath("Birthday");
    /**
     * @since Available in iOS 8.0 and later.
     */
    public static final ABPersonPredicateKeyPath Note = new ABPersonPredicateKeyPath("Note");
    /**
     * @since Available in iOS 8.0 and later.
     */
    public static final ABPersonPredicateKeyPath PhoneNumbers = new ABPersonPredicateKeyPath("PhoneNumbers");
    /**
     * @since Available in iOS 8.0 and later.
     */
    public static final ABPersonPredicateKeyPath EmailAddresses = new ABPersonPredicateKeyPath("EmailAddresses");
    /**
     * @since Available in iOS 8.0 and later.
     */
    public static final ABPersonPredicateKeyPath UrlAddresses = new ABPersonPredicateKeyPath("UrlAddresses");
    /**
     * @since Available in iOS 8.0 and later.
     */
    public static final ABPersonPredicateKeyPath Dates = new ABPersonPredicateKeyPath("Dates");
    /**
     * @since Available in iOS 8.0 and later.
     */
    public static final ABPersonPredicateKeyPath InstantMessageAddresses = new ABPersonPredicateKeyPath("InstantMessageAddresses");
    /**
     * @since Available in iOS 8.0 and later.
     */
    public static final ABPersonPredicateKeyPath RelatedNames = new ABPersonPredicateKeyPath("RelatedNames");
    /**
     * @since Available in iOS 8.0 and later.
     */
    public static final ABPersonPredicateKeyPath SocialProfiles = new ABPersonPredicateKeyPath("SocialProfiles");
    /**
     * @since Available in iOS 8.0 and later.
     */
    public static final ABPersonPredicateKeyPath PostalAddresses = new ABPersonPredicateKeyPath("PostalAddresses");
    /**/
    
    private static /**/ABPersonPredicateKeyPath/**/[] values = new /**/ABPersonPredicateKeyPath/**/[] {/**/NamePrefix, GivenName, MiddleName, FamilyName, NameSuffix, PreviousFamilyName, Nickname, PhoneticGivenName, PhoneticMiddleName, PhoneticFamilyName, OrganizationName, DepartmentName, JobTitle, Birthday, Note, PhoneNumbers, EmailAddresses, UrlAddresses, Dates, InstantMessageAddresses, RelatedNames, SocialProfiles, PostalAddresses/**/};
    
    /**/ABPersonPredicateKeyPath/**/ (String getterName) {
        super(Values.class, getterName);
    }
    
    public static /**/ABPersonPredicateKeyPath/**/ valueOf(/**/NSString/**/ value) {
        for (/**/ABPersonPredicateKeyPath/**/ v : values) {
            if (v.value().equals(value)) {
                return v;
            }
        }
        throw new IllegalArgumentException("No constant with value " + value + " found in " 
            + /**/ABPersonPredicateKeyPath/**/.class.getName());
    }
    
    /**//**/
    
    /**/@Library("AddressBookUI") @StronglyLinked/**/
    public static class Values {
    	static { Bro.bind(Values.class); }

        /**/
        /**
         * @since Available in iOS 8.0 and later.
         */
        @GlobalValue(symbol="ABPersonNamePrefixProperty", optional=true)
        public static native NSString NamePrefix();
        /**
         * @since Available in iOS 8.0 and later.
         */
        @GlobalValue(symbol="ABPersonGivenNameProperty", optional=true)
        public static native NSString GivenName();
        /**
         * @since Available in iOS 8.0 and later.
         */
        @GlobalValue(symbol="ABPersonMiddleNameProperty", optional=true)
        public static native NSString MiddleName();
        /**
         * @since Available in iOS 8.0 and later.
         */
        @GlobalValue(symbol="ABPersonFamilyNameProperty", optional=true)
        public static native NSString FamilyName();
        /**
         * @since Available in iOS 8.0 and later.
         */
        @GlobalValue(symbol="ABPersonNameSuffixProperty", optional=true)
        public static native NSString NameSuffix();
        /**
         * @since Available in iOS 8.0 and later.
         */
        @GlobalValue(symbol="ABPersonPreviousFamilyNameProperty", optional=true)
        public static native NSString PreviousFamilyName();
        /**
         * @since Available in iOS 8.0 and later.
         */
        @GlobalValue(symbol="ABPersonNicknameProperty", optional=true)
        public static native NSString Nickname();
        /**
         * @since Available in iOS 8.0 and later.
         */
        @GlobalValue(symbol="ABPersonPhoneticGivenNameProperty", optional=true)
        public static native NSString PhoneticGivenName();
        /**
         * @since Available in iOS 8.0 and later.
         */
        @GlobalValue(symbol="ABPersonPhoneticMiddleNameProperty", optional=true)
        public static native NSString PhoneticMiddleName();
        /**
         * @since Available in iOS 8.0 and later.
         */
        @GlobalValue(symbol="ABPersonPhoneticFamilyNameProperty", optional=true)
        public static native NSString PhoneticFamilyName();
        /**
         * @since Available in iOS 8.0 and later.
         */
        @GlobalValue(symbol="ABPersonOrganizationNameProperty", optional=true)
        public static native NSString OrganizationName();
        /**
         * @since Available in iOS 8.0 and later.
         */
        @GlobalValue(symbol="ABPersonDepartmentNameProperty", optional=true)
        public static native NSString DepartmentName();
        /**
         * @since Available in iOS 8.0 and later.
         */
        @GlobalValue(symbol="ABPersonJobTitleProperty", optional=true)
        public static native NSString JobTitle();
        /**
         * @since Available in iOS 8.0 and later.
         */
        @GlobalValue(symbol="ABPersonBirthdayProperty", optional=true)
        public static native NSString Birthday();
        /**
         * @since Available in iOS 8.0 and later.
         */
        @GlobalValue(symbol="ABPersonNoteProperty", optional=true)
        public static native NSString Note();
        /**
         * @since Available in iOS 8.0 and later.
         */
        @GlobalValue(symbol="ABPersonPhoneNumbersProperty", optional=true)
        public static native NSString PhoneNumbers();
        /**
         * @since Available in iOS 8.0 and later.
         */
        @GlobalValue(symbol="ABPersonEmailAddressesProperty", optional=true)
        public static native NSString EmailAddresses();
        /**
         * @since Available in iOS 8.0 and later.
         */
        @GlobalValue(symbol="ABPersonUrlAddressesProperty", optional=true)
        public static native NSString UrlAddresses();
        /**
         * @since Available in iOS 8.0 and later.
         */
        @GlobalValue(symbol="ABPersonDatesProperty", optional=true)
        public static native NSString Dates();
        /**
         * @since Available in iOS 8.0 and later.
         */
        @GlobalValue(symbol="ABPersonInstantMessageAddressesProperty", optional=true)
        public static native NSString InstantMessageAddresses();
        /**
         * @since Available in iOS 8.0 and later.
         */
        @GlobalValue(symbol="ABPersonRelatedNamesProperty", optional=true)
        public static native NSString RelatedNames();
        /**
         * @since Available in iOS 8.0 and later.
         */
        @GlobalValue(symbol="ABPersonSocialProfilesProperty", optional=true)
        public static native NSString SocialProfiles();
        /**
         * @since Available in iOS 8.0 and later.
         */
        @GlobalValue(symbol="ABPersonPostalAddressesProperty", optional=true)
        public static native NSString PostalAddresses();
        /**/
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy