2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
20 package org.onap.vid.asdc.beans.tosca;
21 import java.util.List;
22 import java.util.ArrayList;
25 * The Class Constraint.
28 public class Constraint {
29 private List<Object> valid_values;
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;
41 * Instantiates a new Constraint.
44 valid_values = new ArrayList<Object>();
45 in_range = new ArrayList<Object>();
49 * Gets the valid_values.
51 * @return the valid_values
53 public List<Object> getvalid_values() {
61 public Object getEqual() {
67 * @return greater_than
69 public Object getGreater_than() {
73 * Gets greater_or_equal.
75 * @return greater_or_equal
77 public Object getGreater_or_equal() {
78 return greater_or_equal;
85 public Object getLess_than() {
91 * @return less_or_equal
93 public Object getLess_or_equal() {
101 public List<Object> getIn_range() {
109 public Object getLength() {
117 public Object getMin_length() {
125 public Object getMax_length() {
129 * Sets the valid_values.
131 * @param op the new valid_values
133 public void setvalid_values(List<Object> vlist) {
134 this.valid_values = vlist;
139 * @param e the new equal
141 public void setEqual(Object e) {
147 * @param e the new greater_than
149 public void setGreater_than(Object e) {
150 this.greater_than = e;
155 * @param e the new less_than
157 public void setLess_than(Object e) {
163 * @param e the new in_range
165 public void setIn_range(List<Object> e) {
171 * @param e the length
173 public void setLength(Object e) {
179 * @param e the min_length
181 public void setMin_length(Object e) {
187 * @param e the max_length
189 public void setMax_length(Object e) {
193 * @see java.lang.Object#toString()
196 public String toString() {
197 return "valid_values=" + valid_values;