Add ability to get yang sources from SchemaContext.
[yangtools.git] / yang / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / ModuleIdentifier.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
9 package org.opendaylight.yangtools.yang.model.api;
10
11 import java.net.URI;
12 import java.util.Date;
13
14
15 public interface ModuleIdentifier {
16
17     /**
18      * Returns the namespace of the module which is specified as argument of
19      * YANG {@link Module <b><font color="#00FF00">namespace</font></b>}
20      * keyword.
21      *
22      * @return URI format of the namespace of the module
23      */
24     URI getNamespace();
25
26     /**
27      * Returns the name of the module which is specified as argument of YANG
28      * {@link Module <b><font color="#FF0000">module</font></b>} keyword
29      *
30      * @return string with the name of the module
31      */
32     String getName();
33
34     /**
35      * Returns the revision date for the module.
36      *
37      * @return date of the module revision which is specified as argument of
38      *         YANG {@link Module <b><font color="#339900">revison</font></b>}
39      *         keyword
40      */
41     Date getRevision();
42 }