blob: a3e15f26070d3156f0eb49a311fd6de2e6e76525 [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 feature entity. It is used to abstract the data holders of feature.
21 */
22public interface YangFeatureHolder {
23
24 /**
25 * Returns the list of feature from data holder like container / list.
26 *
27 * @return the list of feature
28 */
29 List<YangFeature> getFeatureList();
30
31 /**
32 * Adds feature in feature list.
33 *
34 * @param feature the feature to be added
35 */
36 void addFeatureList(YangFeature feature);
37
38 /**
39 * Sets the list of feature.
40 *
41 * @param listOfFeature the list of feature to set
42 */
43 void setListOfFeature(List<YangFeature> listOfFeature);
44}