1 /*
2 =================== DO NOT EDIT THIS FILE ====================
3 Generated by Modello 1.0.1 on 2009-09-09 03:30:24,
4 any modifications will be overwritten.
5 ==============================================================
6 */
7
8 package org.apache.maven.model;
9
10 /**
11 * Section for management of default dependency information for use
12 * in a group of
13 * POMs.
14 *
15 * @version $Revision$ $Date$
16 */
17 public class DependencyManagement
18 implements java.io.Serializable
19 {
20
21 //--------------------------/
22 //- Class/Member Variables -/
23 //--------------------------/
24
25 /**
26 * Field dependencies.
27 */
28 private java.util.List<Dependency> dependencies;
29
30
31 //-----------/
32 //- Methods -/
33 //-----------/
34
35 /**
36 * Method addDependency.
37 *
38 * @param dependency
39 */
40 public void addDependency( Dependency dependency )
41 {
42 if ( !(dependency instanceof Dependency) )
43 {
44 throw new ClassCastException( "DependencyManagement.addDependencies(dependency) parameter must be instanceof " + Dependency.class.getName() );
45 }
46 getDependencies().add( dependency );
47 } //-- void addDependency( Dependency )
48
49 /**
50 * Method getDependencies.
51 *
52 * @return List
53 */
54 public java.util.List<Dependency> getDependencies()
55 {
56 if ( this.dependencies == null )
57 {
58 this.dependencies = new java.util.ArrayList<Dependency>();
59 }
60
61 return this.dependencies;
62 } //-- java.util.List<Dependency> getDependencies()
63
64 /**
65 * Method removeDependency.
66 *
67 * @param dependency
68 */
69 public void removeDependency( Dependency dependency )
70 {
71 if ( !(dependency instanceof Dependency) )
72 {
73 throw new ClassCastException( "DependencyManagement.removeDependencies(dependency) parameter must be instanceof " + Dependency.class.getName() );
74 }
75 getDependencies().remove( dependency );
76 } //-- void removeDependency( Dependency )
77
78 /**
79 * Set the dependencies specified here are not used until they
80 * are referenced in a
81 * POM within the group. This allows the
82 * specification of a "standard" version for a
83 * particular dependency.
84 *
85 * @param dependencies
86 */
87 public void setDependencies( java.util.List<Dependency> dependencies )
88 {
89 this.dependencies = dependencies;
90 } //-- void setDependencies( java.util.List )
91
92
93 }