1 27 28 package org.objectweb.speedo.pobjects.ref; 29 30 import java.util.Collection ; 31 32 public class Group { 33 34 public long oid; 35 36 public String name = null; 37 38 public Collection itsMembers = null; 39 40 public President itsPresident = null; 41 42 public Group() { 43 } 44 45 public Group(String itsName) { 46 name = itsName; 47 } 48 49 public Group(String itsName, President p) { 50 name = itsName; 51 itsPresident = p; 52 } 53 54 public long getOid() { 55 return oid; 56 } 57 58 public String getName() { 59 return name; 60 } 61 public void setName(String name) { 62 this.name = name; 63 } 64 65 public President getPresident() { 66 return itsPresident; 67 } 68 public void setPresident(President p) { 69 this.itsPresident = p; 70 } 71 72 public Collection getMembers() { 73 return itsMembers; 74 } 75 76 public void setMembers(Collection c) { 77 itsMembers = c; 78 } 79 80 public void addMember(Member m) { 81 itsMembers.add(m); 82 } 83 } 84 | Popular Tags |