1 17 18 package org.objectweb.jac.samples.photos; 19 20 import java.util.HashSet ; 21 import java.util.Set ; 22 23 import org.objectweb.jac.aspects.user.Profile; 24 25 public class Person { 26 27 30 String lastName = ""; 31 public void setLastName(String value) { 32 this.lastName=value; 33 } 34 public String getLastName() { 35 return lastName; 36 } 37 38 41 String firstName = ""; 42 public void setFirstName(String value) { 43 this.firstName=value; 44 } 45 public String getFirstName() { 46 return firstName; 47 } 48 49 52 String email; 53 public void setEmail(String value) { 54 this.email=value; 55 } 56 public String getEmail() { 57 return email; 58 } 59 60 63 String password; 64 public String getPassword() { 65 return password; 66 } 67 public void setPassword(String v) { 68 this.password = v; 69 } 70 71 Profile profile; 72 public Profile getProfile() { 73 return profile; 74 } 75 public void setProfile(Profile v) { 76 this.profile = v; 77 } 78 79 public Person() { 80 } 81 82 public Person(String firstName, String lastName, 83 String email, String password) { 84 this.firstName = firstName; 85 this.lastName = lastName; 86 this.email = email; 87 this.password = password; 88 } 89 90 HashSet photos = new HashSet (); 91 92 96 public Set getPhotos() { 97 return photos; 98 } 99 100 104 public void addPhoto(Photo photo) { 105 photos.add(photo); 106 } 107 108 112 public void removePhoto(Photo photo) { 113 photos.remove(photo); 114 } 115 116 } 117 | Popular Tags |