46c9b5ede2dbe771724d20a9833d15da066eaef5
[aai/traversal.git] / aai-traversal / src / main / java / org / openecomp / aai / dbgraphgen / ResultSet.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * org.openecomp.aai
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.openecomp.aai.dbgraphgen;
22
23 import java.util.ArrayList;
24 import java.util.HashMap;
25 import java.util.List;
26 import java.util.Map;
27
28 import org.openecomp.aai.dbgen.PropertyLimitDesc;
29 import com.thinkaurelius.titan.core.TitanVertex;
30
31 public class ResultSet {
32         private TitanVertex vert;
33         private String newDataDelFlag;  
34         private String doNotOutputFlag;
35         private String locationInModelSubGraph;
36         private List<ResultSet> subResultSet;
37         private PropertyLimitDesc propertyLimitDesc;
38         private Map<String,Object> propertyOverRideHash;
39         private Map<String,Object> extraPropertyHash;
40         
41          /**
42          * Instantiates a new result set.
43          */
44         public ResultSet(){
45                  this.vert = null;
46                  this.newDataDelFlag = "";
47                  this.doNotOutputFlag = "";
48                  this.locationInModelSubGraph = "";
49                  this.subResultSet = new ArrayList<>();
50                  this.propertyLimitDesc = null;
51                  this.propertyOverRideHash = new HashMap<>();
52                  this.extraPropertyHash = new HashMap<>();
53         }
54          
55         
56         public void setPropertyLimitDesc(PropertyLimitDesc pld) {
57                 this.propertyLimitDesc = pld;
58         }
59
60         /**
61          * Gets the vert.
62          *
63          * @return the vert
64          */
65         public TitanVertex getVert(){
66                  return this.vert;
67          }
68          
69         /**
70          * Gets the sub result set.
71          *
72          * @return the sub result set
73          */
74         public List<ResultSet> getSubResultSet(){
75                  return this.subResultSet;
76          }
77          
78         /**
79          * Gets the new data del flag.
80          *
81          * @return the new data del flag
82          */
83         public String getNewDataDelFlag(){
84                  return this.newDataDelFlag;
85          }
86          
87         /**
88          * Gets the do not output flag.
89          *
90          * @return the do not output flag
91          */
92         public String getDoNotOutputFlag(){
93                  return this.doNotOutputFlag;
94          }
95          
96         /**
97          * Gets the location in model sub graph.
98          *
99          * @return the location in model sub graph
100          */
101         public String getLocationInModelSubGraph(){
102                  return this.locationInModelSubGraph;
103          }
104          
105         /**
106          * Gets the property limit desc.
107          *
108          * @return the property limit desc
109          */
110         public PropertyLimitDesc getPropertyLimitDesc(){
111                  return this.propertyLimitDesc;
112          }
113          
114         /**
115          * Gets the property over ride hash.
116          *
117          * @return the property over ride hash
118          */
119         public Map<String,Object> getPropertyOverRideHash(){
120                  return this.propertyOverRideHash;
121          }
122          
123         /**
124          * Gets the extra property hash.
125          *
126          * @return the extra property hash
127          */
128         public Map<String,Object> getExtraPropertyHash(){
129                  return this.extraPropertyHash;
130          }
131
132
133         public void setVert(TitanVertex vert) {
134                 this.vert = vert;
135         }
136
137
138         public void setNewDataDelFlag(String newDataDelFlag) {
139                 this.newDataDelFlag = newDataDelFlag;
140         }
141
142
143         public void setDoNotOutputFlag(String doNotOutputFlag) {
144                 this.doNotOutputFlag = doNotOutputFlag;
145         }
146
147
148         public void setLocationInModelSubGraph(String locationInModelSubGraph) {
149                 this.locationInModelSubGraph = locationInModelSubGraph;
150         }
151
152
153         public void setSubResultSet(List<ResultSet> subResultSet) {
154                 this.subResultSet = subResultSet;
155         }
156
157
158         public void setPropertyOverRideHash(Map<String, Object> propertyOverRideHash) {
159                 this.propertyOverRideHash = propertyOverRideHash;
160         }
161
162
163         public void setExtraPropertyHash(Map<String, Object> extraPropertyHash) {
164                 this.extraPropertyHash = extraPropertyHash;
165         }
166         
167
168 }