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