import java.util.List;
import java.util.Set;
+import javax.annotation.Nonnull;
import javax.annotation.concurrent.Immutable;
+import org.opendaylight.yangtools.concepts.SemVer;
+import org.opendaylight.yangtools.yang.common.YangVersion;
/**
* This interface contains the methods for getting the data from the YANG
- * module.<br />
- * <br />
- * <i>Example of YANG module</i> <code><br/>
- * {@link #getName() <b><font color="#FF0000">module</font></b>} module_name{<br />
- {@link #getYangVersion() <b><font color="#8b4513">yang-version</font></b>} "1";<br /><br />
+ * module.<br>
+ * <br>
+ * <i>Example of YANG module</i> <code><br>
+ * {@link #getName() <b><font color="#FF0000">module</font></b>} module_name{<br>
+ {@link #getYangVersion() <b><font color="#8b4513">yang-version</font></b>} "1";<br><br>
- {@link #getNamespace() <b><font color="#00FF00">namespace</font></b>} "urn:module:namespace";<br />
- {@link #getPrefix() <b><font color="#0000FF">prefix</font></b><a name="prefix"></a>} "prefix";<br /><br />
+ {@link #getNamespace() <b><font color="#00FF00">namespace</font></b>} "urn:module:namespace";<br>
+ {@link #getPrefix() <b><font color="#0000FF">prefix</font></b><a name="prefix"></a>} "prefix";<br><br>
- {@link #getDescription() <b><font color="#b8860b">description</font></b>} "description test";<br />
- {@link #getReference() <b><font color="#008b8b">reference</font></b>} "reference test";<br /><br />
+ {@link #getDescription() <b><font color="#b8860b">description</font></b>} "description test";<br>
+ {@link #getReference() <b><font color="#008b8b">reference</font></b>} "reference test";<br><br>
- {@link #getOrganization() <b><font color="#606060">organization</font></b>} "John Doe, john.doe@email.com";<br />
- {@link #getContact() <b><font color="#FF9900">contact</font></b>} "http://www.opendaylight.org/";<br /><br />
+ {@link #getOrganization() <b><font color="#606060">organization</font></b>}
+ "John Doe, john.doe@email.com";<br>
+ {@link #getContact() <b><font color="#FF9900">contact</font></b>} "http://www.opendaylight.org/";<br>
+ <br>
- {@link #getFeatures() <b><font color="#8b0000">feature</font></b>} feature-test{<br />
- description "description of some feature";<br />
- }</br>
+ {@link #getFeatures() <b><font color="#8b0000">feature</font></b>} feature-test{<br>
+ description "description of some feature";<br>
+ }<br>
- {@link #getNotifications() <b><font color="#b22222">notification</font></b>} notification-test;<br />
- {@link #getRpcs() <b><font color="#d2691e">rpc</font></b>} rpc-test;<br />
- <!-- {@link #getDeviations() <b><font color="#b8860b">deviation</font></b>} deviation-test;<br /> -->
- {@link #getIdentities() <b><font color="#bdb76b">identity</font></b>} identity-test;<br />
- {@link #getExtensionSchemaNodes() <b><font color="#808000">extension</font></b>} extension-test;<br />
+ {@link #getNotifications() <b><font color="#b22222">notification</font></b>} notification-test;<br>
+ {@link #getRpcs() <b><font color="#d2691e">rpc</font></b>} rpc-test;<br>
+ <!-- {@link #getDeviations() <b><font color="#b8860b">deviation</font></b>} deviation-test;<br> -->
+ {@link #getIdentities() <b><font color="#bdb76b">identity</font></b>} identity-test;<br>
+ {@link #getExtensionSchemaNodes() <b><font color="#808000">extension</font></b>} extension-test;<br>
- {@link #getRevision() <b><font color="#339900">revision</font></b>} 2011-08-27 {<br />
+ {@link #getRevision() <b><font color="#339900">revision</font></b>} 2011-08-27 {<br>
- {@link #getImports() <b><font color="#9400d3">import</font></b>} other_module {<br />
- prefix "other_module_prefix"<br />
- revision-date 2011-08-27<br />
- }<br /><br />
+ {@link #getImports() <b><font color="#9400d3">import</font></b>} other_module {<br>
+ prefix "other_module_prefix"<br>
+ revision-date 2011-08-27<br>
+ }<br><br>
- container cont {<br />
- }<br />
+ container cont {<br>
+ }<br>
- {@link #getAugmentations() <b><font color="#dc143c">augment</font></b>} "/cont" { ;<br />
- }<br />
+ {@link #getAugmentations() <b><font color="#dc143c">augment</font></b>} "/cont" { ;<br>
+ }<br>
}
</code>
*/
@Immutable
-public interface Module extends DataNodeContainer, SourceStreamAware, ModuleIdentifier {
-
+public interface Module extends DataNodeContainer, ModuleIdentifier, NotificationNodeContainer {
+ /**
+ * Default semantic version of Module.
+ */
+ SemVer DEFAULT_SEMANTIC_VERSION = SemVer.create(0, 0, 0);
/**
- * Returns the prefix of the module
+ * Returns the prefix of the module.
*
* @return string with the module prefix which is specified as argument of
* YANG {@link Module <b><font color="#0000FF">prefix</font></b>}
/**
* Returns the YANG version.
*
- * Default value is 1.
- *
- * @return string with the module YANG version which is specified as
- * argument of YANG {@link Module <b> <font
- * color="#8b4513">yang-version</font></b>} keyword
+ * @return YANG version of this module.
*/
- String getYangVersion();
+ YangVersion getYangVersion();
/**
* Returns the module description.
/**
* Returns the module contact.
*
+ * <p>
* The contact represents the person or persons to whom technical queries
* concerning this module should be sent, such as their name, postal
* address, telephone number, and electronic mail address.
*/
Set<ModuleImport> getImports();
+ Set<Module> getSubmodules();
+
/**
* Returns <code>FeatureDefinition</code> instances which contain data from
* <b>feature</b> statements defined in the module.
*
+ * <p>
* The feature is used to define a mechanism by which portions of the schema
* are marked as conditional.
*
*/
Set<FeatureDefinition> getFeatures();
- /**
- * Returns <code>NotificationDefinition</code> instances which contain data
- * from <b>notification</b> statements defined in the module.
- *
- * @return notification statements in lexicographical order which are
- * specified in the module as the argument of YANG {@link Module
- * <b><font color="#b22222">notification</font></b>} keywords.
- */
- Set<NotificationDefinition> getNotifications();
-
/**
* Returns <code>AugmentationSchema</code> instances which contain data from
* <b>augment</b> statements defined in the module.
*
* @return unknown nodes in lexicographical order
*/
+ @Nonnull
List<UnknownSchemaNode> getUnknownSchemaNodes();
-
- /**
- * Get yang source.
- */
- String getSource();
-
}