| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| Root |
|
| 1.0;1 |
| 1 | /****************************************************************************** | |
| 2 | * Root.java - Define one root directory that contains pictures | |
| 3 | * | |
| 4 | * PicMan - The BuckoSoft Picture Manager in Java | |
| 5 | * Copyright(c) 2006 - Dick Balaska | |
| 6 | * | |
| 7 | */ | |
| 8 | package com.buckosoft.PicMan.domain; | |
| 9 | ||
| 10 | /** Define one root directory that contains pictures | |
| 11 | * | |
| 12 | * @author dick | |
| 13 | * @since 20060929 | |
| 14 | */ | |
| 15 | 0 | public class Root { |
| 16 | private int rid; | |
| 17 | private String name; | |
| 18 | private String path; | |
| 19 | private String filePrefix; | |
| 20 | 0 | private boolean active = true; |
| 21 | ||
| 22 | /** | |
| 23 | * @return the name | |
| 24 | */ | |
| 25 | public String getName() { | |
| 26 | 0 | return name; |
| 27 | } | |
| 28 | /** | |
| 29 | * @param name the name to set | |
| 30 | */ | |
| 31 | public void setName(String name) { | |
| 32 | 0 | this.name = name; |
| 33 | 0 | } |
| 34 | /** | |
| 35 | * @return the path | |
| 36 | */ | |
| 37 | public String getPath() { | |
| 38 | 0 | return path; |
| 39 | } | |
| 40 | /** | |
| 41 | * @param path the path to set | |
| 42 | */ | |
| 43 | public void setPath(String path) { | |
| 44 | 0 | this.path = path; |
| 45 | 0 | } |
| 46 | ||
| 47 | /** | |
| 48 | * @return the filePrefix | |
| 49 | */ | |
| 50 | public String getFilePrefix() { | |
| 51 | 0 | return filePrefix; |
| 52 | } | |
| 53 | /** | |
| 54 | * @param filePrefix the filePrefix to set | |
| 55 | */ | |
| 56 | public void setFilePrefix(String filePrefix) { | |
| 57 | 0 | this.filePrefix = filePrefix; |
| 58 | 0 | } |
| 59 | /** | |
| 60 | * @return the rid | |
| 61 | */ | |
| 62 | public int getRid() { | |
| 63 | 0 | return rid; |
| 64 | } | |
| 65 | /** | |
| 66 | * @param rid the rid to set | |
| 67 | */ | |
| 68 | public void setRid(int rid) { | |
| 69 | 0 | this.rid = rid; |
| 70 | 0 | } |
| 71 | /** | |
| 72 | * @return Returns whether this Root is active. | |
| 73 | */ | |
| 74 | public boolean isActive() { | |
| 75 | 0 | return active; |
| 76 | } | |
| 77 | /** | |
| 78 | * @param active Set whether this Root is active. | |
| 79 | */ | |
| 80 | public void setActive(boolean active) { | |
| 81 | 0 | this.active = active; |
| 82 | 0 | } |
| 83 | } |