sonu gupta | 1bb37b8 | 2016-11-11 16:51:18 +0530 | [diff] [blame^] | 1 | /* |
| 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 | |
| 17 | package org.onosproject.yms.app.ydt; |
| 18 | |
| 19 | |
| 20 | import org.onosproject.yms.ydt.YdtListener; |
| 21 | |
| 22 | /** |
| 23 | * Abstraction of an entity which provide call back methods which are called |
| 24 | * by YDT extended walker while walking the YANG data tree. |
| 25 | * <p> |
| 26 | * This interface needs to be implemented by protocol implementing listener's |
| 27 | * based call backs while YDT walk, and update application specific information |
| 28 | * in data node. |
| 29 | */ |
| 30 | public interface YdtExtendedListener extends YdtListener { |
| 31 | |
| 32 | /** |
| 33 | * YANG data tree node's entry, it will be called during a node entry. |
| 34 | * <p> |
| 35 | * All the related information about the node can be obtain from the YDT |
| 36 | * context. Also it can be used to maintain / query application specific |
| 37 | * information. |
| 38 | * |
| 39 | * @param ydtExtendedContext YANG data tree context |
| 40 | */ |
| 41 | void enterYdtNode(YdtExtendedContext ydtExtendedContext); |
| 42 | |
| 43 | /** |
| 44 | * YANG data tree node's exit, it will be called during a node exit. |
| 45 | * <p> |
| 46 | * All the related information about the node can be obtain from the YDT |
| 47 | * context. Also it can be used to maintain / query application specific |
| 48 | * information. |
| 49 | * |
| 50 | * @param ydtExtendedContext YANG data tree context |
| 51 | */ |
| 52 | void exitYdtNode(YdtExtendedContext ydtExtendedContext); |
| 53 | } |