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.List;
26 @XmlRootElement( name = "projectVersionMetadata" )
27 public class ProjectVersionMetadata
28 extends FacetedMetadata
36 private String description;
38 private Organization organization;
40 private IssueManagement issueManagement;
44 private CiManagement ciManagement;
46 private List<License> licenses = new ArrayList<License>();
48 private List<MailingList> mailingLists = new ArrayList<MailingList>();
50 private List<Dependency> dependencies = new ArrayList<Dependency>();
52 private boolean incomplete;
59 public String getVersion()
64 public void setId( String id )
69 public void setUrl( String url )
74 public void setName( String name )
79 public void setDescription( String description )
81 this.description = description;
84 public String getDescription()
89 public String getUrl()
94 public String getName()
99 public Organization getOrganization()
104 public void setOrganization( Organization organization )
106 this.organization = organization;
109 public IssueManagement getIssueManagement()
111 return issueManagement;
114 public void setIssueManagement( IssueManagement issueManagement )
116 this.issueManagement = issueManagement;
124 public void setScm( Scm scm )
129 public CiManagement getCiManagement()
134 public void setCiManagement( CiManagement ciManagement )
136 this.ciManagement = ciManagement;
139 public List<License> getLicenses()
144 public void setLicenses( List<License> licenses )
146 this.licenses = licenses;
149 public void addLicense( License license )
151 this.licenses.add( license );
154 public void setMailingLists( List<MailingList> mailingLists )
156 this.mailingLists = mailingLists;
159 public List<MailingList> getMailingLists()
164 public void addMailingList( MailingList mailingList )
166 this.mailingLists.add( mailingList );
169 public void setDependencies( List<Dependency> dependencies )
171 this.dependencies = dependencies;
174 public List<Dependency> getDependencies()
179 public void addDependency( Dependency dependency )
181 this.dependencies.add( dependency );
184 public boolean isIncomplete()
189 public void setIncomplete( boolean incomplete )
191 this.incomplete = incomplete;