1
2
3
4
5 package org.apache.maven.model;
6
7
8
9
10
11 import java.util.Date;
12
13
14
15
16
17
18
19
20 public class DependencyManagement implements java.io.Serializable {
21
22
23
24
25
26
27
28
29
30 private java.util.List dependencies;
31
32
33
34
35
36
37
38
39
40
41
42 public void addDependency( Dependency dependency )
43 {
44 if ( !(dependency instanceof Dependency) )
45 {
46 throw new ClassCastException( "DependencyManagement.addDependencies(dependency) parameter must be instanceof " + Dependency.class.getName() );
47 }
48 getDependencies().add( dependency );
49 }
50
51
52
53
54
55
56 public java.util.List getDependencies()
57 {
58 if ( this.dependencies == null )
59 {
60 this.dependencies = new java.util.ArrayList();
61 }
62
63 return this.dependencies;
64 }
65
66
67
68
69
70
71 public void removeDependency( Dependency dependency )
72 {
73 if ( !(dependency instanceof Dependency) )
74 {
75 throw new ClassCastException( "DependencyManagement.removeDependencies(dependency) parameter must be instanceof " + Dependency.class.getName() );
76 }
77 getDependencies().remove( dependency );
78 }
79
80
81
82
83
84
85
86
87
88
89 public void setDependencies( java.util.List dependencies )
90 {
91 this.dependencies = dependencies;
92 }
93
94
95 private String modelEncoding = "UTF-8";
96
97
98
99
100
101
102 public void setModelEncoding( String modelEncoding )
103 {
104 this.modelEncoding = modelEncoding;
105 }
106
107
108
109
110 public String getModelEncoding()
111 {
112 return modelEncoding;
113 }
114 }