01: // Copyright 2007 The Apache Software Foundation
02: //
03: // Licensed under the Apache License, Version 2.0 (the "License");
04: // you may not use this file except in compliance with the License.
05: // You may obtain a copy of the License at
06: //
07: // http://www.apache.org/licenses/LICENSE-2.0
08: //
09: // Unless required by applicable law or agreed to in writing, software
10: // distributed under the License is distributed on an "AS IS" BASIS,
11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12: // See the License for the specific language governing permissions and
13: // limitations under the License.
14:
15: package org.apache.tapestry.integration.app1.data;
16:
17: /** One track from a music library. */
18: public class Track implements SimpleTrack {
19: private String _album;
20:
21: private String _artist;
22:
23: private String _genre;
24:
25: private int _playCount;
26:
27: private String _title;
28:
29: private int _rating;
30:
31: public String getTitle() {
32: return _title;
33: }
34:
35: public String getAlbum() {
36: return _album;
37: }
38:
39: public String getArtist() {
40: return _artist;
41: }
42:
43: public String getGenre() {
44: return _genre;
45: }
46:
47: public int getPlayCount() {
48: return _playCount;
49: }
50:
51: /** Rating as a value between 0 and 100. */
52: public int getRating() {
53: return _rating;
54: }
55:
56: public void setAlbum(String album) {
57: _album = album;
58: }
59:
60: public void setArtist(String artist) {
61: _artist = artist;
62: }
63:
64: public void setGenre(String genre) {
65: _genre = genre;
66: }
67:
68: public void setPlayCount(int playCount) {
69: _playCount = playCount;
70: }
71:
72: public void setRating(int rating) {
73: _rating = rating;
74: }
75:
76: public void setTitle(String title) {
77: _title = title;
78: }
79:
80: }
|