1 package org.codehaus.mojo.jdepend.objects; 2 3 /* 4 * #%L 5 * JDepend Maven Plugin 6 * %% 7 * Copyright (C) 2006 - 2014 Codehaus 8 * %% 9 * Licensed under the Apache License, Version 2.0 (the "License"); 10 * you may not use this file except in compliance with the License. 11 * You may obtain a copy of the License at 12 * 13 * http://www.apache.org/licenses/LICENSE-2.0 14 * 15 * Unless required by applicable law or agreed to in writing, software 16 * distributed under the License is distributed on an "AS IS" BASIS, 17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 * See the License for the specific language governing permissions and 19 * limitations under the License. 20 * #L% 21 */ 22 23 import java.util.ArrayList; 24 import java.util.List; 25 26 /** 27 * @author Who ever this implemented first. 28 */ 29 public class Packages 30 { 31 private List<JDPackage> jdpackage; 32 33 /** 34 * Creates a new instance of Packages. 35 */ 36 public Packages() 37 { 38 } 39 40 /** 41 * @return packages. 42 */ 43 public List<JDPackage> getPackages() 44 { 45 if ( this.jdpackage == null ) 46 { 47 this.jdpackage = new ArrayList<JDPackage>(); 48 } 49 50 return this.jdpackage; 51 } 52 53 /** 54 * @param jdpackage The List of JDPackage 55 */ 56 public void setPackages( List<JDPackage> jdpackage ) 57 { 58 this.jdpackage = jdpackage; 59 } 60 61 /** 62 * @param jdpackage Add a single package. 63 */ 64 public void addPackage( JDPackage jdpackage ) 65 { 66 getPackages().add( jdpackage ); 67 } 68 69 }