View Javadoc

1   // Copyright (C) 2004, Brian Enigma <enigma at netninja.com>
2   // This file is part of iGallery.
3   //
4   // iGallery is free software; you can redistribute it and/or modify
5   // it under the terms of the GNU General Public License as published by
6   // the Free Software Foundation; either version 2 of the License, or
7   // (at your option) any later version.
8   //
9   // iGallery is distributed in the hope that it will be useful,
10  // but WITHOUT ANY WARRANTY; without even the implied warranty of
11  // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  // GNU General Public License for more details.
13  //
14  // You should have received a copy of the GNU General Public License
15  // along with Foobar; if not, write to the Free Software
16  // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17  package org.ninjasoft.igallery.data;
18  
19  /***
20   * Bean to hold fields related to a picture
21   * @author enigma
22   */
23  public class IPhotoPicture {
24      private Integer id = new Integer(0);
25      private String caption = "";
26      private String filename = "";
27      
28  	public String getCaption()                 {return caption;}
29  	public void setCaption(String caption)     {this.caption = caption;}
30  	public String getFilename()                {return filename;}
31  	public void setFilename(String filename)   {this.filename = filename;}
32  	public Integer getId()                     {return id;}
33  	public void setId(Integer id)              {this.id = id;}
34      public int getIdInt()                      {return id.intValue();}
35      public void setId(int id)                  {this.id = new Integer(id);}
36      public String toString()                   {return id.toString() + "::" + caption + "::" + filename;}
37  }