001 package org.apache.archiva.metadata.model; 002 003 /* 004 * Licensed to the Apache Software Foundation (ASF) under one 005 * or more contributor license agreements. See the NOTICE file 006 * distributed with this work for additional information 007 * regarding copyright ownership. The ASF licenses this file 008 * to you under the Apache License, Version 2.0 (the 009 * "License"); you may not use this file except in compliance 010 * with the License. You may obtain a copy of the License at 011 * 012 * http://www.apache.org/licenses/LICENSE-2.0 013 * 014 * Unless required by applicable law or agreed to in writing, 015 * software distributed under the License is distributed on an 016 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 017 * KIND, either express or implied. See the License for the 018 * specific language governing permissions and limitations 019 * under the License. 020 */ 021 022 import javax.xml.bind.annotation.XmlRootElement; 023 import java.util.ArrayList; 024 import java.util.List; 025 026 @XmlRootElement( name = "projectVersionMetadata" ) 027 public class ProjectVersionMetadata 028 extends FacetedMetadata 029 { 030 /** 031 * id is the version 032 */ 033 private String id; 034 035 private String url; 036 037 private String name; 038 039 private String description; 040 041 private Organization organization; 042 043 private IssueManagement issueManagement; 044 045 private Scm scm; 046 047 private CiManagement ciManagement; 048 049 private List<License> licenses = new ArrayList<License>(); 050 051 private List<MailingList> mailingLists = new ArrayList<MailingList>(); 052 053 private List<Dependency> dependencies = new ArrayList<Dependency>(); 054 055 private boolean incomplete; 056 057 public String getId() 058 { 059 return id; 060 } 061 062 public String getVersion() 063 { 064 return id; 065 } 066 067 public void setId( String id ) 068 { 069 this.id = id; 070 } 071 072 public void setUrl( String url ) 073 { 074 this.url = url; 075 } 076 077 public void setName( String name ) 078 { 079 this.name = name; 080 } 081 082 public void setDescription( String description ) 083 { 084 this.description = description; 085 } 086 087 public String getDescription() 088 { 089 return description; 090 } 091 092 public String getUrl() 093 { 094 return url; 095 } 096 097 public String getName() 098 { 099 return name; 100 } 101 102 public Organization getOrganization() 103 { 104 return organization; 105 } 106 107 public void setOrganization( Organization organization ) 108 { 109 this.organization = organization; 110 } 111 112 public IssueManagement getIssueManagement() 113 { 114 return issueManagement; 115 } 116 117 public void setIssueManagement( IssueManagement issueManagement ) 118 { 119 this.issueManagement = issueManagement; 120 } 121 122 public Scm getScm() 123 { 124 return scm; 125 } 126 127 public void setScm( Scm scm ) 128 { 129 this.scm = scm; 130 } 131 132 public CiManagement getCiManagement() 133 { 134 return ciManagement; 135 } 136 137 public void setCiManagement( CiManagement ciManagement ) 138 { 139 this.ciManagement = ciManagement; 140 } 141 142 public List<License> getLicenses() 143 { 144 return licenses; 145 } 146 147 public void setLicenses( List<License> licenses ) 148 { 149 this.licenses = licenses; 150 } 151 152 public void addLicense( License license ) 153 { 154 this.licenses.add( license ); 155 } 156 157 public void setMailingLists( List<MailingList> mailingLists ) 158 { 159 this.mailingLists = mailingLists; 160 } 161 162 public List<MailingList> getMailingLists() 163 { 164 return mailingLists; 165 } 166 167 public void addMailingList( MailingList mailingList ) 168 { 169 this.mailingLists.add( mailingList ); 170 } 171 172 public void setDependencies( List<Dependency> dependencies ) 173 { 174 this.dependencies = dependencies; 175 } 176 177 public List<Dependency> getDependencies() 178 { 179 return dependencies; 180 } 181 182 public void addDependency( Dependency dependency ) 183 { 184 this.dependencies.add( dependency ); 185 } 186 187 public boolean isIncomplete() 188 { 189 return incomplete; 190 } 191 192 public void setIncomplete( boolean incomplete ) 193 { 194 this.incomplete = incomplete; 195 } 196 }