1 25 26 package org.objectweb.speedo.pobjects.fetchgroup; 27 28 31 public class Thesis extends Book { 32 33 Thesis reference; 34 String title; 35 University university; 36 37 public Thesis(int isbn, Author author, int pageNb, String title, Thesis reference, University university) { 38 super(isbn, author, pageNb, "thesis"); 39 this.title = title; 40 this.reference = reference; 41 this.university = university; 42 } 43 44 public Thesis getReference() { 45 return reference; 46 } 47 public void setReference(Thesis reference) { 48 this.reference = reference; 49 } 50 public String getTitle() { 51 return title; 52 } 53 public void setTitle(String title) { 54 this.title = title; 55 } 56 57 public String toString() { 58 return super.toString() + 59 "\n\t[title=" + title + ", reference=" + (reference == null?"no reference":reference.toString()); 60 } 61 public University getUniversity() { 62 return university; 63 } 64 public void setUniversity(University university) { 65 this.university = university; 66 } 67 } 68 | Popular Tags |