01: /**
02: * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE, version 2.1, dated February 1999.
03: *
04: * This program is free software; you can redistribute it and/or modify
05: * it under the terms of the latest version of the GNU Lesser General
06: * Public License as published by the Free Software Foundation;
07: *
08: * This program is distributed in the hope that it will be useful,
09: * but WITHOUT ANY WARRANTY; without even the implied warranty of
10: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11: * GNU Lesser General Public License for more details.
12: *
13: * You should have received a copy of the GNU Lesser General Public License
14: * along with this program (LICENSE.txt); if not, write to the Free Software
15: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16: */package org.jamwiki.model;
17:
18: import org.jamwiki.utils.WikiLogger;
19:
20: /**
21: * Provides an object representing a Wiki image.
22: */
23: public class WikiImage extends WikiFile {
24:
25: private static final WikiLogger logger = WikiLogger
26: .getLogger(WikiImage.class.getName());
27: private int fileVersionId = -1;
28: private int height = -1;
29: private int width = -1;
30:
31: /**
32: *
33: */
34: public WikiImage() {
35: }
36:
37: /**
38: *
39: */
40: public WikiImage(WikiFile wikiFile) {
41: super (wikiFile);
42: }
43:
44: /**
45: *
46: */
47: public int getFileVersionId() {
48: return this .fileVersionId;
49: }
50:
51: /**
52: *
53: */
54: public void setFileVersionId(int fileVersionId) {
55: this .fileVersionId = fileVersionId;
56: }
57:
58: /**
59: *
60: */
61: public int getHeight() {
62: return this .height;
63: }
64:
65: /**
66: *
67: */
68: public void setHeight(int height) {
69: this .height = height;
70: }
71:
72: /**
73: *
74: */
75: public int getWidth() {
76: return this .width;
77: }
78:
79: /**
80: *
81: */
82: public void setWidth(int width) {
83: this.width = width;
84: }
85: }
|