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 java.util.ArrayList;
23 import java.util.Collection;
24 import java.util.HashMap;
25 import java.util.List;
28 public class ProjectVersionMetadata
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 Map<String, MetadataFacet> facets = new HashMap<String, MetadataFacet>();
50 private List<MailingList> mailingLists = new ArrayList<MailingList>();
52 private List<Dependency> dependencies = new ArrayList<Dependency>();
54 private boolean incomplete;
61 public String getVersion()
66 public void setId( String id )
71 public void setUrl( String url )
76 public void setName( String name )
81 public void setDescription( String description )
83 this.description = description;
86 public String getDescription()
91 public String getUrl()
96 public String getName()
101 public Organization getOrganization()
106 public void setOrganization( Organization organization )
108 this.organization = organization;
111 public IssueManagement getIssueManagement()
113 return issueManagement;
116 public void setIssueManagement( IssueManagement issueManagement )
118 this.issueManagement = issueManagement;
126 public void setScm( Scm scm )
131 public CiManagement getCiManagement()
136 public void setCiManagement( CiManagement ciManagement )
138 this.ciManagement = ciManagement;
141 public List<License> getLicenses()
146 public void setLicenses( List<License> licenses )
148 this.licenses = licenses;
151 public void addLicense( License license )
153 this.licenses.add( license );
156 public void addFacet( MetadataFacet metadataFacet )
158 this.facets.put( metadataFacet.getFacetId(), metadataFacet );
161 public MetadataFacet getFacet( String facetId )
163 return this.facets.get( facetId );
166 public Map<String, MetadataFacet> getFacets()
171 public Collection<MetadataFacet> getFacetList()
173 return this.facets.values();
176 public Collection<String> getFacetIds()
178 return this.facets.keySet();
181 public void setMailingLists( List<MailingList> mailingLists )
183 this.mailingLists = mailingLists;
186 public List<MailingList> getMailingLists()
191 public void addMailingList( MailingList mailingList )
193 this.mailingLists.add( mailingList );
196 public void setDependencies( List<Dependency> dependencies )
198 this.dependencies = dependencies;
201 public List<Dependency> getDependencies()
206 public void addDependency( Dependency dependency )
208 this.dependencies.add( dependency );
211 public boolean isIncomplete()
216 public void setIncomplete( boolean incomplete )
218 this.incomplete = incomplete;