Skip to main content
summaryrefslogtreecommitdiffstats
blob: 2cec537a0d4607fe3bc3c04221ddbd8ad83b7881 (plain) (blame)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
/*******************************************************************************
 * Copyright (c) 2015 Boeing.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Boeing - initial API and implementation
 *******************************************************************************/
package org.eclipse.osee.orcs.writer.model.reader;

import java.util.LinkedList;
import java.util.List;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * @author Donald G. Dunne
 */
@XmlRootElement
public class OwCollector {

   private String instructions;
   private OwBranch branch;
   private String persistComment;
   private String asUserId;
   private List<OwArtifact> create;
   private List<OwArtifact> update;
   private List<OwArtifactToken> delete;
   private List<OwArtifactType> artTypes;
   private List<OwAttributeType> attrTypes;
   private List<OwRelationType> relTypes;
   private List<OwBranch> branches;
   private List<OwArtifactToken> artTokens;

   public OwCollector() {
      create = new LinkedList<>();
      branch = new OwBranch();
   }

   public List<OwArtifact> getCreate() {
      if (create == null) {
         create = new LinkedList<>();
      }
      return create;
   }

   public void setCreate(List<OwArtifact> artifacts) {
      this.create = artifacts;
   }

   public List<OwArtifactType> getArtTypes() {
      if (artTypes == null) {
         artTypes = new LinkedList<>();
      }
      return artTypes;
   }

   public void setArtTypes(List<OwArtifactType> artTypes) {
      this.artTypes = artTypes;
   }

   public List<OwAttributeType> getAttrTypes() {
      if (attrTypes == null) {
         attrTypes = new LinkedList<>();
      }
      return attrTypes;
   }

   public void setAttrTypes(List<OwAttributeType> attrTypes) {
      this.attrTypes = attrTypes;
   }

   public List<OwRelationType> getRelTypes() {
      if (relTypes == null) {
         relTypes = new LinkedList<>();
      }
      return relTypes;
   }

   public void setRelTypes(List<OwRelationType> relTypes) {
      this.relTypes = relTypes;
   }

   public List<OwArtifactToken> getArtTokens() {
      if (artTokens == null) {
         artTokens = new LinkedList<>();
      }
      return artTokens;
   }

   public void setArtTokens(List<OwArtifactToken> artTokens) {
      this.artTokens = artTokens;
   }

   public List<OwArtifact> getUpdate() {
      if (update == null) {
         update = new LinkedList<>();
      }
      return update;
   }

   public void setUpdate(List<OwArtifact> update) {
      this.update = update;
   }

   public List<OwArtifactToken> getDelete() {
      if (delete == null) {
         delete = new LinkedList<>();
      }
      return delete;
   }

   public void setDelete(List<OwArtifactToken> delete) {
      this.delete = delete;
   }

   public OwBranch getBranch() {
      return branch;
   }

   public void setBranch(OwBranch branch) {
      this.branch = branch;
   }

   public List<OwBranch> getBranches() {
      if (branches == null) {
         branches = new LinkedList<>();
      }
      return branches;
   }

   public void setBranches(List<OwBranch> branches) {
      this.branches = branches;
   }

   public String getInstructions() {
      return instructions;
   }

   public void setInstructions(String instructions) {
      this.instructions = instructions;
   }

   @Override
   public String toString() {
      return "OwCollector [branch=" + branch + ", create=" + create + ", update=" + update + ", delete=" + delete + "]";
   }

   public String getPersistComment() {
      return persistComment;
   }

   public void setPersistComment(String persistComment) {
      this.persistComment = persistComment;
   }

   public String getAsUserId() {
      return asUserId;
   }

   public void setAsUserId(String asUserId) {
      this.asUserId = asUserId;
   }

}

Back to the top