blob: 3668de85b28244fb485c45b5e7854588c93cbfa9 [file] [log] [blame]
sonu gupta1bb37b82016-11-11 16:51:18 +05301/*
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
17package org.onosproject.yms.app.ydt;
18
19import org.onosproject.yangutils.datamodel.YangSchemaNode;
20import org.onosproject.yangutils.datamodel.YangSchemaNodeContextInfo;
21import org.onosproject.yangutils.datamodel.YangSchemaNodeIdentifier;
22import org.onosproject.yms.ydt.YdtContext;
23import org.onosproject.yms.ydt.YdtContextOperationType;
24
25/**
26 * Abstraction of an entity which represents application related information
27 * maintained in YDT.
28 */
29public interface YdtExtendedContext extends YdtContext {
30
31 /**
32 * Returns the application stored information. Application type is used to
33 * identify application.
34 *
35 * @param appType application type
36 * @return application information
37 */
38 Object getAppInfo(AppType appType);
39
40 /**
41 * Sets application stored information. Application type is used to
42 * identify application.
43 *
44 * @param appType application type
45 * @param object application information object
46 */
47 void addAppInfo(AppType appType, Object object);
48
49 /**
50 * Returns child schema node context information. It is used by YMS to
51 * obtain the child schema corresponding to data node identifier.
52 *
53 * @param id represents a identifier of YANG data tree node
54 * @return YANG data node context information
55 */
56 YangSchemaNodeContextInfo getSchemaNodeContextInfo(
57 YangSchemaNodeIdentifier id);
58
59 /**
60 * Returns schema node from data model for curNode.
61 *
62 * @return yang schema node
63 */
64 YangSchemaNode getYangSchemaNode();
65
66 /**
67 * Returns YDT current extended context operation type.
68 *
69 * @return operation type
70 */
71 YdtContextOperationType getYdtContextOperationType();
72}