2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
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
9 package org.opendaylight.yangtools.yang.model.api;
12 import java.util.Date;
14 import org.opendaylight.yangtools.yang.common.QNameModule;
17 public interface ModuleIdentifier {
19 * Returns a {@link QNameModule}, which contains the namespace and
20 * the revision of the module.
22 * @return QNameModule identifier.
24 QNameModule getQNameModule();
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
30 * @return string with the name of the module
35 * Returns the namespace of the module which is specified as argument of
36 * YANG {@link Module <b><font color="#00FF00">namespace</font></b>}
37 * keyword. If you need both namespace and revision, please consider using
38 * {@link #getQNameModule()}.
40 * @return URI format of the namespace of the module
45 * Returns the revision date for the module. If you need both namespace and
46 * revision, please consider using {@link #getQNameModule()}.
48 * @return date of the module revision which is specified as argument of
49 * YANG {@link Module <b><font color="#339900">revison</font></b>}