001 /**
002 * Copyright 2006 The Apache Software Foundation
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016
017 package org.apache.geronimo.plugin.car;
018
019 import org.apache.maven.artifact.Artifact;
020
021 /**
022 * Represents a Maven-artifact.
023 *
024 * @version $Rev:385659 $ $Date: 2006-08-15 06:02:48 +0200 (mar., 15 août 2006) $
025 */
026 public class ArtifactItem
027 {
028 /**
029 * Group Id of artifact.
030 *
031 * @parameter
032 * @required
033 */
034 private String groupId;
035
036 /**
037 * Name of artifact.
038 *
039 * @parameter
040 * @required
041 */
042 private String artifactId;
043
044 /**
045 * Version of artifact.
046 *
047 * @parameter
048 */
049 private String version = null;
050
051 /**
052 * Type of artifact.
053 *
054 * @parameter
055 * @required
056 */
057 private String type = "jar";
058
059 /**
060 * Classifier for artifact.
061 *
062 * @parameter
063 */
064 private String classifier;
065
066 /**
067 * Artifact Item
068 */
069 private Artifact artifact;
070
071 public String toString() {
072 return groupId + ":" + artifactId + ":" + classifier + ":" + version + ":" + type;
073 }
074
075 /**
076 * @return Returns the artifactId.
077 */
078 public String getArtifactId() {
079 return artifactId;
080 }
081
082 /**
083 * @param artifactId The artifactId to set.
084 */
085 public void setArtifactId(final String artifactId) {
086 this.artifactId = artifactId;
087 }
088
089 /**
090 * @return Returns the groupId.
091 */
092 public String getGroupId() {
093 return groupId;
094 }
095
096 /**
097 * @param groupId The groupId to set.
098 */
099 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 }