Update the license for 2017-2018 license
[aai/traversal.git] / aai-traversal / src / main / java / org / onap / aai / dbgraphgen / ResultSet.java
1 /**
2  * ============LICENSE_START=======================================================
3  * org.onap.aai
4  * ================================================================================
5  * Copyright © 2017-2018 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 package org.onap.aai.dbgraphgen;
21
22 import java.util.ArrayList;
23 import java.util.HashMap;
24 import java.util.List;
25 import java.util.Map;
26
27 import org.apache.tinkerpop.gremlin.structure.Vertex;
28 import org.onap.aai.dbgen.PropertyLimitDesc;
29
30 public class ResultSet {
31         private Vertex vert;
32         private String newDataDelFlag;  
33         private String doNotOutputFlag;
34         private String locationInModelSubGraph;
35         private List<ResultSet> subResultSet;
36         private PropertyLimitDesc propertyLimitDesc;
37         private Map<String,Object> propertyOverRideHash;
38         private Map<String,Object> extraPropertyHash;
39         
40          /**
41          * Instantiates a new result set.
42          */
43         public ResultSet(){
44                  this.vert = null;
45                  this.newDataDelFlag = "";
46                  this.doNotOutputFlag = "";
47                  this.locationInModelSubGraph = "";
48                  this.subResultSet = new ArrayList<>();
49                  this.propertyLimitDesc = null;
50                  this.propertyOverRideHash = new HashMap<>();
51                  this.extraPropertyHash = new HashMap<>();
52         }
53          
54         
55         public void setPropertyLimitDesc(PropertyLimitDesc pld) {
56                 this.propertyLimitDesc = pld;
57         }
58
59         /**
60          * Gets the vert.
61          *
62          * @return the vert
63          */
64         public Vertex getVert(){
65                  return this.vert;
66          }
67          
68         /**
69          * Gets the sub result set.
70          *
71          * @return the sub result set
72          */
73         public List<ResultSet> getSubResultSet(){
74                  return this.subResultSet;
75          }
76          
77         /**
78          * Gets the new data del flag.
79          *
80          * @return the new data del flag
81          */
82         public String getNewDataDelFlag(){
83                  return this.newDataDelFlag;
84          }
85          
86         /**
87          * Gets the do not output flag.
88          *
89          * @return the do not output flag
90          */
91         public String getDoNotOutputFlag(){
92                  return this.doNotOutputFlag;
93          }
94          
95         /**
96          * Gets the location in model sub graph.
97          *
98          * @return the location in model sub graph
99          */
100         public String getLocationInModelSubGraph(){
101                  return this.locationInModelSubGraph;
102          }
103          
104         /**
105          * Gets the property limit desc.
106          *
107          * @return the property limit desc
108          */
109         public PropertyLimitDesc getPropertyLimitDesc(){
110                  return this.propertyLimitDesc;
111          }
112          
113         /**
114          * Gets the property over ride hash.
115          *
116          * @return the property over ride hash
117          */
118         public Map<String,Object> getPropertyOverRideHash(){
119                  return this.propertyOverRideHash;
120          }
121          
122         /**
123          * Gets the extra property hash.
124          *
125          * @return the extra property hash
126          */
127         public Map<String,Object> getExtraPropertyHash(){
128                  return this.extraPropertyHash;
129          }
130
131
132         public void setVert(Vertex vert) {
133                 this.vert = vert;
134         }
135
136
137         public void setNewDataDelFlag(String newDataDelFlag) {
138                 this.newDataDelFlag = newDataDelFlag;
139         }
140
141
142         public void setDoNotOutputFlag(String doNotOutputFlag) {
143                 this.doNotOutputFlag = doNotOutputFlag;
144         }
145
146
147         public void setLocationInModelSubGraph(String locationInModelSubGraph) {
148                 this.locationInModelSubGraph = locationInModelSubGraph;
149         }
150
151
152         public void setSubResultSet(List<ResultSet> subResultSet) {
153                 this.subResultSet = subResultSet;
154         }
155
156
157         public void setPropertyOverRideHash(Map<String, Object> propertyOverRideHash) {
158                 this.propertyOverRideHash = propertyOverRideHash;
159         }
160
161
162         public void setExtraPropertyHash(Map<String, Object> extraPropertyHash) {
163                 this.extraPropertyHash = extraPropertyHash;
164         }
165         
166
167 }