1   package ch.ige.edossier.web.vo;
2   
3   import java.io.Serializable;
4   
5   /**
6    * B32.03 - eDossier-Interceptions - Diplomarbeit an der Software-Schule Schweiz<br>
7    * Value-Object: Kapselt die Daten eines Bildes.
8    * <p>
9    * Copyright (c) 2004, Eidgenössisches Institut für Geistiges Eigentum
10   * @author    Anita Rueegsegger, Marc Bouquet
11   * @version   $Id: ImageVO.java,v 1.3 2004/10/22 01:58:20 bouquet Exp $
12   */
13  public class ImageVO implements Serializable
14  {
15    private byte[] image = null;
16    private String imageWidth = null;
17    private String imageHeight = null;
18    private String imagePath = null;
19    private String imageType = null;
20    private String thumbsWidth = null;
21    private String thumbsHeight = null;
22    private boolean isThumbs = false;
23  
24    /**
25     * Gibt den Inhalt des ValueObject ImageVO zurück
26     * @return Inhalt von ImageVO
27     */
28    public String toString()
29    {
30      StringBuffer buf = new StringBuffer();
31  
32      buf.append( " image        = <" + this.image + ">\n" );
33      buf.append( " imageWidth   = <" + this.imageWidth + ">\n" );
34      buf.append( " imageHeight  = <" + this.imageHeight + ">\n" );
35      buf.append( " imagePath    = <" + this.imagePath + ">\n" );
36      buf.append( " imageType    = <" + this.imageType + ">\n" );
37      buf.append( " thumbsWidth  = <" + this.thumbsWidth + ">\n" );
38      buf.append( " thumbsHeight = <" + this.thumbsHeight + ">\n" );
39      buf.append( " isThumbs     = <" + this.isThumbs + ">\n" );
40      return buf.toString();
41    }
42  
43    /*******************************************************************************************************************
44       G E T T E R - / S E T T E R - M E T H O D E N
45     *******************************************************************************************************************/
46  
47    public byte[] getImage()
48    {
49      return image;
50    }
51  
52    public String getImageHeight()
53    {
54      return imageHeight;
55    }
56  
57    public String getImagePath()
58    {
59      return imagePath;
60    }
61  
62    public String getImageType()
63    {
64      return imageType;
65    }
66  
67    public String getImageWidth()
68    {
69      return imageWidth;
70    }
71  
72    public boolean isIsThumbs()
73    {
74      return isThumbs;
75    }
76  
77    public String getThumbsHeight()
78    {
79      return thumbsHeight;
80    }
81  
82    public String getThumbsWidth()
83    {
84      return thumbsWidth;
85    }
86  
87    public void setThumbsWidth( String thumbsWidth )
88    {
89      this.thumbsWidth = thumbsWidth;
90    }
91  
92    public void setThumbsHeight( String thumbsHeight )
93    {
94      this.thumbsHeight = thumbsHeight;
95    }
96  
97    public void setIsThumbs( boolean isThumbs )
98    {
99      this.isThumbs = isThumbs;
100   }
101 
102   public void setImageWidth( String imageWidth )
103   {
104     this.imageWidth = imageWidth;
105   }
106 
107   public void setImageType( String imageType )
108   {
109     this.imageType = imageType;
110   }
111 
112   public void setImagePath( String imagePath )
113   {
114     this.imagePath = imagePath;
115   }
116 
117   public void setImageHeight( String imageHeight )
118   {
119     this.imageHeight = imageHeight;
120   }
121 
122   public void setImage( byte[] image )
123   {
124     this.image = image;
125   }
126 }
127