/* ModuleInfo.java (c) 2013 Ed Swartz All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html */ package v9t9.common.modules; /** * @author ejs * */ public class ModuleInfo { private String name; private String imageName; private String descr; public static ModuleInfo createForModule(IModule module) { ModuleInfo moduleInfo = new ModuleInfo(); moduleInfo.setName(module.getName()); return moduleInfo; } public String getName() { return name; } public void setName(String name) { this.name = name; } /** * @return filename of screenshot image */ public String getImagePath() { return imageName; } /** * @param filename of screenshot image */ public void setImagePath(String imageName) { this.imageName = imageName; } /** * @param descr */ public void setDescription(String descr) { this.descr = descr; } /** * @return the descr */ public String getDescription() { return descr; } /** * @return */ public ModuleInfo copy() { ModuleInfo copy = new ModuleInfo(); copy.name = name; copy.imageName = imageName; copy.descr = descr; return copy; } }