Category.java 835 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. package classes;
  2. import java.util.ArrayList;
  3. public class Category{
  4. private int ID;
  5. private ArrayList<CpsObject> objects;
  6. private String name;
  7. public Category(String name){
  8. setObjects(new ArrayList<CpsObject>());
  9. setName(name);
  10. setID(-1);
  11. }
  12. /**
  13. * @return the id
  14. */
  15. public int getID() {
  16. return ID;
  17. }
  18. /**
  19. * @param id the id to set
  20. */
  21. public void setID(int id) {
  22. this.ID = id;
  23. }
  24. /**
  25. * @return the objects
  26. */
  27. public ArrayList<CpsObject> getObjects() {
  28. return objects;
  29. }
  30. /**
  31. * @param objects the objects to set
  32. */
  33. public void setObjects(ArrayList<CpsObject> objects) {
  34. this.objects = objects;
  35. }
  36. /**
  37. * @return the name
  38. */
  39. public String getName() {
  40. return name;
  41. }
  42. /**
  43. * @param name the name to set
  44. */
  45. public void setName(String name) {
  46. this.name = name;
  47. }
  48. }