| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| ImageDescriptor |
|
| 1.0;1 |
| 1 | package org.jtheque.core.managers.resource; | |
| 2 | ||
| 3 | /* | |
| 4 | * This file is part of JTheque. | |
| 5 | * | |
| 6 | * JTheque is free software: you can redistribute it and/or modify | |
| 7 | * it under the terms of the GNU General Public License as published by | |
| 8 | * the Free Software Foundation, either version 3 of the License. | |
| 9 | * | |
| 10 | * JTheque is distributed in the hope that it will be useful, | |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 13 | * GNU General Public License for more details. | |
| 14 | * | |
| 15 | * You should have received a copy of the GNU General Public License | |
| 16 | * along with JTheque. If not, see <http://www.gnu.org/licenses/>. | |
| 17 | */ | |
| 18 | ||
| 19 | /** | |
| 20 | * An image descriptor. | |
| 21 | * | |
| 22 | * @author Baptiste Wicht | |
| 23 | */ | |
| 24 | public final class ImageDescriptor { | |
| 25 | private final String image; | |
| 26 | private final ImageType type; | |
| 27 | ||
| 28 | /** | |
| 29 | * Construct a new ImageDescriptor. | |
| 30 | * | |
| 31 | * @param image The image path. | |
| 32 | * @param type The type of the image. | |
| 33 | */ | |
| 34 | public ImageDescriptor(String image, ImageType type){ | |
| 35 | 0 | super(); |
| 36 | ||
| 37 | 0 | this.image = image; |
| 38 | 0 | this.type = type; |
| 39 | 0 | } |
| 40 | ||
| 41 | /** | |
| 42 | * Return the path to the image. | |
| 43 | * | |
| 44 | * @return The path to the image. | |
| 45 | */ | |
| 46 | public String getImage(){ | |
| 47 | 0 | return image; |
| 48 | } | |
| 49 | ||
| 50 | /** | |
| 51 | * Return the type of the image. | |
| 52 | * | |
| 53 | * @return The type of the image. | |
| 54 | */ | |
| 55 | public ImageType getType(){ | |
| 56 | 0 | return type; |
| 57 | } | |
| 58 | } |