Package hec.data.tx

Class TsCategory

java.lang.Object
hec.data.tx.TsCategory

public class TsCategory extends Object
  • Constructor Details

    • TsCategory

      public TsCategory(String categoryId)
    • TsCategory

      public TsCategory(String categoryId, String officeId)
  • Method Details

    • getId

      public String getId()
      Returns the category id.
    • getOfficeId

      public String getOfficeId()
    • setOfficeId

      public void setOfficeId(String officeId)
    • setDescription

      public void setDescription(String description)
      Sets the description of this category id.
    • getDescrpition

      public String 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

      public void addGroup(TsGroup tsGroup)
    • size

      public int size()
      Returns a count of the location groups in this category.
    • values

      public Collection<TsGroup> values()
      Returns a Collection containing the location groups in this category.
      Returns:
    • get

      public TsGroup get(String groupId)
      Returns a single location group from this category by id. Returns null if the group doesnt exist.