Package hec.data.tx
Class TsCategory
java.lang.Object
hec.data.tx.TsCategory
-
Constructor Summary
ConstructorsConstructorDescriptionTsCategory(String categoryId) TsCategory(String categoryId, String officeId) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds or replaces a location group into this categories map.addGroup(String groupId, String groupDescription, String catOfficeId, String groupOfficeId, String aliasId, String refId) Adds or replaces a location group into this categories map.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
-
TsCategory
-
TsCategory
-
-
Method Details
-
getId
Returns the category id. -
getOfficeId
-
setOfficeId
-
setDescription
Sets the description of this category id. -
getDescrpition
Returns this category's description. -
addGroup
public TsGroup addGroup(String groupId, String groupDescription, String catOfficeId, String groupOfficeId, String aliasId, String refId) 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
public TsGroup addGroup(String groupId, String officeId, String groupDescription, String aliasId, String refId) 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.
-