Package my.uum.model

Class LocationHierarchy

java.lang.Object
my.uum.model.LocationHierarchy

public class LocationHierarchy extends Object
Represents a hierarchical structure of locations in Malaysia.
  • Constructor Details

    • LocationHierarchy

      public LocationHierarchy()
      Creates a new LocationHierarchy instance.
  • Method Details

    • addLocation

      public void addLocation(String category, String name, String type)
      Adds a location to the hierarchy.
      Parameters:
      category - Category of the location
      name - Name of the location
      type - Type of the location
    • getCategory

      public Map<String,LocationHierarchy.LocationNode> getCategory(String category)
      Gets locations for a specific category.
      Parameters:
      category - Category name
      Returns:
      Map of locations in the category
    • getHierarchy

      Gets the complete hierarchy structure.
      Returns:
      Complete location hierarchy