001 /* 002 * Licensed to the Apache Software Foundation (ASF) under one 003 * or more contributor license agreements. See the NOTICE file 004 * distributed with this work for additional information 005 * regarding copyright ownership. The ASF licenses this file 006 * to you under the Apache License, Version 2.0 (the 007 * "License"); you may not use this file except in compliance 008 * with the License. You may obtain a copy of the License at 009 * 010 * http://www.apache.org/licenses/LICENSE-2.0 011 * 012 * Unless required by applicable law or agreed to in writing, 013 * software distributed under the License is distributed on an 014 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 015 * KIND, either express or implied. See the License for the 016 * specific language governing permissions and limitations 017 * under the License. 018 */ 019 020 021 package org.apache.geronimo.mavenplugins.car; 022 023 import org.apache.geronimo.system.plugin.model.ArtifactType; 024 025 /** 026 * @version $Rev: 706640 $ $Date: 2008-10-21 14:44:05 +0000 (Tue, 21 Oct 2008) $ 027 */ 028 public class ModuleId { 029 /** 030 * @parameter 031 */ 032 protected String groupId; 033 /** 034 * @parameter 035 */ 036 protected String artifactId; 037 /** 038 * @parameter 039 */ 040 protected String version; 041 /** 042 * @parameter 043 */ 044 protected String type; 045 046 private String importType; 047 048 public String getGroupId() { 049 return groupId; 050 } 051 052 public String getArtifactId() { 053 return artifactId; 054 } 055 056 public String getVersion() { 057 return version; 058 } 059 060 public String getType() { 061 return type; 062 } 063 064 065 /** 066 * @parameter 067 */ 068 public void setImport(String importType) { 069 this.importType = importType; 070 } 071 072 public String getImport() { 073 return importType; 074 } 075 076 public ArtifactType toArtifactType() { 077 ArtifactType artifact = new ArtifactType(); 078 artifact.setGroupId(groupId); 079 artifact.setArtifactId(artifactId); 080 artifact.setVersion(version); 081 artifact.setType(type); 082 return artifact; 083 } 084 }