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 package org.apache.geronimo.genesis.util; 021 022 /** 023 * Represents a Maven-artifact. 024 * 025 * @version $Rev:385659 $ $Date: 2006-10-08 16:39:11 -0700 (Sun, 08 Oct 2006) $ 026 */ 027 public class ArtifactItem 028 { 029 /** 030 * Group Id of artifact. 031 * 032 * @parameter 033 * @required 034 */ 035 private String groupId; 036 037 /** 038 * Name of artifact. 039 * 040 * @parameter 041 * @required 042 */ 043 private String artifactId; 044 045 /** 046 * Version of artifact. 047 * 048 * @parameter 049 */ 050 private String version = null; 051 052 /** 053 * Type of artifact. 054 * 055 * @parameter 056 * @required 057 */ 058 private String type = "jar"; 059 060 /** 061 * Classifier for artifact. 062 * 063 * @parameter 064 */ 065 private String classifier; 066 067 public String toString() { 068 return groupId + ":" + artifactId + ":" + classifier + ":" + version + ":" + type; 069 } 070 071 /** 072 * @return Returns the artifactId. 073 */ 074 public String getArtifactId() { 075 return artifactId; 076 } 077 078 /** 079 * @param artifactId The artifactId to set. 080 */ 081 public void setArtifactId(final String artifactId) { 082 this.artifactId = artifactId; 083 } 084 085 /** 086 * @return Returns the groupId. 087 */ 088 public String getGroupId() { 089 return groupId; 090 } 091 092 /** 093 * @param groupId The groupId to set. 094 */ 095 public void setGroupId(final String groupId) { 096 this.groupId = groupId; 097 } 098 099 /** 100 * @return Returns the type. 101 */ 102 public String getType() { 103 return type; 104 } 105 106 /** 107 * @param type The type to set. 108 */ 109 public void setType(final String type) { 110 this.type = type; 111 } 112 113 /** 114 * @return Returns the version. 115 */ 116 public String getVersion() { 117 return version; 118 } 119 120 /** 121 * @param version The version to set. 122 */ 123 public void setVersion(final String version) { 124 this.version = version; 125 } 126 127 /** 128 * @return Classifier. 129 */ 130 public String getClassifier() { 131 return classifier; 132 } 133 134 /** 135 * @param classifier Classifier. 136 */ 137 public void setClassifier(final String classifier) { 138 this.classifier = classifier; 139 } 140 }