blob: 4c92b977df8636f8f344f4ac64b7ef295496cba8 [file] [log] [blame]
Gaurav Agrawald9d6cc82016-03-29 02:17:23 +05301/*
2 * Copyright 2016 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 YANG resolvable information. Abstracted to obtain the
21 * information required for linking resolution.
22 */
23public interface Resolvable {
24
25 /**
26 * Returns the status of resolution. If completely resolved returns enum
27 * value "RESOLVED", if not returns "UNRESOLVED", in case reference of
28 * grouping/typedef is added to uses/type but it's not resolved
29 * "PARTIALLY_RESOLVED" is returned.
30 *
31 * @return status of resolution
32 */
33 ResolvableStatus getResolvableStatus();
34
35 /**
36 * Set the status of type/uses resolution. If completely resolved set enum
37 * value "RESOLVED", if not set it to "UNRESOLVED", in case reference of
38 * grouping/typedef is added to uses/type but it's not resolved
39 * "PARTIALLY_RESOLVED" should be set.
40 *
41 * @param resolvableStatus status of resolution
42 */
43 void setResolvableStatus(ResolvableStatus resolvableStatus);
44
45 /**
46 * Resolves the linking.
47 */
48 void resolve();
49}