Package hec.data.location
Class LocationCategory
java.lang.Object
hec.data.location.LocationCategory
-
Constructor Summary
ConstructorsConstructorDescriptionLocationCategory(String categoryId) LocationCategory(String categoryId, String officeId) -
Method Summary
Modifier and TypeMethodDescriptionaddGroup(LocationGroup locationGroup) Adds or replaces a location group into this categories map.Adds or replaces a location group into this categories map.addGroup(String groupId, String groupDescription, String catOfficeId, String groupOfficeId, String sharedAlias, String sharedRef) Returns a single location group from this category by id.Returns this category's description.getId()Returns the category id.voidsetDescription(String description) Sets the description of this category id.voidsetOfficeId(String officeId) intsize()Returns a count of the location groups in this category.values()Returns a Collection containing the location groups in this category.
-
Constructor Details
-
LocationCategory
-
LocationCategory
-
-
Method Details
-
getId
Returns the category id. -
getOfficeId
-
setOfficeId
-
setDescription
Sets the description of this category id. -
getDescrpition
Returns this category's description. -
addGroup
-
addGroup
public LocationGroup addGroup(String groupId, String groupDescription, String catOfficeId, String groupOfficeId) Adds or replaces a location group into this categories map.- Parameters:
groupId- The location group. The group's id is used as the key.- Returns:
- The old location group with that id if it existed otherwise null.
-
addGroup
Adds or replaces a location group into this categories map.- Parameters:
groupId- The location group. The group's id is used as the key.- Returns:
- The old location group with that id if it existed otherwise null.
-
addGroup
-
size
public int size()Returns a count of the location groups in this category. -
values
Returns a Collection containing the location groups in this category.- Returns:
-
get
Returns a single location group from this category by id. Returns null if the group doesnt exist.
-