blob: badd3d9d8a528669386659134ec3f1e3bb160333 [file] [log] [blame]
Vidyashree Ramadeac28b2016-06-20 15:12:43 +05301/*
2 * Copyright 2016-present Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package org.onosproject.yangutils.datamodel;
18
19import java.util.List;
20
21/**
22 * Abstraction of must entity. It is used to abstract the data holders of must.
23 */
24public interface YangMustHolder {
25
26 /**
27 * Returns the list of must from data holder like container / list.
28 *
29 * @return the list of must
30 */
31 List<YangMust> getListOfMust();
32
33 /**
34 * Sets the list of must.
35 *
36 * @param mustConstraintList the list of must to set
37 */
38 void setListOfMust(List<YangMust> mustConstraintList);
39
40 /**
41 * Adds must in data holder like container / list.
42 *
43 * @param must the must to be added
44 */
45 void addMust(YangMust must);
46}