Class GLSearchCategory

java.lang.Object
globus.glmap.GLNativeObject
globus.glsearch.GLSearchCategory

public class GLSearchCategory extends GLNativeObject
GLSearchCategory holds information about category that can be displayed to user.
  • Method Details

    • localizedName

      @Nullable public GLMapValue localizedName(GLMapLocaleSettings localeSettings)
      Returns name of the category according language priority settings. It checks for translated name from first language in priority list to the last one until first translated name is found.
      Parameters:
      localeSettings - language order settings
      Returns:
      localised name of the category.
    • getIconName

      @Nullable public String getIconName()
      Retrieves the icon name of the category.
      Returns:
      The icon name as a String, or null if no icon is associated with the category.
    • getParent

      @Nullable public GLSearchCategory getParent()
      Retrieves the parent category of this category.
      Returns:
      The parent GLSearchCategory, or null if this category has no parent.
    • getChilds

      public GLSearchCategory[] getChilds()
      Retrieves the child categories of this category.
      Returns:
      An array of GLSearchCategory objects representing the child categories.
    • getRefObject

      @NonNull public GLMapVectorObject getRefObject()
      Retrieves the reference object that matches this category.
      Returns:
      A GLMapVectorObject associated with this category.
    • fillObjectCategory

      public void fillObjectCategory(@NonNull GLMapVectorObject object)
      Fills category information for vector object using it's tags
      Parameters:
      object - Vector object to fill category
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(@Nullable Object obj)
      Overrides:
      equals in class Object