blob: 44872dfa43728af1ce7303a7a4bbd079c1c29019 [file] [log] [blame]
Gaurav Agrawal8c775582017-01-12 14:12:29 +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.yang;
18
19/**
20 * Representation of an entity which provides YANG module identifiers.
21 * Reference RFC 7895.
22 */
23public interface YangModuleId {
24
25 /**
26 * Returns the name of the YANG module.
27 *
28 * @return name of the YANG module
29 */
30 String moduleName();
31
32 /**
33 * Returns revision of the YANG module.
34 * <p>
35 * Reference RFC 7895
36 * Each YANG module and submodule within the library has a
37 * revision. This is derived from the most recent revision statement
38 * within the module or submodule. If no such revision statement
39 * exists, the module's or submodule's revision is the zero-length
40 * string.
41 *
42 * @return revision of the YANG module
43 */
44 String revision();
45}