org.onap migration
[vid.git] / vid-app-common / src / main / java / org / onap / vid / asdc / beans / tosca / Constraint.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * VID
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 package org.onap.vid.asdc.beans.tosca;
21 import java.util.List;
22 import java.util.ArrayList;
23
24 /**
25  * The Class Constraint.
26  */
27
28 public class Constraint {
29         private  List<Object> valid_values;  
30         private Object equal;
31         private Object greater_than;
32         private Object greater_or_equal;
33         private Object less_than;
34         private Object less_or_equal;
35         private List<Object> in_range;
36         private Object length;
37         private Object min_length;
38         private Object max_length;
39         
40         /**
41          * Instantiates a new Constraint.
42          */
43         public Constraint() {
44                 valid_values = new ArrayList<Object>();
45                 in_range = new ArrayList<Object>();
46         }
47         
48         /**
49          * Gets the valid_values.
50          *
51          * @return the valid_values
52          */
53         public List<Object> getvalid_values() {
54                 return valid_values;
55         }
56         /**
57          * Gets equal.
58          *
59          * @return equal
60          */
61         public Object getEqual() {
62                 return equal;
63         }
64         /**
65          * Gets greater_than.
66          *
67          * @return greater_than
68          */
69         public Object getGreater_than() {
70                 return greater_than;
71         }
72         /**
73          * Gets greater_or_equal.
74          *
75          * @return greater_or_equal
76          */
77         public Object getGreater_or_equal() {
78                 return greater_or_equal;
79         }
80         /**
81          * Gets less_than.
82          *
83          * @return less_than
84          */
85         public Object getLess_than() {
86                 return less_than;
87         }
88         /**
89          * Gets less_or_equal.
90          *
91          * @return less_or_equal
92          */
93         public Object getLess_or_equal() {
94                 return less_or_equal;
95         }
96         /**
97          * Gets in_range.
98          *
99          * @return in_range
100          */
101         public List<Object> getIn_range() {
102                 return in_range;
103         }
104         /**
105          * Gets length.
106          *
107          * @return length
108          */
109         public Object getLength() {
110                 return length;
111         }
112         /**
113          * Gets min_length.
114          *
115          * @return min_length
116          */
117         public Object getMin_length() {
118                 return min_length;
119         }
120         /**
121          * Gets max_length.
122          *
123          * @return max_length
124          */
125         public Object getMax_length() {
126                 return max_length;
127         }
128         /**
129          * Sets the valid_values.
130          *
131          * @param op the new valid_values
132          */
133         public void setvalid_values(List<Object> vlist) {
134                 this.valid_values = vlist;
135         }
136         /**
137          * Sets equal.
138          *
139          * @param e the new equal
140          */
141         public void setEqual(Object e) {
142                 this.equal = e;
143         }
144         /**
145          * Sets greater_than.
146          *
147          * @param e the new greater_than
148          */
149         public void setGreater_than(Object e) {
150                 this.greater_than = e;
151         }
152         /**
153          * Sets less_than.
154          *
155          * @param e the new less_than
156          */
157         public void setLess_than(Object e) {
158                 this.less_than = e;
159         }
160         /**
161          * Sets in_range.
162          *
163          * @param e the new in_range
164          */
165         public void setIn_range(List<Object> e) {
166                 this.in_range = e;
167         }
168         /**
169          * Sets length.
170          *
171          * @param e the length
172          */
173         public void setLength(Object e) {
174                 this.length = e;
175         }
176         /**
177          * Sets min_length.
178          *
179          * @param e the min_length
180          */
181         public void setMin_length(Object e) {
182                 this.min_length = e;
183         }
184         /**
185          * Sets max_length.
186          *
187          * @param e the max_length
188          */
189         public void setMax_length(Object e) {
190                 this.max_length = e;
191         }
192         /* (non-Javadoc)
193          * @see java.lang.Object#toString()
194          */
195         @Override
196         public String toString() {
197                 return "valid_values=" + valid_values;
198         }
199 }