28d934fc07ec8593b8317059d9e978d8d67ccbbd
[yangtools.git] / yang / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / ModuleImport.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.yangtools.yang.model.api;
9
10 import java.util.Date;
11
12 /**
13  * Interface describing YANG 'import' statement.
14  * <p>
15  * The import statement makes definitions from one module available inside
16  * another module or submodule.
17  * </p>
18  */
19 public interface ModuleImport {
20
21     /**
22      * @return Name of the module to import
23      */
24     String getModuleName();
25
26     /**
27      * @return Revision of module to import
28      */
29     Date getRevision();
30
31     /**
32      * @return Prefix used to point to imported module
33      */
34     String getPrefix();
35
36 }