1 /** 2 * Copyright 2006 The Apache Software Foundation 3 * 4 * Licensed under the Apache 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.apache.org/licenses/LICENSE-2.0 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 17 package org.apache.geronimo.plugin.car; 18 19 import org.apache.maven.artifact.Artifact; 20 21 /** 22 * Represents a Maven-artifact. 23 * 24 * @version $Rev:385659 $ $Date: 2006-08-15 06:02:48 +0200 (mar., 15 août 2006) $ 25 */ 26 public class ArtifactItem 27 { 28 /** 29 * Group Id of artifact. 30 * 31 * @parameter 32 * @required 33 */ 34 private String groupId; 35 36 /** 37 * Name of artifact. 38 * 39 * @parameter 40 * @required 41 */ 42 private String artifactId; 43 44 /** 45 * Version of artifact. 46 * 47 * @parameter 48 */ 49 private String version = null; 50 51 /** 52 * Type of artifact. 53 * 54 * @parameter 55 * @required 56 */ 57 private String type = "jar"; 58 59 /** 60 * Classifier for artifact. 61 * 62 * @parameter 63 */ 64 private String classifier; 65 66 /** 67 * Artifact Item 68 */ 69 private Artifact artifact; 70 71 public String toString() { 72 return groupId + ":" + artifactId + ":" + classifier + ":" + version + ":" + type; 73 } 74 75 /** 76 * @return Returns the artifactId. 77 */ 78 public String getArtifactId() { 79 return artifactId; 80 } 81 82 /** 83 * @param artifactId The artifactId to set. 84 */ 85 public void setArtifactId(final String artifactId) { 86 this.artifactId = artifactId; 87 } 88 89 /** 90 * @return Returns the groupId. 91 */ 92 public String getGroupId() { 93 return groupId; 94 } 95 96 /** 97 * @param groupId The groupId to set. 98 */ 99 public void setGroupId(final String groupId) { 100 this.groupId = groupId; 101 } 102 103 /** 104 * @return Returns the type. 105 */ 106 public String getType() { 107 return type; 108 } 109 110 /** 111 * @param type The type to set. 112 */ 113 public void setType(final String type) { 114 this.type = type; 115 } 116 117 /** 118 * @return Returns the version. 119 */ 120 public String getVersion() { 121 return version; 122 } 123 124 /** 125 * @param version The version to set. 126 */ 127 public void setVersion(final String version) { 128 this.version = version; 129 } 130 131 /** 132 * @return Classifier. 133 */ 134 public String getClassifier() { 135 return classifier; 136 } 137 138 /** 139 * @param classifier Classifier. 140 */ 141 public void setClassifier(final String classifier) { 142 this.classifier = classifier; 143 } 144 }