blob: ff680ab5c60a73c3f093416866201ea2502e36f2 [file] [log] [blame]
sonu guptaeff184b2016-11-24 12:43:49 +05301/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2016-present Open Networking Foundation
sonu guptaeff184b2016-11-24 12:43:49 +05303 *
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 */
16package org.onosproject.yms.app.ydt;
17
18import org.onosproject.yms.ydt.YdtContext;
19
20import java.util.List;
21
22/**
23 * Represents a module/sub-module node in application tree.
24 */
25interface ModuleAppData extends AppData {
26
27 /**
28 * Returns the list of nodes with operation type delete.
29 *
30 * @return list of nodes with operation type delete
31 */
32 List<YdtContext> getDeleteNodes();
33
34 /**
35 * Adds the ydt node with operation type delete in module delete node list.
36 *
37 * @param node ydt node with operation type delete/remove
38 */
39 void addDeleteNodes(YdtContext node);
40
41 /**
42 * Returns application's root ydtContext.
43 *
44 * @return YdtContext of application root node
45 */
46 YdtContext getModuleContext();
47
48 /**
49 * Sets the application's ydtContext.
50 *
51 * @param moduleNode application's ydtContext
52 */
53 void setModuleContext(YdtExtendedContext moduleNode);
54}