KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mmbase > applications > packaging > projects > IncludedPackage


1 /*
2  * This software is OSI Certified Open Source Software.
3  * OSI Certified is a certification mark of the Open Source Initiative.
4  * The license (Mozilla version 1.0) can be read at the MMBase site.
5  * See http://www.MMBase.org/license
6  */

7 package org.mmbase.applications.packaging.projects;
8
9 /**
10  * @author Daniel Ockeloen
11  *
12  */

13 public class IncludedPackage {
14
15     String JavaDoc name;
16     String JavaDoc type;
17     String JavaDoc maintainer;
18     String JavaDoc version;
19     boolean included;
20
21
22     /**
23      * Gets the name attribute of the IncludedPackage object
24      *
25      * @return The name value
26      */

27     public String JavaDoc getName() {
28         return name;
29     }
30
31
32     /**
33      * Gets the type attribute of the IncludedPackage object
34      *
35      * @return The type value
36      */

37     public String JavaDoc getType() {
38         return type;
39     }
40
41
42     /**
43      * Gets the maintainer attribute of the IncludedPackage object
44      *
45      * @return The maintainer value
46      */

47     public String JavaDoc getMaintainer() {
48         return maintainer;
49     }
50
51
52     /**
53      * Gets the version attribute of the IncludedPackage object
54      *
55      * @return The version value
56      */

57     public String JavaDoc getVersion() {
58         return version;
59     }
60
61
62     /**
63      * Gets the included attribute of the IncludedPackage object
64      *
65      * @return The included value
66      */

67     public boolean getIncluded() {
68         return included;
69     }
70
71
72     /**
73      * Sets the included attribute of the IncludedPackage object
74      *
75      * @param included The new included value
76      */

77     public void setIncluded(boolean included) {
78         this.included = included;
79     }
80
81
82     /**
83      * Sets the name attribute of the IncludedPackage object
84      *
85      * @param name The new name value
86      */

87     public void setName(String JavaDoc name) {
88         this.name = name;
89     }
90
91
92     /**
93      * Sets the version attribute of the IncludedPackage object
94      *
95      * @param version The new version value
96      */

97     public void setVersion(String JavaDoc version) {
98         this.version = version;
99     }
100
101
102     /**
103      * Sets the type attribute of the IncludedPackage object
104      *
105      * @param type The new type value
106      */

107     public void setType(String JavaDoc type) {
108         this.type = type;
109     }
110
111
112     /**
113      * Gets the id attribute of the IncludedPackage object
114      *
115      * @return The id value
116      */

117     public String JavaDoc getId() {
118         String JavaDoc id = name + "@" + maintainer + "_" + type;
119         id = id.replace(' ', '_');
120         id = id.replace('/', '_');
121         return id;
122     }
123
124
125     /**
126      * Sets the maintainer attribute of the IncludedPackage object
127      *
128      * @param maintainer The new maintainer value
129      */

130     public void setMaintainer(String JavaDoc maintainer) {
131         this.maintainer = maintainer;
132     }
133
134 }
135
136
Popular Tags