Vidyashree Rama | deac28b | 2016-06-20 15:12:43 +0530 | [diff] [blame] | 1 | /*Copyright 2016.year Open Networking Laboratory |
| 2 | |
| 3 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | you may not use this file except in compliance with the License. |
| 5 | You may obtain a copy of the License at |
| 6 | |
| 7 | http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | |
| 9 | Unless required by applicable law or agreed to in writing, software |
| 10 | distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | See the License for the specific language governing permissions and |
| 13 | limitations under the License.*/ |
| 14 | |
| 15 | package org.onosproject.yangutils.datamodel; |
| 16 | |
| 17 | import java.util.List; |
| 18 | |
| 19 | /** |
| 20 | * Abstraction of feature entity. It is used to abstract the data holders of feature. |
| 21 | */ |
| 22 | public 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 | } |