X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=yang%2Fyang-model-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fmodel%2Fapi%2FModule.java;h=9a28d8fe633a247c75724c767a1a5e702d295473;hb=c13c841a2311ac4c0c507451624e0b3ddf26e775;hp=3d5cdee20592022588cd10d36a3036f356838ecb;hpb=3c2966103237d8c6c270105562cc4eda3871859a;p=yangtools.git diff --git a/yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/Module.java b/yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/Module.java index 3d5cdee205..9a28d8fe63 100644 --- a/yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/Module.java +++ b/yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/Module.java @@ -7,10 +7,9 @@ */ package org.opendaylight.yangtools.yang.model.api; -import java.net.URI; -import java.util.Date; import java.util.List; import java.util.Set; +import javax.annotation.concurrent.Immutable; /** * This interface contains the methods for getting the data from the YANG @@ -56,35 +55,8 @@ import java.util.Set; */ - -public interface Module extends DataNodeContainer, YangNode { - - /** - * Returns the namespace of the module which is specified as argument of - * YANG {@link Module namespace} - * keyword. - * - * @return URI format of the namespace of the module - */ - URI getNamespace(); - - /** - * Returns the name of the module which is specified as argument of YANG - * {@link Module module} keyword - * - * @return string with the name of the module - */ - String getName(); - - /** - * Returns the revision date for the module. - * - * @return date of the module revision which is specified as argument of - * YANG {@link Module revison} - * keyword - */ - Date getRevision(); - +@Immutable +public interface Module extends DataNodeContainer, SourceStreamAware, ModuleIdentifier { /** * Returns the prefix of the module * @@ -155,6 +127,8 @@ public interface Module extends DataNodeContainer, YangNode { */ Set getImports(); + Set getSubmodules(); + /** * Returns FeatureDefinition instances which contain data from * feature statements defined in the module. @@ -185,7 +159,7 @@ public interface Module extends DataNodeContainer, YangNode { * @return set of the augmentation schema instances which are specified in * the module as YANG {@link Module augment} keyword and are - * lexicographicaly ordered + * lexicographically ordered */ Set getAugmentations(); @@ -215,7 +189,7 @@ public interface Module extends DataNodeContainer, YangNode { * @return set of identity schema node instances which are specified in the * module as YANG {@link Module identity} keywords and are - * lexicographicaly ordered + * lexicographically ordered */ Set getIdentities(); @@ -226,7 +200,7 @@ public interface Module extends DataNodeContainer, YangNode { * @return set of extension definition instances which are specified in the * module as YANG {@link Module extension} keyword and are - * lexicographicaly ordered + * lexicographically ordered */ List getExtensionSchemaNodes(); @@ -237,4 +211,9 @@ public interface Module extends DataNodeContainer, YangNode { */ List getUnknownSchemaNodes(); + /** + * Get yang source. + */ + String getSource(); + }