1 package org.apache.archiva.metadata.model;
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements. See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership. The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the
9 * "License"); you may not use this file except in compliance
10 * with the License. You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing,
15 * software distributed under the License is distributed on an
16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 * KIND, either express or implied. See the License for the
18 * specific language governing permissions and limitations
22 import javax.xml.bind.annotation.XmlRootElement;
23 import java.util.ArrayList;
24 import java.util.HashMap;
25 import java.util.List;
27 import java.util.Properties;
29 @XmlRootElement( name = "projectVersionMetadata" )
30 public class ProjectVersionMetadata
31 extends FacetedMetadata
42 private String description;
44 private Organization organization;
46 private IssueManagement issueManagement;
50 private CiManagement ciManagement;
52 private List<License> licenses = new ArrayList<>();
54 private List<MailingList> mailingLists = new ArrayList<>();
56 private List<Dependency> dependencies = new ArrayList<>();
58 private Map<String, String> properties = new HashMap<String, String>();
60 private boolean incomplete;
67 public String getVersion()
72 public void setId( String id )
77 public void setUrl( String url )
82 public void setName( String name )
87 public void setDescription( String description )
89 this.description = description;
92 public String getDescription()
97 public String getUrl()
102 public String getName()
107 public Organization getOrganization()
112 public void setOrganization( Organization organization )
114 this.organization = organization;
117 public IssueManagement getIssueManagement()
119 return issueManagement;
122 public void setIssueManagement( IssueManagement issueManagement )
124 this.issueManagement = issueManagement;
132 public void setScm( Scm scm )
137 public CiManagement getCiManagement()
142 public void setCiManagement( CiManagement ciManagement )
144 this.ciManagement = ciManagement;
147 public List<License> getLicenses()
152 public void setLicenses( List<License> licenses )
154 this.licenses = licenses;
157 public void addLicense( License license )
159 this.licenses.add( license );
162 public void setMailingLists( List<MailingList> mailingLists )
164 this.mailingLists = mailingLists;
167 public List<MailingList> getMailingLists()
172 public void addMailingList( MailingList mailingList )
174 this.mailingLists.add( mailingList );
177 public void setDependencies( List<Dependency> dependencies )
179 this.dependencies = dependencies;
182 public List<Dependency> getDependencies()
187 public void addDependency( Dependency dependency )
189 this.dependencies.add( dependency );
192 public Map<String, String> getProperties()
197 public void setProperties( Map<String, String> properties )
199 this.properties = properties;
202 public boolean isIncomplete()
207 public void setIncomplete( boolean incomplete )
209 this.incomplete = incomplete;
213 public String toString()
215 return "ProjectVersionMetadata{" +
217 ", url='" + url + '\'' +
218 ", name='" + name + '\'' +
219 ", description='" + description + '\'' +
220 ", organization=" + organization +
221 ", issueManagement=" + issueManagement +
223 ", ciManagement=" + ciManagement +
224 ", licenses=" + licenses +
225 ", mailingLists=" + mailingLists +
226 ", dependencies=" + dependencies +
227 ", incomplete=" + incomplete +