blob: 77323f154658cf4d33fb1b4bcee3c48b99ffc524 [file] [log] [blame]
Gaurav Agrawal95b416c2016-06-07 14:00:26 +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.yangutils.datamodel;
18
19/**
20 * Abstraction of information about entity being resolved.
21 *
22 * @param <T> type of entity being resolved, uses / grouping
23 */
24public interface YangEntityToResolveInfo<T> {
25
26 /**
27 * Retrieves the entity to be resolved.
28 *
29 * @return entity to be resolved
30 */
31 T getEntityToResolve();
32
33 /**
34 * Sets entity to be resolved.
35 *
36 * @param entityToResolve entity to be resolved
37 */
38 void setEntityToResolve(T entityToResolve);
39
40 /**
41 * Retrieves the parent node which contains the entity to be resolved.
42 *
43 * @return parent node which contains the entity to be resolved
44 */
45 YangNode getHolderOfEntityToResolve();
46
47 /**
48 * Sets parent node which contains the entity to be resolved.
49 *
50 * @param holderOfEntityToResolve parent node which contains the entity to
51 * be resolved
52 */
53 void setHolderOfEntityToResolve(YangNode holderOfEntityToResolve);
54}