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