1 package com.github.celldynamics.quimp.filesystem;
2
3 import java.util.ArrayList;
4
5 import org.slf4j.Logger;
6 import org.slf4j.LoggerFactory;
7
8 import com.github.celldynamics.quimp.OutlineHandler;
9
10
11
12
13
14
15
16
17
18
19 public class OutlinesCollection implements IQuimpSerialize {
20
21
22
23
24 static final Logger LOGGER = LoggerFactory.getLogger(OutlinesCollection.class.getName());
25
26
27
28
29
30
31
32
33
34 public ArrayList<OutlineHandler> oHs;
35
36
37
38
39
40
41 public OutlinesCollection(int size) {
42 oHs = new ArrayList<>(size);
43 }
44
45
46
47
48 public OutlinesCollection() {
49 oHs = new ArrayList<>();
50 }
51
52
53
54
55
56 @Override
57 public void beforeSerialize() {
58 if (oHs != null) {
59 for (OutlineHandler oh : oHs) {
60 oh.beforeSerialize();
61 }
62 }
63 }
64
65
66
67
68 @Override
69 public void afterSerialize() throws Exception {
70 if (oHs != null) {
71 for (OutlineHandler oh : oHs) {
72 oh.afterSerialize();
73 }
74 }
75 }
76 }