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()
      Returns:
      Icon name of the category.
    • getParent

      @Nullable public GLSearchCategory getParent()
      Returns parent category or null
      Returns:
      parent category
    • getChilds

      public GLSearchCategory[] getChilds()
      Returns:
      Child categories of the category.
    • getRefObject

      @NonNull public GLMapVectorObject getRefObject()
      Reference object that matches to this category
      Returns:
      object that matches to 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