/*
*
* author:  gvenzl
* created: 27 Mar 2016
*
* name: Package.java
*
*/

package com.dbpm.repository;

public class Package {

	private String  name;
	private int		major;
	private int		minor;
	private int		patch;
	private String  platform;
	
	public Package(String packageName) {
		String pgkNme = packageName.substring(0, packageName.lastIndexOf("."));
		name = pgkNme.substring(0, pgkNme.indexOf("-"));
		String version = packageName.substring(pgkNme.indexOf("-")+1, pgkNme.lastIndexOf("-"));
		major = Integer.valueOf(version.substring(0, version.indexOf("."))).intValue();
		minor = Integer.valueOf(version.substring(version.indexOf(".")+1, version.lastIndexOf("."))).intValue();
		patch = Integer.valueOf(version.substring(version.lastIndexOf(".")+1)).intValue();
		platform = pgkNme.substring(pgkNme.lastIndexOf("-")+1);
	}
	
	public Package() {

	}

	public String getFullName() {
		return name + "-" + major + "." + minor + "." + patch + "-" +  platform + ".dbpgk";
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getMajor() {
		return major;
	}
	public void setMajor(int major) {
		this.major = major;
	}
	public int getMinor() {
		return minor;
	}
	public void setMinor(int minor) {
		this.minor = minor;
	}
	public int getPatch() {
		return patch;
	}
	public void setPatch(int patch) {
		this.patch = patch;
	}
	public String getPlatform() {
		return platform;
	}
	public void setPlatform(String platform) {
		this.platform = platform;
	}
}

@@ -138,23 +138,52 @@
  String 
- 
+%09
 name;%0A
+%09private String %09desciption;%0A
 %09private
@@ -253,17 +253,17 @@
  String 
- 
+%09
 platform
@@ -1099,32 +1099,156 @@
 name = name;%0A%09%7D%0A
+%09public String getDescription() %7B%0A%09%09return desciption;%0A%09%7D%0A%09public void setDescrption(String desc) %7B%0A%09%09desciption = desc;%0A%09%7D%0A
 %09public int getM

Include package description