Class NSPersonNameComponentsFormatter

    • Constructor Detail

      • NSPersonNameComponentsFormatter

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • automaticallyNotifiesObserversForKey

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

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

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

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

        @NotNull
        public static @NotNull 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()
      • 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

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • localizedStringFromPersonNameComponentsStyleOptions

        @NotNull
        public static @NotNull java.lang.String localizedStringFromPersonNameComponentsStyleOptions​(@NotNull
                                                                                                    @NotNull NSPersonNameComponents components,
                                                                                                    long nameFormatStyle,
                                                                                                    long nameOptions)
        Shortcut for converting an NSPersonNameComponents object into a string without explicitly creating an instance. Create an instance for greater customizability.
      • 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()
      • annotatedStringFromPersonNameComponents

        @NotNull
        public @NotNull NSAttributedString annotatedStringFromPersonNameComponents​(@NotNull
                                                                                   @NotNull NSPersonNameComponents components)
        Returns attributed string with annotations for each component. For each range, attributes can be obtained by querying dictionary key NSPersonNameComponentKey , using NSPersonNameComponent constant values.
      • getObjectValueForStringErrorDescription

        public boolean getObjectValueForStringErrorDescription​(@Nullable
                                                               @Nullable org.moe.natj.general.ptr.Ptr<org.moe.natj.objc.ObjCObject> obj,
                                                               @NotNull
                                                               @NotNull java.lang.String string,
                                                               @Nullable
                                                               @Nullable org.moe.natj.general.ptr.Ptr<NSString> error)
        Overrides:
        getObjectValueForStringErrorDescription in class NSFormatter
      • isPhonetic

        public boolean isPhonetic()
        Specify that the formatter should only format the components object's phoneticRepresentation
      • setPhonetic

        public void setPhonetic​(boolean value)
        Specify that the formatter should only format the components object's phoneticRepresentation
      • personNameComponentsFromString

        @Nullable
        public @Nullable NSPersonNameComponents personNameComponentsFromString​(@NotNull
                                                                               @NotNull java.lang.String string)
        Convenience method on getObjectValue:forString:error:. Returns an NSPersonNameComponents object representing the name components found in the provided string. API-Since: 10.0
      • setStyle

        public void setStyle​(long value)
        Specify the formatting style for the formatted string on an instance. ShortStyle will fall back to user preferences and language-specific defaults
      • stringFromPersonNameComponents

        @NotNull
        public @NotNull java.lang.String stringFromPersonNameComponents​(@NotNull
                                                                        @NotNull NSPersonNameComponents components)
        Convenience method on stringForObjectValue:. Returns a string containing the formatted value of the provided components object.
      • style

        public long style()
        Specify the formatting style for the formatted string on an instance. ShortStyle will fall back to user preferences and language-specific defaults
      • locale

        public NSLocale locale()
        Specifies the locale to format names. Defaults to autoupdatingCurrentLocale. Also resets to autoupdatingCurrentLocale on assignment of nil. API-Since: 15.0
      • setLocale

        public void setLocale​(NSLocale value)
        Specifies the locale to format names. Defaults to autoupdatingCurrentLocale. Also resets to autoupdatingCurrentLocale on assignment of nil. API-Since: 15.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.