View Javadoc

1   /*
2    * REPOWEB, repository manager.
3    *
4    * Terms of license - http://opensource.org/licenses/apachepl.php
5    */
6   package org.repoweb.pom;
7   import java.util.ArrayList;
8   import java.util.List;
9   /***
10   * Bean for a POM (Project Object Model).
11   */
12  public class Project {
13      private String _artifactId;
14      private String _groupId;
15      private String _currentVersion;
16      private String _name;
17      private String _shortDescription;
18      private String _description;
19      private String _url;
20      private String _freeContent;
21      private List _dependencies;
22  
23      public String getArtifactId() {
24          return _artifactId;
25      }
26  
27  
28      public void setArtifactId(String artifactId) {
29          _artifactId = artifactId;
30      }
31  
32  
33      public String getGroupId() {
34          return _groupId;
35      }
36  
37  
38      public void setGroupId(String groupId) {
39          _groupId = groupId;
40      }
41  
42  
43      public String getCurrentVersion() {
44          return _currentVersion;
45      }
46  
47  
48      public void setCurrentVersion(String currentVersion) {
49          _currentVersion = currentVersion;
50      }
51  
52  
53      public String getName() {
54          return _name;
55      }
56  
57  
58      public void setName(String name) {
59          _name = name;
60      }
61  
62  
63      public String getShortDescription() {
64          return _shortDescription;
65      }
66  
67  
68      public void setShortDescription(String shortDescription) {
69          _shortDescription = shortDescription;
70      }
71  
72  
73      public String getDescription() {
74          return _description;
75      }
76  
77  
78      public void setDescription(String description) {
79          _description = description;
80      }
81  
82  
83      public String getUrl() {
84          return _url;
85      }
86  
87  
88      public void setUrl(String url) {
89          _url = url;
90      }
91  
92  
93      public String getFreeContent() {
94          return _freeContent;
95      }
96  
97  
98      public void setFreeContent(String freeContent) {
99          _freeContent = freeContent;
100     }
101 
102 
103     public List getDependencies() {
104         return _dependencies;
105     }
106 
107 
108     public void setDependencies(List dependency) {
109         this._dependencies = dependency;
110     }
111 
112 
113     public void addDependency(Dependency dependency) {
114         if (_dependencies == null) {
115             _dependencies = new ArrayList();
116         }
117 
118         _dependencies.add(dependency);
119     }
120 }