View Javadoc

1   /**
2    * Copyright 2010-2013 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.common.util.project;
17  
18  import java.util.Properties;
19  
20  public final class DefaultProject implements Project {
21  
22  	String groupId;
23  	String artifactId;
24  	String version;
25  	Properties properties;
26  
27  	public DefaultProject() {
28  		this(null, null, null, null);
29  	}
30  
31  	public DefaultProject(String groupId, String artifactId, String version, Properties properties) {
32  		super();
33  		this.groupId = groupId;
34  		this.artifactId = artifactId;
35  		this.version = version;
36  		this.properties = properties;
37  	}
38  
39  	@Override
40  	public String toString() {
41  		return groupId + ":" + artifactId + ":" + version;
42  	}
43  
44  	@Override
45  	public String getGroupId() {
46  		return groupId;
47  	}
48  
49  	@Override
50  	public String getArtifactId() {
51  		return artifactId;
52  	}
53  
54  	@Override
55  	public String getVersion() {
56  		return version;
57  	}
58  
59  	@Override
60  	public Properties getProperties() {
61  		return properties;
62  	}
63  
64  	public void setGroupId(String groupId) {
65  		this.groupId = groupId;
66  	}
67  
68  	public void setArtifactId(String artifactId) {
69  		this.artifactId = artifactId;
70  	}
71  
72  	public void setVersion(String version) {
73  		this.version = version;
74  	}
75  
76  	public void setProperties(Properties properties) {
77  		this.properties = properties;
78  	}
79  
80  }