/Users/lyon/j4p/src/xml/musicCatalog/Item.java
|
1 /**
2 * Item.java
3 * @author Thomas Rowland
4 * @version 02-08-03
5 */
6 package xml.musicCatalog;
7
8 import java.util.Vector;
9
10 /*
11 * Item object for the MusicCatalog
12 */
13
14 public class Item {
15 String media = null;
16 String artist = null;
17 String title = null;
18 String year = null;
19 Vector members = new Vector();
20
21 /*
22 * package-scoped constructor
23 */
24 Item() {
25 }
26
27 public void setMedia(String _media) {
28 media = _media;
29 }
30
31 public String getMedia() {
32 return media;
33 }
34
35 public void setArtist(String _artist) {
36 artist = _artist;
37 }
38
39 public String getArtist() {
40 return artist;
41 }
42
43 public void setTitle(String _title) {
44 title = _title;
45 }
46
47 public String getTitle() {
48 return title;
49 }
50
51 public void setYear(String _year) {
52 year = _year;
53 }
54
55 public String getYear() {
56 return year;
57 }
58
59 public void setMember(String _member) {
60 members.add(_member);
61 }
62
63 public Vector getMembers() {
64 return members;
65 }
66
67 }//
68