1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36 package org.jomc.ri.model;
37
38 import org.jomc.model.Dependency;
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.4", comments = "See http://www.jomc.org/jomc/1.4/jomc-tools-1.4" )
63
64
65 public class RuntimeDependency extends Dependency implements RuntimeModelObject
66 {
67
68
69
70
71
72
73
74
75
76 public RuntimeDependency( final Dependency dependency )
77 {
78 super( dependency );
79
80 if ( this.getAuthors() != null )
81 {
82 this.setAuthors( RuntimeModelObjects.getInstance().copyOf( this.getAuthors() ) );
83 }
84 if ( this.getDependencies() != null )
85 {
86 this.setDependencies( RuntimeModelObjects.getInstance().copyOf( this.getDependencies() ) );
87 }
88 if ( this.getDocumentation() != null )
89 {
90 this.setDocumentation( RuntimeModelObjects.getInstance().copyOf( this.getDocumentation() ) );
91 }
92 if ( this.getMessages() != null )
93 {
94 this.setMessages( RuntimeModelObjects.getInstance().copyOf( this.getMessages() ) );
95 }
96 if ( this.getProperties() != null )
97 {
98 this.setProperties( RuntimeModelObjects.getInstance().copyOf( this.getProperties() ) );
99 }
100 }
101
102
103
104 public void gc()
105 {
106 this.gcOrClear( true, false );
107 }
108
109 public void clear()
110 {
111 this.gcOrClear( false, true );
112 }
113
114 private void gcOrClear( final boolean gc, final boolean clear )
115 {
116 if ( this.getAuthors() instanceof RuntimeModelObject )
117 {
118 if ( gc )
119 {
120 ( (RuntimeModelObject) this.getAuthors() ).gc();
121 }
122 if ( clear )
123 {
124 ( (RuntimeModelObject) this.getAuthors() ).clear();
125 }
126 }
127 if ( this.getDependencies() instanceof RuntimeModelObject )
128 {
129 if ( gc )
130 {
131 ( (RuntimeModelObject) this.getDependencies() ).gc();
132 }
133 if ( clear )
134 {
135 ( (RuntimeModelObject) this.getDependencies() ).clear();
136 }
137 }
138 if ( this.getDocumentation() instanceof RuntimeModelObject )
139 {
140 if ( gc )
141 {
142 ( (RuntimeModelObject) this.getDocumentation() ).gc();
143 }
144 if ( clear )
145 {
146 ( (RuntimeModelObject) this.getDocumentation() ).clear();
147 }
148 }
149 if ( this.getMessages() instanceof RuntimeModelObject )
150 {
151 if ( gc )
152 {
153 ( (RuntimeModelObject) this.getMessages() ).gc();
154 }
155 if ( clear )
156 {
157 ( (RuntimeModelObject) this.getMessages() ).clear();
158 }
159 }
160 if ( this.getProperties() instanceof RuntimeModelObject )
161 {
162 if ( gc )
163 {
164 ( (RuntimeModelObject) this.getProperties() ).gc();
165 }
166 if ( clear )
167 {
168 ( (RuntimeModelObject) this.getProperties() ).clear();
169 }
170 }
171 }
172
173
174
175
176
177 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.4", comments = "See http://www.jomc.org/jomc/1.4/jomc-tools-1.4" )
178 public RuntimeDependency()
179 {
180
181 super();
182
183 }
184
185
186
187
188
189
190
191
192 }