01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one
03: * or more contributor license agreements. See the NOTICE file
04: * distributed with this work for additional information
05: * regarding copyright ownership. The ASF licenses this file
06: * to you under the Apache License, Version 2.0 (the
07: * "License"); you may not use this file except in compliance
08: * with the License. You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing,
13: * software distributed under the License is distributed on an
14: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15: * KIND, either express or implied. See the License for the
16: * specific language governing permissions and limitations
17: * under the License.
18: */
19:
20: package org.apache.geronimo.mavenplugins.car;
21:
22: import org.apache.geronimo.system.plugin.model.ArtifactType;
23:
24: /**
25: * @version $Rev: 575096 $ $Date: 2007-09-12 15:00:15 -0700 (Wed, 12 Sep 2007) $
26: */
27: public class ModuleId {
28: /**
29: * @parameter
30: */
31: protected String groupId;
32: /**
33: * @parameter
34: */
35: protected String artifactId;
36: /**
37: * @parameter
38: */
39: protected String version;
40: /**
41: * @parameter
42: */
43: protected String type;
44:
45: private String importType;
46:
47: public String getGroupId() {
48: return groupId;
49: }
50:
51: public String getArtifactId() {
52: return artifactId;
53: }
54:
55: public String getVersion() {
56: return version;
57: }
58:
59: public String getType() {
60: return type;
61: }
62:
63: /**
64: * @parameter
65: */
66: public void setImport(String importType) {
67: this .importType = importType;
68: }
69:
70: public String getImport() {
71: return importType;
72: }
73:
74: public ArtifactType toArtifactType() {
75: ArtifactType artifact = new ArtifactType();
76: artifact.setGroupId(groupId);
77: artifact.setArtifactId(artifactId);
78: artifact.setVersion(version);
79: artifact.setType(type);
80: return artifact;
81: }
82: }
|