Class GLSearchCategories


  • public class GLSearchCategories
    extends globus.glmap.GLNativeObject
    GLSearchCategories class holds a set of `GLSearchCategory` that will be used to sort search results by priority.
    • Method Detail

      • getTop

        @NonNull
        public GLSearchCategory[] getTop()
        Returns:
        Returns top categories
      • getStartedWith

        @Nullable
        public GLSearchCategory[] getStartedWith​(@NonNull
                                                 java.lang.String[] words,
                                                 @NonNull
                                                 globus.glmap.GLMapLocaleSettings localeSettings)
        Returns categories that starts with given words
        Parameters:
        words - Words array
        localeSettings - Language priority settings
        Returns:
        Matched array of categories
      • findByName

        @Nullable
        public GLSearchCategory findByName​(@NonNull
                                           java.lang.String name)
        Parameters:
        name - name of category
        Returns:
        Returns category with given name.
      • findByIconName

        @Nullable
        public GLSearchCategory findByIconName​(@NonNull
                                               java.lang.String iconName)
        Parameters:
        iconName - Icon name
        Returns:
        Returns category with given name.