Cleanup checkstyle in yang-{data,model}-api 30/58230/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 5 Jun 2017 08:36:36 +0000 (10:36 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 5 Jun 2017 09:34:19 +0000 (11:34 +0200)
Clean up code and activate enforcement.

Change-Id: I66669e0ff80aefa6f3b187337d84efe73b10b320
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
79 files changed:
yang/yang-data-api/pom.xml
yang/yang-data-api/src/main/java/org/opendaylight/yangtools/yang/data/api/YangInstanceIdentifier.java
yang/yang-model-api/pom.xml
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/ActionDefinition.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/ActionNodeContainer.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/AnyDataSchemaNode.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/AugmentationSchema.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/AugmentationTarget.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/ChoiceSchemaNode.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/ConstraintDefinition.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/ContainerSchemaNode.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/DataNodeContainer.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/DataSchemaNode.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/DeviateDefinition.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/DeviateKind.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/Deviation.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/DocumentedNode.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/ExtensionDefinition.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/GroupingDefinition.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/IdentitySchemaNode.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/ListSchemaNode.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/Module.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/ModuleIdentifier.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/ModuleImport.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/MustDefinition.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/NamespaceRevisionAware.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/NotificationNodeContainer.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/OperationDefinition.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/SchemaContext.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/SchemaPath.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/SourceStreamAware.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/TypeDefinition.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/UniqueConstraint.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/UnknownSchemaNode.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/UsesNode.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/YangModeledAnyXmlSchemaNode.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/meta/DeclaredStatement.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/meta/EffectiveStatement.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/meta/IdentifierNamespace.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/meta/ModelStatement.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/meta/StatementDefinition.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/meta/StatementSource.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/meta/package-info.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/stmt/ActionStatement.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/stmt/ActionStatementContainer.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/stmt/AnydataStatement.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/stmt/CaseStatement.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/stmt/DataDefinitionStatement.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/stmt/IdentityStatement.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/stmt/IfFeatureStatement.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/stmt/ModifierStatement.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/stmt/NotificationStatement.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/stmt/OperationGroup.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/stmt/RefineStatement.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/stmt/SchemaNodeIdentifier.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/stmt/StatusStatement.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/stmt/TypeEffectiveStatement.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/stmt/TypeStatement.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/type/BinaryTypeDefinition.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/type/BitsTypeDefinition.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/type/DecimalTypeDefinition.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/type/IdentityTypeDefinition.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/type/IdentityrefTypeDefinition.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/type/IntegerTypeDefinition.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/type/ModifierKind.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/type/UnsignedIntegerTypeDefinition.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/repo/api/MissingSchemaSourceException.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/repo/api/RevisionSourceIdentifier.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/repo/api/SchemaRepository.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/repo/api/SchemaResolutionException.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/repo/api/SchemaSourceRepresentation.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/repo/api/SemVerSourceIdentifier.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/repo/api/SourceIdentifier.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/repo/api/YinDomSchemaSource.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/repo/api/YinTextSchemaSource.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/repo/spi/PotentialSchemaSource.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/repo/spi/SchemaSourceProvider.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/repo/spi/SchemaSourceRegistration.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/repo/spi/SchemaSourceRegistry.java

index af4b1d13c4df5f1ca8be49bd732e768bbdcd4cf5..cac2050c10be38c7773b6695c0b8438f5a44adb8 100644 (file)
         </dependency>
     </dependencies>
 
-  <!--
-      Maven Site Configuration
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-checkstyle-plugin</artifactId>
+                <configuration>
+                    <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
 
-      The following configuration is necessary for maven-site-plugin to
-      correctly identify the correct deployment path for OpenDaylight Maven
-      sites.
-  -->
-  <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
+    <!--
+        Maven Site Configuration
 
-  <distributionManagement>
-    <site>
-      <id>opendaylight-site</id>
-      <url>${nexus.site.url}/${project.artifactId}/</url>
-    </site>
-  </distributionManagement>
+        The following configuration is necessary for maven-site-plugin to
+        correctly identify the correct deployment path for OpenDaylight Maven
+        sites.
+    -->
+    <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
+
+    <distributionManagement>
+        <site>
+            <id>opendaylight-site</id>
+            <url>${nexus.site.url}/${project.artifactId}/</url>
+        </site>
+    </distributionManagement>
 </project>
index 7ee6cf8a9b396f92fcf10b99450db7c91f0c949e..04f4e8afcf9acdd647f883a0f1917b494f32f28c 100644 (file)
@@ -548,6 +548,7 @@ public abstract class YangInstanceIdentifier implements Path<YangInstanceIdentif
         }
 
         @Override
+        @SuppressWarnings("checkstyle:equalsHashCode")
         public boolean equals(final Object obj) {
             if (!super.equals(obj)) {
                 return false;
@@ -612,6 +613,7 @@ public abstract class YangInstanceIdentifier implements Path<YangInstanceIdentif
         }
 
         @Override
+        @SuppressWarnings("checkstyle:equalsHashCode")
         public boolean equals(final Object obj) {
             if (!super.equals(obj)) {
                 return false;
index 00f1b99bd6ad6fff462bedc8c4cc6518b0745d04..f3e80a4994caa4395e72c07177cdade99144da55 100644 (file)
         </dependency>
     </dependencies>
 
-  <!--
-      Maven Site Configuration
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-checkstyle-plugin</artifactId>
+                <configuration>
+                    <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
 
-      The following configuration is necessary for maven-site-plugin to
-      correctly identify the correct deployment path for OpenDaylight Maven
-      sites.
-  -->
-  <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
+    <!--
+        Maven Site Configuration
+
+        The following configuration is necessary for maven-site-plugin to
+        correctly identify the correct deployment path for OpenDaylight Maven
+        sites.
+    -->
+    <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
 
   <distributionManagement>
     <site>
index 26d6729d1cbb6f1eb824cea8218e5d379a22b206..3940ee0db659a961f55894e96833af252818c638 100644 (file)
@@ -9,11 +9,11 @@
 package org.opendaylight.yangtools.yang.model.api;
 
 import com.google.common.annotations.Beta;
-import java.util.Set;
 
 /**
- * Represents YANG action statement
+ * Represents YANG action statement.
  *
+ * <p>
  * The "action" statement is used to define an operation connected to a
  * specific container or list data node.  It takes one argument, which
  * is an identifier, followed by a block of substatements that holds
index b46df1fb416ed6204ba0d455f9390ddedc36baad..6a7929ac7472cb8350f74f1f4952b6d14b6c3d2b 100644 (file)
@@ -13,11 +13,10 @@ import com.google.common.collect.ImmutableSet;
 import java.util.Set;
 
 /**
- * Node which can contain action nodes
+ * Node which can contain action nodes.
  */
 @Beta
 public interface ActionNodeContainer {
-
     /**
      * All implementations should override this method.
      * The default definition of this method is used in YANG 1.0 (RFC6020) implementations of
@@ -25,6 +24,7 @@ public interface ActionNodeContainer {
      * which do not allow action statements.
      * These YANG statements have been changed in YANG 1.1 (RFC7950) and can now contain action statements.
      *
+     * <p>
      * The default definition is also used by implementations of ContainerSchemaNode which do not support
      * action statements such as InputEffectiveStatementImpl, OutputEffectiveStatementImpl and SchemaContext.
      *
index 43421a2987a06beb340764089c6c4fa0f399bcda..a82b2b4cf66d2711d3005861a759ddf2643887fe 100644 (file)
@@ -16,6 +16,7 @@ import javax.annotation.Nullable;
  * It takes one argument, which is an identifier, followed by a block of
  * substatements that holds detailed anydata information.
  *
+ * <p>
  * The "anydata" statement is used to represent an unknown set of nodes
  * that can be modeled with YANG, except anyxml, but for which the data
  * model is not known at module design time.  It is possible, though not
@@ -25,8 +26,9 @@ import javax.annotation.Nullable;
  */
 @Beta
 public interface AnyDataSchemaNode extends DataSchemaNode {
-
     /**
+     * Schema of XML data.
+     *
      * @return schema of contained XML data or null if it is not provided
      */
     @Nullable ContainerSchemaNode getSchemaOfAnyData();
index 8291c70cea7676a4ab713082c498fc43a236de5a..b68e61a591bdf972f70e66ea1f128625324c2981 100644 (file)
@@ -17,10 +17,10 @@ import java.util.List;
  * from a grouping in a "uses" statement.
  */
 public interface AugmentationSchema extends DataNodeContainer, NotificationNodeContainer, ActionNodeContainer {
-
     /**
-     * Returns when statement
+     * Returns when statement.
      *
+     * <p>
      * If when condition is present node defined by the parent data definition
      * statement is only valid when the returned XPath
      * expression conceptually evaluates to "true"
@@ -32,22 +32,30 @@ public interface AugmentationSchema extends DataNodeContainer, NotificationNodeC
     RevisionAwareXPath getWhenCondition();
 
     /**
+     * Returns description text.
+     *
      * @return textual description of this augment.
      */
     String getDescription();
 
     /**
+     * Returns reference text.
+     *
      * @return textual cross-reference to an external document that provides
      *         additional information relevant to this node.
      */
     String getReference();
 
     /**
+     * Returns status of this node.
+     *
      * @return actual status of this node.
      */
     Status getStatus();
 
     /**
+     * Returns augmentation schema path.
+     *
      * @return SchemaPath that identifies a node in the schema tree. This node
      *         is called the augment's target node. The target node MUST be
      *         either a container, list, choice, case, input, output, or
@@ -57,6 +65,8 @@ public interface AugmentationSchema extends DataNodeContainer, NotificationNodeC
     SchemaPath getTargetPath();
 
     /**
+     * Returns unknown schema node children.
+     *
      * @return collection of all unknown nodes defined in this augmentation
      */
     List<UnknownSchemaNode> getUnknownSchemaNodes();
index 107a5db65b83b85642d833e6ea07ca0f4898cebb..d0e664624f94219ef01777f8952c44ee00188bc2 100644 (file)
@@ -15,10 +15,10 @@ import java.util.Set;
  * input, output, or notification node.
  */
 public interface AugmentationTarget {
-
     /**
+     * Returns augmentations targeting this element.
+     *
      * @return set of augmentations targeting this element.
      */
     Set<AugmentationSchema> getAvailableAugmentations();
-
 }
index 4c243a971036f7c73369bb8b0df685ed69b2967d..0da6676886132a9ba0bcc91a0b39b37fa8f16ab4 100644 (file)
@@ -25,7 +25,6 @@ public interface ChoiceSchemaNode extends DataSchemaNode, AugmentationTarget {
     Set<ChoiceCaseNode> getCases();
 
     /**
-     *
      * Returns the concrete case according to specified Q name.
      *
      * @param name
@@ -46,8 +45,7 @@ public interface ChoiceSchemaNode extends DataSchemaNode, AugmentationTarget {
     ChoiceCaseNode getCaseNodeByName(String name);
 
     /**
-     *
-     * Returns name of case which is in the choice specified as default
+     * Returns name of case which is in the choice specified as default.
      *
      * @return string with the name of case which is specified in the argument
      *         of the YANG <code>default</code> substatement of
index 30b690df52bf79ee0b093c2066d0d37b0fd09e29..6da5c0e1160f08cfa8607a0ebe98a729ebdd023f 100644 (file)
@@ -31,7 +31,6 @@ public interface ConstraintDefinition {
      * Specifies the rules which the node which contains <code>must</code> YANG
      * substatement has to match.
      *
-     *
      * @return set of <code>MustDefinition</code> (XPath) instances which
      *         represents the concrete data constraints
      */
@@ -41,8 +40,8 @@ public interface ConstraintDefinition {
      * Expreses if the presence of the data element for which this constraint is
      * specified is|isn't required.
      *
+     * <p>
      * Contains the value of the <b>mandatory</b> YANG substatement.
-     *
      * It is used with YANG statements leaf, choice, anyxml, deviate.
      *
      * @return boolean value:
@@ -59,9 +58,9 @@ public interface ConstraintDefinition {
      * Returns the minimum required number of data elements for node where this
      * constraint is specified.
      *
+     * <p>
      * The returning value equals to value of the argument of the
      * <b>min-elements</b> YANG substatement.
-     *
      * It is used with YANG statements leaf-list, list, deviate.
      *
      * @return integer with minimal number of elements, or null if no minimum is defined
@@ -72,9 +71,9 @@ public interface ConstraintDefinition {
      * Returns the maximum admissible number of data elements for node where
      * this constraint is specified.
      *
+     * <p>
      * The returning value equals to value of the argument of the
      * <b>max-elements</b> YANG substatement.
-     *
      * It is used with YANG statements leaf-list, list, deviate.
      *
      * @return integer with maximum number of elements, or null if no maximum is defined
index cd4996e8f951977c4003c2b94d683f231627183b..bb7d8bd5e0f66b330699f898edb4dd5ff3754d50 100644 (file)
@@ -15,8 +15,9 @@ package org.opendaylight.yangtools.yang.model.api;
  */
 public interface ContainerSchemaNode extends DataNodeContainer,
         AugmentationTarget, DataSchemaNode, NotificationNodeContainer, ActionNodeContainer {
-
     /**
+     * Returns true if this container is marked as presence.
+     *
      * @return true, if presence of this container has an explicit meaning,
      *         false otherwise
      */
index 872a66ea6b66b6cc77795d848dff5fe651812a4f..d07be7d64d8586a0cd3f8fd5c7af7f4aa0f5b262 100644 (file)
@@ -40,14 +40,18 @@ public interface DataNodeContainer {
     Set<GroupingDefinition> getGroupings();
 
     /**
+     * Returns the child node corresponding to the specified name.
+     *
      * @param name
-     *            QName of seeked child
+     *            QName of child
      * @return child node of this DataNodeContainer if child with given name is
      *         present, null otherwise
      */
     DataSchemaNode getDataChildByName(QName name);
 
     /**
+     * Returns grouping nodes used ny this container.
+     *
      * @return Set of all uses nodes defined within this DataNodeContainer
      */
     Set<UsesNode> getUses();
index c43c340566ef361fda41a33d0f4d9bf8060a422c..4c27eacd4760e1ffdde0ad5e9c09258c571794b6 100644 (file)
@@ -8,10 +8,10 @@
 package org.opendaylight.yangtools.yang.model.api;
 
 /**
- *
  * Data Schema Node represents abstract supertype from which all data tree
  * definitions are derived.
  *
+ * <p>
  * Contains the method which are used for getting metadata from the schema nodes
  * which contains data.
  *
@@ -23,14 +23,11 @@ package org.opendaylight.yangtools.yang.model.api;
  * @see LeafSchemaNode
  * @see AnyXmlSchemaNode
  * @see AnyDataSchemaNode
- *
- *
  */
 public interface DataSchemaNode extends SchemaNode {
-
     /**
      * Returns <code>true</code> if the data node was added by augmentation,
-     * otherwise returns <code>false</code>
+     * otherwise returns <code>false</code>.
      *
      * @return <code>true</code> if the data node was added by augmentation,
      *         otherwise returns <code>false</code>
@@ -39,7 +36,7 @@ public interface DataSchemaNode extends SchemaNode {
 
     /**
      * Returns <code>true</code> if the data node was added by uses statement,
-     * otherwise returns <code>false</code>
+     * otherwise returns <code>false</code>.
      *
      * @return <code>true</code> if the data node was added by uses statement,
      *         otherwise returns <code>false</code>
@@ -48,7 +45,7 @@ public interface DataSchemaNode extends SchemaNode {
 
     /**
      * Returns <code>true</code> if the data represents configuration data,
-     * otherwise returns <code>false</code>
+     * otherwise returns <code>false</code>.
      *
      * @return <code>true</code> if the data represents configuration data,
      *         otherwise returns <code>false</code>
@@ -56,7 +53,7 @@ public interface DataSchemaNode extends SchemaNode {
     boolean isConfiguration();
 
     /**
-     * Returns the constraints associated with Data Schema Node
+     * Returns the constraints associated with Data Schema Node.
      *
      * @return the constraints associated with Data Schema Node
      */
index 7b42318e1aa5992df24aac68e821de5ac5dab2f8..d77c03b547cfee53d1f17a09b83172300c556526 100644 (file)
@@ -13,70 +13,80 @@ import java.util.Collection;
 import java.util.Set;
 
 /**
- * Interface describing YANG 'deviate' statement
+ * Interface describing YANG 'deviate' statement.
  *
+ * <p>
  * The 'deviate' statement defines how the device's implementation of
  * the target node deviates from its original definition.
  * The argument is one of the strings "not-supported", "add", "replace", or "delete".
  */
 @Beta
 public interface DeviateDefinition {
-
     /**
+     * Return deviation kind.
      *
      * @return enum which describes the type of this deviate statement
      */
     DeviateKind getDeviateType();
 
     /**
+     * Returns deviated config value.
      *
      * @return value of the deviated config statement or null if it is not deviated
      */
     Boolean getDeviatedConfig();
 
     /**
+     * Returns deviated default value.
      *
      * @return value of the deviated default statement or null if it is not deviated
      */
     String getDeviatedDefault();
 
     /**
+     * Returns deviated mandatory value.
      *
      * @return value of the deviated mandatory statement or null if it is not deviated
      */
     Boolean getDeviatedMandatory();
 
     /**
+     * Returns deviated max-elements.
      *
      * @return value of the deviated max-elements statement or null if it is not deviated
      */
     Integer getDeviatedMaxElements();
 
     /**
+     * Returns deviated min-elements.
      *
      * @return value of the deviated min-elements statement or null if it is not deviated
      */
     Integer getDeviatedMinElements();
 
     /**
+     * Returns deviated must statements.
      *
      * @return set of the deviated must statements
      */
     Set<MustDefinition> getDeviatedMusts();
 
     /**
+     * Returns deviated type statement.
      *
      * @return deviated type statement or null if it is not deviated
      */
     TypeDefinition<?> getDeviatedType();
 
     /**
+     * Returns deviated unique statements.
      *
      * @return collection of the deviated unique statements
      */
     Collection<UniqueConstraint> getDeviatedUniques();
 
     /**
+     * Returns deviated units statement.
      *
      * @return value of the deviated units statement or null if it is not deviated
      */
index 4fa9d0f28c849279cc859afdf2fef5f9b159c4c3..30fe1a4c42008443dd2709f88190c9f6aa68bf7c 100644 (file)
@@ -26,6 +26,8 @@ public enum DeviateKind {
     }
 
     /**
+     * Returns the YANG keyword corresponding to this object.
+     *
      * @return String that corresponds to the yang keyword.
      */
     public String getKeyword() {
index 75b20b192de21a826dfef440878a6543f48937a7..e3d3663f1e115a4da887a81a1817448793f816e0 100644 (file)
@@ -11,39 +11,47 @@ import java.util.List;
 
 /**
  * Interface describing YANG 'deviation' statement.
+ *
  * <p>
  * The 'deviation' statement defines a hierarchy of a module that the device
  * does not implement faithfully. Deviations define the way a device deviate
  * from a standard.
- * </p>
  */
 public interface Deviation {
 
     /**
+     * Returns target schema path.
+     *
      * @return SchemaPath that identifies the node in the schema tree where a
      *         deviation from the module occurs.
      */
     SchemaPath getTargetPath();
 
     /**
+     * Returns deviate children.
      *
      * @return List of all deviate statements defined in this deviation
      */
     List<DeviateDefinition> getDeviates();
 
     /**
+     * Returns the description text.
      *
      * @return textual description of this deviation
      */
     String getDescription();
 
     /**
+     * Returns reference.
+     *
      * @return textual cross-reference to an external document that provides
      *         additional information relevant to this node.
      */
     String getReference();
 
     /**
+     * Returns unknown schema node children.
+     *
      * @return collection of all unknown nodes defined under this schema node.
      */
     List<UnknownSchemaNode> getUnknownSchemaNodes();
index 353a817c3723624e649785a313ea4a3c34fc55e2..c375e02889b1c0d5dd9a471676bfa03a0e646c25 100644 (file)
@@ -16,7 +16,6 @@ import javax.annotation.Nullable;
  * Node which can have documentation assigned.
  */
 public interface DocumentedNode {
-
     /**
      * All implementations should override this method.
      * The default definition of this method is used only in YANG 1.0 (RFC6020) implementations of
@@ -53,9 +52,8 @@ public interface DocumentedNode {
     }
 
     interface WithStatus extends DocumentedNode {
-
         /**
-         * Returns status of the instance of the type <code>SchemaNode</code>
+         * Returns status of the instance of the type <code>SchemaNode</code>.
          *
          * @return status of this node which represents the argument of the YANG
          *         <code>status</code> substatement
index edeb389cc4f9980f9544aee5854b68550569633d..965ae9339fb1cb8cf51c9b5e7ac5b2b67243e23d 100644 (file)
@@ -8,13 +8,10 @@
 package org.opendaylight.yangtools.yang.model.api;
 
 /**
- *
  * Contains the methods for getting the data which are part of the YANG
  * <code>extensoion</code> statement.
- *
  */
 public interface ExtensionDefinition extends SchemaNode {
-
     /**
      * Returns the <code>String</code> that is the name of argument to the
      * Keyword. If no argument statement is present the method will return
@@ -36,8 +33,7 @@ public interface ExtensionDefinition extends SchemaNode {
      * yin-element statement the return value is by default set to
      * <code>false</code>
      *
-     * <br>
-     * <br>
+     * <p>
      * For more specific definition please look into <a
      * href="https://tools.ietf.org/html/rfc6020#section-7.17.2.2">[RFC-6020]
      * The yin-element Statement</a>
index 629fad57e74788a31df0c977d13fa5ec5eb0a55e..16318910e96a3e3490f57b115f48996571e1fef7 100644 (file)
@@ -9,21 +9,19 @@ package org.opendaylight.yangtools.yang.model.api;
 
 /**
  * Interface describing YANG 'grouping' statement.
+ *
  * <p>
  * It is used to define a reusable block of nodes, which may be used locally in
- * the module, in modules that include it, and by other modules that import from
- * it.
- * </p>
+ * the module, in modules that include it, and by other modules that import from it.
  */
-public interface GroupingDefinition extends DataNodeContainer, SchemaNode, NotificationNodeContainer, ActionNodeContainer {
-
+public interface GroupingDefinition extends DataNodeContainer, SchemaNode, NotificationNodeContainer,
+       ActionNodeContainer {
     /**
      * Returns <code>true</code> if the data node was added by uses statement,
-     * otherwise returns <code>false</code>
+     * otherwise returns <code>false</code>.
      *
      * @return <code>true</code> if the data node was added by uses statement,
      *         otherwise returns <code>false</code>
      */
     boolean isAddedByUses();
-
 }
index 216361d28477f9f0d6085af9059ece9317a29519..be0fbd08fdef6fdab5d1abfb1c3ef080b36d8d76 100644 (file)
@@ -13,17 +13,17 @@ import javax.annotation.Nonnull;
 
 /**
  * Interface describing YANG 'identity' statement.
+ *
  * <p>
  * The 'identity' statement is used to define a new globally unique, abstract,
  * and untyped identity. Its only purpose is to denote its name, semantics, and
  * existence. The built-in datatype "identityref" can be used to reference
  * identities within a data model.
- * </p>
  */
 public interface IdentitySchemaNode extends SchemaNode {
-
     /**
-     * @deprecated use {@link #getBaseIdentities()} instead
+     * Return the base identity.
+     * @deprecated use {@link #getBaseIdentities()} instead.
      *
      * @return an existing identity, from which the new identity is derived or
      *         null, if the identity is defined from scratch.
index 217b4a2f16f693fd77578aca375d79435017966a..fa73cc4111ada7ce9f4ec393a6161a92877ff92a 100644 (file)
@@ -23,8 +23,9 @@ import org.opendaylight.yangtools.yang.common.QName;
  */
 public interface ListSchemaNode extends DataNodeContainer, AugmentationTarget, DataSchemaNode,
         NotificationNodeContainer, ActionNodeContainer {
-
     /**
+     * Returns the list of leaf identifiers.
+     *
      * @return List of QNames of leaf identifiers of this list
      */
     List<QName> getKeyDefinition();
@@ -39,6 +40,8 @@ public interface ListSchemaNode extends DataNodeContainer, AugmentationTarget, D
     boolean isUserOrdered();
 
     /**
+     * Returns unique constraints.
+     *
      * @return Collection of unique constraints of this list schema node
      */
     @Nonnull
index d64a4de98c950ecd7ba13b4a6420f47545f94277..d97e76134c2fe3da204868321b8ec5514a96aca1 100644 (file)
@@ -28,8 +28,10 @@ import org.opendaylight.yangtools.concepts.SemVer;
     &nbsp;&nbsp;{@link #getDescription() <b><font color="#b8860b">description</font></b>} "description test";<br>
     &nbsp;&nbsp;{@link #getReference() <b><font color="#008b8b">reference</font></b>} "reference test";<br><br>
 
-    &nbsp;&nbsp;{@link #getOrganization() <b><font color="#606060">organization</font></b>} "John Doe, john.doe@email.com";<br>
-    &nbsp;&nbsp;{@link #getContact() <b><font color="#FF9900">contact</font></b>} "http://www.opendaylight.org/";<br><br>
+    &nbsp;&nbsp;{@link #getOrganization() <b><font color="#606060">organization</font></b>}
+    "John Doe, john.doe@email.com";<br>
+    &nbsp;&nbsp;{@link #getContact() <b><font color="#FF9900">contact</font></b>} "http://www.opendaylight.org/";<br>
+    <br>
 
     &nbsp;&nbsp;{@link #getFeatures() <b><font color="#8b0000">feature</font></b>} feature-test{<br>
     &nbsp;&nbsp;&nbsp;&nbsp; description "description of some feature";<br>
@@ -66,7 +68,7 @@ public interface Module extends DataNodeContainer, SourceStreamAware, ModuleIden
     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>}
@@ -75,9 +77,7 @@ public interface Module extends DataNodeContainer, SourceStreamAware, ModuleIden
     String getPrefix();
 
     /**
-     * Returns the YANG version.
-     *
-     * Default value is 1.
+     * 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
@@ -116,6 +116,7 @@ public interface Module extends DataNodeContainer, SourceStreamAware, ModuleIden
     /**
      * 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.
@@ -142,6 +143,7 @@ public interface Module extends DataNodeContainer, SourceStreamAware, ModuleIden
      * 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.
      *
@@ -215,8 +217,8 @@ public interface Module extends DataNodeContainer, SourceStreamAware, ModuleIden
      * Get YANG source.
      *
      * @return YANG text of this module, or null if the source is not available.
-     * @deprecated Use {@link org.opendaylight.yangtools.yang.model.repo.api.SchemaRepository#getSchemaSource(org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier, Class)}
-     *             instead.
+     * @deprecated Use {@link org.opendaylight.yangtools.yang.model.repo.api.SchemaRepository#getSchemaSource(
+     *             org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier, Class)} instead.
      */
     @Deprecated
     @Nullable String getSource();
index 6afd21a3d51da47d36e399907a0017a32aad3ba1..fac4b62b4c0d9beb2f7994d96312fae562839ce7 100644 (file)
@@ -25,7 +25,7 @@ public interface ModuleIdentifier {
 
     /**
      * Returns the name of the module which is specified as argument of YANG
-     * {@link Module <b><font color="#FF0000">module</font></b>} keyword
+     * {@link Module <b><font color="#FF0000">module</font></b>} keyword.
      *
      * @return string with the name of the module
      */
@@ -57,6 +57,7 @@ public interface ModuleIdentifier {
     /**
      * Returns the semantic version of yang module.
      *
+     * <p>
      * If the semantic version is not specified, default semantic version of
      * module is returned.
      *
index d352aeacbe866dc19ccf71b860d9f8b90f6df112..04330e12b9ecb5ea9872253a45659b8924fff710 100644 (file)
@@ -12,24 +12,29 @@ import org.opendaylight.yangtools.concepts.SemVer;
 
 /**
  * Interface describing YANG 'import' statement.
+ *
  * <p>
  * The import statement makes definitions from one module available inside
  * another module or submodule.
- * </p>
  */
 public interface ModuleImport extends DocumentedNode {
-
     /**
+     * Returns the name of the module to import.
+     *
      * @return Name of the module to import
      */
     String getModuleName();
 
     /**
+     * Returns the module revision to import. May be null.
+     *
      * @return Revision of module to import
      */
     Date getRevision();
 
     /**
+     * Returns the semantic version to import.
+     *
      * @return Semantic version of module to import
      */
     default SemVer getSemanticVersion() {
@@ -37,6 +42,8 @@ public interface ModuleImport extends DocumentedNode {
     }
 
     /**
+     * Returns the prefix associated with the imported module.
+     *
      * @return Prefix used to point to imported module
      */
     String getPrefix();
index 99072c8a29d9434554940c5168573be50e7f2919..9d3480e99248e634cda80d7740e8408f42f721da 100644 (file)
@@ -8,7 +8,6 @@
 package org.opendaylight.yangtools.yang.model.api;
 
 /**
- *
  * Contains methods for accessing constraint declaration for valid data in form
  * of XPath expressions.<br>
  * <br>
index 4ec347960295ed71b42a2aa25e82fd4d09dd1d1d..8a9c20bb4d58dcf88cc65fc45e2c24cbc9e7fcdf 100644 (file)
@@ -21,6 +21,7 @@ public interface NotificationNodeContainer {
      * which do not allow notification statements.
      * These YANG statements have been changed in YANG 1.1 (RFC7950) and can now contain notification statements.
      *
+     * <p>
      * The default definition is also used by implementations of ContainerSchemaNode which do not support
      * notification statements such as InputEffectiveStatementImpl and OutputEffectiveStatementImpl.
      *
index 94ecd0a7c0d3c5235af49578ff6db0df2e025071..4f285d85fe5c7e41d2f2ba5fdfe6110882a29a48 100644 (file)
@@ -12,28 +12,35 @@ import com.google.common.annotations.Beta;
 import java.util.Set;
 
 /**
- * Common interface for an operation
+ * Common interface for an operation.
  */
 @Beta
 public interface OperationDefinition extends SchemaNode {
-
     /**
+     * Returns the set of type definitions declared under this operation.
+     *
      * @return Set of type definitions declared under this operation.
      */
     Set<TypeDefinition<?>> getTypeDefinitions();
 
     /**
+     * Returns the set of grouping statements declared under this operation.
+     *
      * @return Set of grouping statements declared under this operation.
      */
     Set<GroupingDefinition> getGroupings();
 
     /**
+     * Returns definition of input parameters for this operation.
+     *
      * @return Definition of input parameters for this operation.
      *         The substatements of input define nodes under the operation's input node.
      */
     ContainerSchemaNode getInput();
 
     /**
+     * Returns definition of output parameters for this operation.
+     *
      * @return Definition of output parameters for this operation. The
      *         substatements of output define nodes under the operation's output node.
      */
index 770a5841256cbc1e248d5315a5cf03908b5cc0ef..ead8fc7beedf2a2fa113456e21c4d31a4ea9e2be 100644 (file)
@@ -57,7 +57,7 @@ public interface SchemaContext extends ContainerSchemaNode {
 
     /**
      * Returns extencion definition instances which are defined as the direct
-     * subelements in all YANG modules in the context
+     * subelements in all YANG modules in the context.
      *
      * @return set of <code>ExtensionDefinition</code> instances which
      *         represents nodes defined via <code>extension</code> YANG keyword
@@ -81,7 +81,6 @@ public interface SchemaContext extends ContainerSchemaNode {
     Module findModuleByName(final String name, final Date revision);
 
     /**
-     *
      * Returns module instance (from the context) with concrete namespace.
      *
      * @param namespace
@@ -97,8 +96,8 @@ public interface SchemaContext extends ContainerSchemaNode {
      * Returns module instance based on given namespace and revision. If
      * revision is not specified, returns module with newest revision.
      *
-     * @param namespace
-     * @param revision
+     * @param namespace Module namespace, may be null
+     * @param revision Module revision, may be null
      * @return Matching module or null if a match is not found
      */
     default Module findModuleByNamespaceAndRevision(final URI namespace, final Date revision) {
@@ -116,9 +115,10 @@ public interface SchemaContext extends ContainerSchemaNode {
     /**
      * Get yang source code represented as string for matching
      * {@link org.opendaylight.yangtools.yang.model.api.ModuleIdentifier}.
+     *
      * @param moduleIdentifier must provide a non-null
-     * {@link org.opendaylight.yangtools.yang.model.api.ModuleIdentifier#getName()},
-     * other methods might return null.
+     *        {@link org.opendaylight.yangtools.yang.model.api.ModuleIdentifier#getName()}, other methods might return
+     *        null.
      * @return value iif matching module is found in schema context.
      */
     Optional<String> getModuleSource(ModuleIdentifier moduleIdentifier);
@@ -127,5 +127,4 @@ public interface SchemaContext extends ContainerSchemaNode {
      * Get all module and submodule identifiers.
      */
     Set<ModuleIdentifier> getAllModuleIdentifiers();
-
 }
index f894fc9b939aa875aac78fe2f64c68845ff63873..a7afe1b4ac6c388a1a21c0b119cd8f84936b6ed3 100644 (file)
@@ -105,12 +105,12 @@ public abstract class SchemaPath implements Immutable {
         this.parent = parent;
         this.qname = qname;
 
-        int h = Objects.hashCode(parent);
+        int tmp = Objects.hashCode(parent);
         if (qname != null) {
-            h = h * 31 + qname.hashCode();
+            tmp = tmp * 31 + qname.hashCode();
         }
 
-        hash = h;
+        hash = tmp;
     }
 
     private ImmutableList<QName> getLegacyPath() {
index f11f65ac3a8e4ce53b0a38abf4327408ddd32037..9a5217d0818e8c16c0c92b4c6f85cab7ef44125c 100644 (file)
@@ -8,6 +8,8 @@
 package org.opendaylight.yangtools.yang.model.api;
 
 /**
+ * Allows access to module source.
+ *
  * @deprecated This interface is a violation of the effective model contract. To look up the source of a particular
  *             module use a {@link org.opendaylight.yangtools.yang.model.repo.api.SchemaRepository} or a similar
  *             lookup table.
index 8290e22622c88673f64e39158d09c972913baf55..53ec6ac3e11f3cb598b300275e28423bad8f52ff 100644 (file)
@@ -8,7 +8,6 @@
 package org.opendaylight.yangtools.yang.model.api;
 
 /**
- *
  * YANG statement <code>typedef</code> contains also substatements
  * <ul>
  * <li><code>default</code> - default value which is compatible with
@@ -26,7 +25,6 @@ package org.opendaylight.yangtools.yang.model.api;
  *            is included in the instance of this type
  */
 public interface TypeDefinition<T extends TypeDefinition<?>> extends SchemaNode {
-
     /**
      * Returns the base type from which this type is derived. If this is yang
      * built-in type, returns null.
index 009d25ad774d4e04dd196826497ff49bc6f98dda..101317a439951fd3ee18afcaaf6fe5e7bd151dc7 100644 (file)
@@ -15,6 +15,7 @@ import org.opendaylight.yangtools.yang.model.api.stmt.SchemaNodeIdentifier.Relat
 /**
  * Interface describing YANG 'unique' constraint.
  *
+ * <p>
  * The 'unique' constraint specifies that the combined values of all the leaf
  * instances specified in the argument string, including leafs with default
  * values, MUST be unique within all list entry instances in which all
index 136ee89701170d015b0b96d8ff0b41bc0feb619c..cd9fb7ad2719c7e05b4405b76114b925d966c09b 100644 (file)
@@ -10,12 +10,9 @@ package org.opendaylight.yangtools.yang.model.api;
 import org.opendaylight.yangtools.yang.common.QName;
 
 /**
- *
  * Contains the methods for getting the details about the unknown node.
- *
  */
 public interface UnknownSchemaNode extends SchemaNode {
-
     /**
      * Returns QName instance with the name of the unknown node.
      *
@@ -31,7 +28,6 @@ public interface UnknownSchemaNode extends SchemaNode {
     String getNodeParameter();
 
     /**
-     *
      * Describes whether the node was added through <code>uses</code> YANG
      * keyword.
      *
@@ -41,7 +37,6 @@ public interface UnknownSchemaNode extends SchemaNode {
     boolean isAddedByUses();
 
     /**
-     *
      * Describes whether the node was added through <code>augment</code> YANG
      * statement.
      *
@@ -51,10 +46,9 @@ public interface UnknownSchemaNode extends SchemaNode {
     boolean isAddedByAugmentation();
 
     /**
-     * Get extension definition which identifies this node
+     * Get extension definition which identifies this node.
      *
      * @return extension definition if exists, null otherwise
      */
     ExtensionDefinition getExtensionDefinition();
-
 }
index 86acdf68e4b3853c54c5a970693cbedd53412314..de724a2da30ccc25762efed1c2a39bc1435f84ad 100644 (file)
@@ -26,7 +26,6 @@ public interface UsesNode extends DocumentedNode.WithStatus {
     @Nonnull SchemaPath getGroupingPath();
 
     /**
-     *
      * Returns augmentations which were specified in this uses node.
      *
      * @return Set of augment statements defined under this uses node
@@ -35,7 +34,7 @@ public interface UsesNode extends DocumentedNode.WithStatus {
 
     /**
      * Returns <code>true</code> if the data node was added by augmentation,
-     * otherwise returns <code>false</code>
+     * otherwise returns <code>false</code>.
      *
      * @return <code>true</code> if the data node was added by augmentation,
      *         otherwise returns <code>false</code>
@@ -44,7 +43,7 @@ public interface UsesNode extends DocumentedNode.WithStatus {
 
     /**
      * Returns <code>true</code> if the data node was added by uses statement,
-     * otherwise returns <code>false</code>
+     * otherwise returns <code>false</code>.
      *
      * @return <code>true</code> if the data node was added by uses statement,
      *         otherwise returns <code>false</code>
@@ -61,8 +60,9 @@ public interface UsesNode extends DocumentedNode.WithStatus {
     @Nonnull Map<SchemaPath, SchemaNode> getRefines();
 
     /**
-     * Returns when statement
+     * Returns when statement.
      *
+     * <p>
      * If when condition is present node defined by the parent data definition
      * statement is only valid when the returned XPath expression conceptually
      * evaluates to "true" for a particular instance, then the node defined by
index e1119dee040fe80e5ef7ddc8defd0c5d3e109514..3fb10096b3e7fe3016af4775eb8e9006bf6a1bbe 100644 (file)
@@ -21,13 +21,13 @@ import javax.annotation.Nonnull;
  * This interface was modeled according to definition in <a
  * href="https://tools.ietf.org/html/rfc6020#section-7.10">[RFC-6020] The anyxml
  * Statement</a>
- *
- *
  */
 @Beta
 public interface YangModeledAnyXmlSchemaNode extends AnyXmlSchemaNode {
 
     /**
+     * Returns the root schema node of the data in this anyxml node.
+     *
      * @return DataSchemaNode - schema of contained XML data
      */
     @Nonnull
index 54d83326a9a1ce820d30f553f4ec4e90a257cb73..6be9484442da31eef550be34d3546b4fe6cee386 100644 (file)
@@ -12,7 +12,7 @@ import javax.annotation.Nonnull;
 import javax.annotation.Nullable;
 
 /**
- * Represents declared statement
+ * Represents declared statement.
  *
  * @param <A> Argument type ({@link Void} if statement does not have argument.)
  */
index e3ef1c5ffec00e3caeda76c382161546a10ef8a9..1900d6bcc6de7e17101b7c5d303c85a0937cf7d5 100644 (file)
@@ -34,7 +34,7 @@ public interface EffectiveStatement<A, S extends DeclaredStatement<A>> extends M
     S getDeclared();
 
     /**
-     * Returns value associated with supplied identifier
+     * Returns value associated with supplied identifier.
      *
      * @param <K>
      *            Identifier type
index 4f0ed6a3693de8c4dfb4d07cabe0776e36f801a5..f06850b27b0d55c05e6f178021a46e747634b95c 100644 (file)
@@ -25,7 +25,7 @@ import javax.annotation.Nullable;
  */
 public interface IdentifierNamespace<K,V> {
     /**
-     * Returns value associated with supplied identifier
+     * Returns value associated with supplied identifier.
      *
      * @param identifier Identifier of value
      * @return value or null, if identifier is not present in namespace.
index 6ca3da481996c7fd1aa0d796d5007d104273b7e5..6dae109fb1878f5ae780396cc5c6c381bb67e991 100644 (file)
@@ -11,9 +11,7 @@ import javax.annotation.Nonnull;
 import javax.annotation.Nullable;
 
 /**
- * Model statement
- *
- * There are two base types of model statements:
+ * Model statement. There are two base types of model statements:
  * <ul>
  * <li>{@link DeclaredStatement} - Statement representation as was defined in original
  * source. This representation could be used during computation of effective model
@@ -39,7 +37,7 @@ public interface ModelStatement<A> {
     @Nonnull StatementDefinition statementDefinition();
 
     /**
-     * Returns statement argument
+     * Returns statement argument.
      *
      * @return statement argument or null if statement does not have argument.
      */
index ac2293d165b9dbb0b588a665adb8f228b417a613..a91dd7eeb489cc7dcacce078e473e4657864c27a 100644 (file)
@@ -13,18 +13,19 @@ import org.opendaylight.yangtools.concepts.Immutable;
 import org.opendaylight.yangtools.yang.common.QName;
 
 /**
- * Definition / model of YANG {@link DeclaredStatement} and
- * {@link EffectiveStatement}.
+ * Definition / model of YANG {@link DeclaredStatement} and {@link EffectiveStatement}.
  *
+ * <p>
  * Statement concept is defined in RFC6020 section 6.3: <blockquote> A YANG
  * module contains a sequence of statements. Each statement starts with a
  * keyword, followed by zero or one argument </blockquote>
  *
+ * <p>
  * Source: <a href="https://tools.ietf.org/html/rfc6020#section-6.3"> </a>
  */
 public interface StatementDefinition extends Immutable {
     /**
-     * Returns name of the statement
+     * Returns name of the statement.
      *
      * @return Name of the statement
      */
@@ -44,6 +45,7 @@ public interface StatementDefinition extends Immutable {
      * Returns class which represents declared version of statement associated
      * with this definition.
      *
+     * <p>
      * This class should be interface, which provides convenience access to
      * declared substatements.
      *
@@ -56,6 +58,7 @@ public interface StatementDefinition extends Immutable {
     /**
      * Returns class which represents derived behaviour from supplied statement.
      *
+     * <p>
      * This class should be interface, which defines convenience access to
      * statement properties, namespace items and substatements.
      *
@@ -70,7 +73,6 @@ public interface StatementDefinition extends Immutable {
      * element. If argument of statement is represented as argument of yin
      * element, returns false.
      *
-     *
      * @return returns true, if statement argument is represented as value of
      *         yin element, otherwise returns false.
      */
index 88a42db1538b1964f9229d519209d27bd447d2d3..2752b3c3d24970c04cfc5f737631d76cf41a2946 100644 (file)
@@ -8,16 +8,14 @@
 package org.opendaylight.yangtools.yang.model.api.meta;
 
 /**
- * Origin of statement
- *
+ * Origin of statement.
  * Represents origin of statement - if it was explicitly present
  * in model representation or if it was inferred from context.
  */
 public enum StatementSource {
 
     /**
-     * Statement was explicitly declared by author
-     * of the supplied model.
+     * Statement was explicitly declared by author of the supplied model.
      */
     DECLARATION,
 
@@ -25,6 +23,7 @@ public enum StatementSource {
      * Statement was derived from context of YANG model / statement
      * and represents effective model.
      *
+     * <p>
      * Effective context nodes are derived from applicable {@link #DECLARATION}
      * statements by interpreting their semantic meaning in context
      * of current statement.
index f3ef3127a7e5bdbeeeac2e00079cb232fe7524e5..9f2b9006f4f6281b24ddd63b7d84d2336270a164 100644 (file)
  * YANG source is defined as sequence of statement in
  * <a href="https://tools.ietf.org/html/rfc6020#section-6.3">RFC6020, Section 6.3</a>.
  * this model is also correct for YIN, which is XML serialisation of YANG source.
+ *
  * <p>
- * Statements are represented as instances / subclasses of {@link org.opendaylight.yangtools.yang.model.api.meta.ModelStatement}
- * concept and its two subconcepts which are:
+ * Statements are represented as instances / subclasses of
+ * {@link org.opendaylight.yangtools.yang.model.api.meta.ModelStatement} concept and its two subconcepts which are:
  * <ul>
  * <li>
  * {@link org.opendaylight.yangtools.yang.model.api.meta.DeclaredStatement} - this contains navigable
@@ -32,6 +33,7 @@
  * present in YANG specification and/or was introduced in form of extensions.
  * </li>
  * </ul>
+ *
  * <p>
  * Clear separation of declared / effective model is needed, since statement definition also
  * contains information how effective model is computed and there is no one to one mapping
  * <h2>Identifiers and Namespaces</h2>
  * Effective model of YANG has several identifier types and namespaces, which behaves differently
  * and are mostly used during processing data and/or during computing effective (semantic) model.
+ *
  * <p>
- * Common abstraction for various types of namespaces is {@link org.opendaylight.yangtools.yang.model.api.meta.IdentifierNamespace}
+ * Common abstraction for various types of namespaces is
+ * {@link org.opendaylight.yangtools.yang.model.api.meta.IdentifierNamespace}
  * from which concrete effective model namespaces are derived.
- *
  */
-package org.opendaylight.yangtools.yang.model.api.meta;
\ No newline at end of file
+package org.opendaylight.yangtools.yang.model.api.meta;
index 25d9f8c24123f76f59a79b910dd902faa09b11f9..916539b3518cd456844e8bc96872ec49d5f9e6cc 100644 (file)
@@ -13,8 +13,9 @@ import org.opendaylight.yangtools.yang.common.QName;
 import org.opendaylight.yangtools.yang.model.api.meta.DeclaredStatement;
 
 /**
- * Represents YANG action statement
+ * Represents YANG action statement.
  *
+ * <p>
  * The "action" statement is used to define an operation connected to a
  * specific container or list data node.  It takes one argument, which
  * is an identifier, followed by a block of substatements that holds
index 0eef832b5651491c486f30a1695d65d7c8f91e60..3c0a1c19354b6c9738569dd4f1d5baa8e1215610 100644 (file)
@@ -14,7 +14,7 @@ import java.util.Collection;
 import javax.annotation.Nonnull;
 
 /**
- * Statement which can contain action statements
+ * Statement which can contain action statements.
  */
 @Beta
 public interface ActionStatementContainer {
index d89fe68ae8825f79233ea5de38a436d00407bff0..0de93744dc98d7e105f4419330a037c964e752fd 100644 (file)
@@ -18,6 +18,7 @@ import javax.annotation.Nullable;
  * It takes one argument, which is an identifier, followed by a block of
  * substatements that holds detailed anydata information.
  *
+ * <p>
  * The "anydata" statement is used to represent an unknown set of nodes
  * that can be modeled with YANG, except anyxml, but for which the data
  * model is not known at module design time.  It is possible, though not
index b6b795c1d7d720afad49e46d19f9f1319834080d..aaa008ea9ac1889439376451783302104e0e7651 100644 (file)
@@ -11,7 +11,8 @@ import javax.annotation.Nonnull;
 import org.opendaylight.yangtools.yang.common.QName;
 import org.opendaylight.yangtools.yang.model.api.meta.DeclaredStatement;
 
-public interface CaseStatement extends DeclaredStatement<QName>, DataDefinitionContainer, DocumentationGroup.WithStatus, ConditionalDataDefinition {
+public interface CaseStatement extends DeclaredStatement<QName>, DataDefinitionContainer,
+       DocumentationGroup.WithStatus, ConditionalDataDefinition {
 
     @Nonnull QName getName();
 }
index da49cb196ab53278dfe2322a118cbb6d9985fb4f..8e70fefd5f9e6931ed680ccd38dd01c1418822f8 100644 (file)
@@ -13,14 +13,15 @@ import org.opendaylight.yangtools.yang.model.api.meta.DeclaredStatement;
 
 /**
  * Statement that defines new data nodes.
- *
  * One of container, leaf, leaf-list, list, choice, case,
  * augment, uses, anyxml and anydata.
  *
+ * <p>
  * Defined in: <a href="https://tools.ietf.org/html/rfc6020#section-3">RFC6020, Section 3</a>
  */
 @Rfc6020AbnfRule("data-def-stmt")
-public interface DataDefinitionStatement extends DeclaredStatement<QName>, DocumentationGroup.WithStatus, ConditionalDataDefinition {
+public interface DataDefinitionStatement extends DeclaredStatement<QName>, DocumentationGroup.WithStatus,
+       ConditionalDataDefinition {
 
     @Nonnull QName getName();
 }
index 88eef17b6367332b3f85189983fda109da8fb5ec..f94506306bc5e6054da06e0ce6e9d91abf847e08 100644 (file)
@@ -19,11 +19,14 @@ public interface IdentityStatement extends DeclaredStatement<QName>, Documentati
     @Nonnull QName getName();
 
     /**
+     * Returns the base identity.
      * @deprecated use {@link #getBases()} instead
      *
      * @return base statement
      */
-    @Deprecated @Nullable BaseStatement getBase();
+    @Deprecated
+    @Nullable
+    BaseStatement getBase();
 
     // FIXME: version 2.0.0: make this method non-default
     @Nonnull default Collection<? extends BaseStatement> getBases() {
index a2284e5e73719c14e0a7da92130edeadedbeca95..7b1abd53f37d99692d78037c5f9ce09c83d2ca30 100644 (file)
@@ -16,7 +16,6 @@ import org.opendaylight.yangtools.yang.model.api.meta.DeclaredStatement;
 
 /**
  * Represents YANG if-feature statement.
- *
  * The "if-feature" statement makes its parent statement conditional.
  */
 public interface IfFeatureStatement extends DeclaredStatement<Predicate<Set<QName>>> {
@@ -31,4 +30,4 @@ public interface IfFeatureStatement extends DeclaredStatement<Predicate<Set<QNam
     @Beta
     @Nonnull
     Predicate<Set<QName>> getIfFeaturePredicate();
-}
\ No newline at end of file
+}
index de6831fb7510f75ecd2ed9ebb742f5417d1bb7a7..0d04ee2a52e908f875f9d0f26473d1ba0bbab2c7 100644 (file)
@@ -16,6 +16,7 @@ import org.opendaylight.yangtools.yang.model.api.type.ModifierKind;
 /**
  * Represents YANG modifier statement.
  *
+ * <p>
  * The "modifier" statement, which is an optional substatement
  * to the "pattern" statement, takes as an argument the string "invert-match".
  * If a pattern has the "invert-match" modifier present, the type is
index 3d25d7c955359c691714ae1aaf8ec2d583ed5c4f..c27342e4f970fe5824688730e51ebb2c7d4bc11e 100644 (file)
@@ -13,7 +13,8 @@ import javax.annotation.Nonnull;
 import org.opendaylight.yangtools.yang.common.QName;
 import org.opendaylight.yangtools.yang.model.api.meta.DeclaredStatement;
 
-public interface NotificationStatement extends DeclaredStatement<QName>, DataDefinitionContainer.WithReusableDefinitions, DocumentationGroup.WithStatus {
+public interface NotificationStatement extends DeclaredStatement<QName>,
+       DataDefinitionContainer.WithReusableDefinitions, DocumentationGroup.WithStatus {
 
     @Nonnull QName getName();
 
index 4595c7b039180ea3f4041d6c475e3b91396ee272..a17004f246fa0440e35e48de08d4692668aef218 100644 (file)
@@ -14,7 +14,7 @@ import javax.annotation.Nonnull;
 import org.opendaylight.yangtools.yang.common.QName;
 
 /**
- * Common interface for action and rpc statements
+ * Common interface for action and rpc statements.
  */
 @Beta
 public interface OperationGroup extends DocumentationGroup.WithStatus {
index bf268074e2a69513768833d24aece3e14d6d0500..da8be7f714d2d07d2e13f6bbddf5053a182e0ac6 100644 (file)
@@ -12,7 +12,8 @@ import javax.annotation.Nonnull;
 import javax.annotation.Nullable;
 import org.opendaylight.yangtools.yang.model.api.meta.DeclaredStatement;
 
-public interface RefineStatement extends DeclaredStatement<SchemaNodeIdentifier>, DocumentationGroup, ConditionalFeature {
+public interface RefineStatement extends DeclaredStatement<SchemaNodeIdentifier>, DocumentationGroup,
+       ConditionalFeature {
     String getTargetNode();
 
     interface RefineContainerStatement extends RefineStatement {
index 4a6236300737be2a514a49df8ee4180cec0b6daf..12f8ec04f89c12fc2e7873653d215d7c7d75d097 100644 (file)
@@ -109,12 +109,12 @@ public abstract class SchemaNodeIdentifier implements Immutable {
         this.parent = parent;
         this.qname = qname;
 
-        int h = Objects.hashCode(parent);
+        int tmp = Objects.hashCode(parent);
         if (qname != null) {
-            h = h * 31 + qname.hashCode();
+            tmp = tmp * 31 + qname.hashCode();
         }
 
-        hash = h;
+        hash = tmp;
     }
 
     private ImmutableList<QName> getLegacyPath() {
index 5b9a023357598f3e55c0e1681202f85b2f09bf8f..8ed3c23eafa2ba1d121c5fd692b6dd44801ce066 100644 (file)
@@ -7,9 +7,8 @@
  */
 package org.opendaylight.yangtools.yang.model.api.stmt;
 
-import org.opendaylight.yangtools.yang.model.api.Status;
-
 import javax.annotation.Nonnull;
+import org.opendaylight.yangtools.yang.model.api.Status;
 import org.opendaylight.yangtools.yang.model.api.meta.DeclaredStatement;
 
 public interface StatusStatement extends DeclaredStatement<Status> {
index 05029889893f13177bea3860d99c94c96d4e6c35..3b5288501a9a66c54da1030211cb515862b40a38 100644 (file)
@@ -9,6 +9,7 @@ package org.opendaylight.yangtools.yang.model.api.stmt;
 
 import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
 
-public interface TypeEffectiveStatement<T extends TypeStatement> extends EffectiveStatement<String, T>, TypeDefinitionAware {
+public interface TypeEffectiveStatement<T extends TypeStatement> extends EffectiveStatement<String, T>,
+       TypeDefinitionAware {
 
 }
index 532d2e260c1fd066a02cb4cd680386e0587fd599..7d18f8f40cbbe34966a8b7abc6257c501793ef5d 100644 (file)
@@ -74,15 +74,19 @@ public interface TypeStatement extends DeclaredStatement<String> {
     interface IdentityRefSpecification extends TypeStatement {
 
         /**
+         * Returns the base identity.
          * @deprecated use {@link #getBases()} instead
          *
          * @return base statement
          */
-        @Deprecated @Nonnull BaseStatement getBase();
+        @Deprecated
+        @Nonnull BaseStatement getBase();
 
         /**
-         * @return collection of base statements (in YANG 1.1 models) or a collection containing just one base statement
-         * (in YANG 1.0 models)
+         * Returns the base statements.
+         *
+         * @return collection of base statements (in YANG 1.1 models) or a collection containing just one base
+         *         statement (in YANG 1.0 models)
          */
         @Nonnull Collection<? extends BaseStatement> getBases();
     }
index 94eca2b9e4c5014c240b7545d404a4b4a08e5b15..9196a286d8ed750ac28242e3cf5e31de5c33ec99 100644 (file)
@@ -26,10 +26,9 @@ import org.opendaylight.yangtools.yang.model.api.TypeDefinition;
  * Built-In Type</a>
  */
 public interface BinaryTypeDefinition extends TypeDefinition<BinaryTypeDefinition> {
-
     /**
-     * Returns List of number of octets that binary value contains. These are the effective constraints, e.g. they include
-     * any range constraints imposed by base types.
+     * Returns List of number of octets that binary value contains. These are the effective constraints, e.g. they
+     * include any range constraints imposed by base types.
      *
      * @return List of number of octets that binary value contains.
      *
index bbaa5c23efcb81bccf105ca4ce000872d84d5205..8301c6272c5bef3253493153f462a33c1a259189 100644 (file)
@@ -25,7 +25,6 @@ public interface BitsTypeDefinition extends TypeDefinition<BitsTypeDefinition> {
     @Nonnull List<Bit> getBits();
 
     /**
-     *
      * Contains the methods for accessing the data about the individual bit of
      * <code>bits</code> YANG type.
      */
index 75f6f434445a2b6f3734521bf776c10fc4340a3e..d0566d48cf240a5fbe3ebdbd0223c73711653f6f 100644 (file)
@@ -16,7 +16,6 @@ import org.opendaylight.yangtools.yang.model.api.TypeDefinition;
  * substatement for <code>decimal64</code> built-in type.
  */
 public interface DecimalTypeDefinition extends TypeDefinition<DecimalTypeDefinition> {
-
     /**
      * Returns range constraints for instance of this type.
      *
@@ -27,9 +26,9 @@ public interface DecimalTypeDefinition extends TypeDefinition<DecimalTypeDefinit
     @Nonnull List<RangeConstraint> getRangeConstraints();
 
     /**
-     * Returns integer between 1 and 18 inclusively. <br>
-     * <br>
+     * Returns integer between 1 and 18 inclusively.
      *
+     * <p>
      * The "fraction-digits" statement controls the size of the minimum
      * difference between values of a decimal64 type, by restricting the value
      * space to numbers that are expressible as "i x 10^-n" where n is the
index b11a085194744a140e6004fd68da784b3d03a724..e5696bb5ac52f2c10961fc51c8bbf5200d04c646 100644 (file)
@@ -11,13 +11,11 @@ import org.opendaylight.yangtools.yang.common.QName;
 import org.opendaylight.yangtools.yang.model.api.TypeDefinition;
 
 /**
- *
  * Contains the method for getting the details about YANG <code>identity</code>.
  */
 public interface IdentityTypeDefinition extends TypeDefinition<IdentityTypeDefinition> {
-
     /**
-     * Returns the name of the YANG identity
+     * Returns the name of the YANG identity.
      *
      * @return QName of the YANG identity
      */
index 43e8d3384ff6df9f034802498d5f4742a6fbb31f..e4337d8539a2f60420aee4d423268eec52e1a0d0 100644 (file)
@@ -29,6 +29,8 @@ public interface IdentityrefTypeDefinition extends TypeDefinition<IdentityrefTyp
     IdentitySchemaNode getIdentity();
 
     /**
+     * Returns the set of identities this reference points to.
+     *
      * @return set of identities to which the instance of this type refers (in YANG 1.1 models) or a set containing
      *         just one identity (in YANG 1.0 models)
      */
index dd53bb74e2af7b0ba364e55ab616c83b08844de3..cac9b6c7f9d32dfe352577bbe349451fc7c7f54d 100644 (file)
@@ -12,8 +12,9 @@ import javax.annotation.Nonnull;
 import org.opendaylight.yangtools.yang.model.api.TypeDefinition;
 
 /**
- * IntegerTypeDefinition is interface which represents SIGNED Integer values defined in Yang language. <br>
- * The integer built-in types in Yang are int8, int16, int32, int64. They represent signed integers of different sizes: <br>
+ * IntegerTypeDefinition is interface which represents SIGNED Integer values defined in Yang language.<br>
+ * The integer built-in types in Yang are int8, int16, int32, int64. They represent signed integers of different
+ * sizes:<br>
  * <ul>
  * <li>int8 represents integer values between -128 and 127, inclusively.</li>
  * <li>int16 represents integer values between -32768 and 32767, inclusively.</li>
@@ -21,10 +22,10 @@ import org.opendaylight.yangtools.yang.model.api.TypeDefinition;
  * <li>int64 represents integer values between -9223372036854775808 and 9223372036854775807, inclusively.</li>
  * </ul>
  *
+ * <p>
  * The Integer Built-In Types are defined in <a href="https://tools.ietf.org/html/rfc6020#section-9.2"> [RFC-6020]</a>
  */
 public interface IntegerTypeDefinition extends TypeDefinition<IntegerTypeDefinition> {
-
     /**
      * Returns Range Constraints defined for given Integer Type. These are the effective constraints, e.g. they include
      * any range constraints imposed by base types.
index f83f46b489bf5582b0c93381f711a10139e1d98a..435b400c2fdb7d28692c944b3f091af5a05e8a2c 100644 (file)
@@ -18,6 +18,7 @@ import javax.annotation.Nonnull;
 /**
  * Enum describing the effect of a YANG modifier statement.
  *
+ * <p>
  * As of YANG 1.1 (RFC7950) there is only one modifier value available and that
  * is "invert-match". If there are more possible values added in the future,
  * this enum can be extended with more enum constants.
@@ -30,23 +31,25 @@ public enum ModifierKind {
 
     private final String keyword;
 
-    private ModifierKind(final String keyword) {
+    ModifierKind(final String keyword) {
         this.keyword = Preconditions.checkNotNull(keyword);
     }
 
     /**
-     * @return String that corresponds to the yang keyword.
+     * YANG keyword of this modifier.
+     *
+     * @return String that corresponds to the YANG keyword.
      */
     public @Nonnull String getKeyword() {
         return keyword;
     }
 
     /**
-     * Returns ModifierKind based on supplied Yang keyword
+     * Returns ModifierKind based on supplied Yang keyword.
      *
      * @param keyword
      *            Yang keyword in string form
-     * @return ModifierKind based on supplied Yang keyword
+     * @return ModifierKind based on supplied YANG keyword
      * @throws NullPointerException if keyword is null
      */
     public static Optional<ModifierKind> parse(final String keyword) {
index 20c04acc9579dc795c9163ade1fc93dafeff7b7c..7b81e45e518d3bbfd7bdef4527bc90314748f4de 100644 (file)
@@ -13,7 +13,6 @@ import org.opendaylight.yangtools.yang.model.api.TypeDefinition;
 
 /**
  * Contains the method for getting detail data about unsigned integer.
- *
  * Specifically it is the method for getting the range value.
  */
 public interface UnsignedIntegerTypeDefinition extends TypeDefinition<UnsignedIntegerTypeDefinition> {
index 2062a635516496682397f5bb1ce32d30bed329a7..21b795bd4035aaebfed834799bdac1fb288ce56f 100644 (file)
@@ -23,8 +23,8 @@ public class MissingSchemaSourceException extends SchemaSourceException {
         this(message, id, null);
     }
 
-    public MissingSchemaSourceException(final String s, final SourceIdentifier id, final Throwable t) {
-        super(s, t);
+    public MissingSchemaSourceException(final String message, final SourceIdentifier id, final Throwable cause) {
+        super(message, cause);
         this.id = Preconditions.checkNotNull(id);
     }
 
index 5ec07d04ef64b32874522bbb1f3151469272405f..6fc229ecbc33e196fe021a19198c6104c9a145a0 100644 (file)
@@ -13,8 +13,9 @@ import com.google.common.base.Preconditions;
 import java.util.Objects;
 
 /**
- * YANG Schema revision source identifier
+ * YANG Schema revision source identifier.
  *
+ * <p>
  * Simple transfer object represents revision identifier of source for YANG
  * schema (module or submodule), which consists of
  * <ul>
@@ -22,10 +23,12 @@ import java.util.Objects;
  * <li>Module revision (optional) ({link {@link #getRevision()})
  * </ul>
  *
+ * <p>
  * Revision source identifier is designated to be carry only necessary
  * information to look-up YANG model source and to be used by various
  * SchemaSourceProviders.
  *
+ * <p>
  * <b>Note:</b>On source retrieval layer it is impossible to distinguish between
  * YANG module and/or submodule unless source is present.
  *
@@ -38,7 +41,6 @@ public final class RevisionSourceIdentifier extends SourceIdentifier {
     private static final long serialVersionUID = 1L;
 
     /**
-     *
      * Creates new YANG Schema revision source identifier for sources without
      * a revision.
      *
@@ -62,7 +64,6 @@ public final class RevisionSourceIdentifier extends SourceIdentifier {
     }
 
     /**
-     *
      * Creates new YANG Schema revision source identifier.
      *
      * @param name
@@ -76,7 +77,6 @@ public final class RevisionSourceIdentifier extends SourceIdentifier {
     }
 
     /**
-     *
      * Creates new YANG Schema revision source identifier.
      *
      * @param moduleName
index c86c25eb81a8febff2020e814b485e34e2487c19..673929951f55c32dd9ea68614d7ff67eb86aeca8 100644 (file)
@@ -29,5 +29,6 @@ public interface SchemaRepository {
      */
     SchemaContextFactory createSchemaContextFactory(@Nonnull SchemaSourceFilter filter);
 
-    <T extends SchemaSourceRepresentation> CheckedFuture<T, SchemaSourceException> getSchemaSource(@Nonnull SourceIdentifier id, @Nonnull Class<T> represetation);
+    <T extends SchemaSourceRepresentation> CheckedFuture<T, SchemaSourceException> getSchemaSource(
+            @Nonnull SourceIdentifier id, @Nonnull Class<T> represetation);
 }
index bb9618de9ea26300b56cdfb093b76ce0e30ec66c..608a8f7fbbd1483029d6f219a2d234dcc12d863f 100644 (file)
@@ -64,7 +64,7 @@ public class SchemaResolutionException extends SchemaSourceException {
     }
 
     /**
-     * Return YANG schema source identifier consisting of name and revision of the module which caused this exception
+     * Return YANG schema source identifier consisting of name and revision of the module which caused this exception.
      *
      * @return YANG schema source identifier
      */
@@ -90,7 +90,8 @@ public class SchemaResolutionException extends SchemaSourceException {
 
     @Override
     public final String toString() {
-        return addToStringAttributes(MoreObjects.toStringHelper(this).add("unsatisfiedImports", unsatisfiedImports)).toString();
+        return addToStringAttributes(MoreObjects.toStringHelper(this).add("unsatisfiedImports", unsatisfiedImports))
+            .toString();
     }
 
     protected ToStringHelper addToStringAttributes(final ToStringHelper toStringHelper) {
index f4dc49b91b7ba15060dff5606c9890fdfe2fea21..4df8e7eb9a1525fc314cb22c93739d2a32f4ea76 100644 (file)
@@ -16,10 +16,12 @@ import org.opendaylight.yangtools.concepts.Immutable;
 /**
  * Common interface for schema source representations.
  *
+ * <p>
  * A schema source is an atomic piece of the overall schema context. In YANG terms,
  * a schema source is semantically equivalent to a single YANG text file, be it a
  * module or a submodule.
  *
+ * <p>
  * A schema source can exist in various forms, which we call representations. Again,
  * in YANG terms, each representation is semantically equivalent, but from
  * implementation perspective certain operations on a schema source may require it
@@ -27,6 +29,7 @@ import org.opendaylight.yangtools.concepts.Immutable;
  * applied. Such transformations are affected via instances of
  * SchemaSourceTransformation.
  *
+ * <p>
  * Typical examples of a schema source representation include:
  * <ul>
  * <li>a {@link java.lang.String} - textual representation of source code
@@ -36,14 +39,11 @@ import org.opendaylight.yangtools.concepts.Immutable;
  * <li>Parsed abstract syntax tree (AST), which is the result of a syntactic parser
  * </ul>
  *
- * Implementations of this interface expected to comply with the {@link Immutable}
- * contract.
+ * <p>
+ * Implementations of this interface expected to comply with the {@link Immutable} contract.
  */
 @Beta
 public interface SchemaSourceRepresentation extends Identifiable<SourceIdentifier>, Immutable {
-    /**
-     * {@inheritDoc}
-     */
     @Override
     SourceIdentifier getIdentifier();
 
index 76c9ec507db93556f76902d6d15020e2c6da3747..f43ced86c6f7dc038de4ac8172d29117efcb06dd 100644 (file)
@@ -14,8 +14,9 @@ import org.opendaylight.yangtools.concepts.SemVer;
 import org.opendaylight.yangtools.yang.model.api.Module;
 
 /**
- * YANG Schema source identifier with specified semantic version
+ * YANG Schema source identifier with specified semantic version.
  *
+ * <p>
  * Simple transfer object represents identifier of source for YANG schema
  * (module or submodule), which consists of
  * <ul>
@@ -24,9 +25,11 @@ import org.opendaylight.yangtools.yang.model.api.Module;
  * <li>(Optional) Module revision ({link {@link #getRevision()}
  * </ul>
  *
+ * <p>
  * Source identifier is designated to be carry only necessary information to
  * look-up YANG model source and to be used by various SchemaSourceProviders.
  *
+ * <p>
  * <b>Note:</b>On source retrieval layer it is impossible to distinguish between
  * YANG module and/or submodule unless source is present.
  *
index 8692bedfe04413c44500c2848c6f15d9e8e271ad..40c0751167568302296bd2b2e459c7fb01b26f74 100644 (file)
@@ -23,9 +23,11 @@ import org.opendaylight.yangtools.yang.common.YangConstants;
 /**
  * Base class of YANG Schema source identifiers.
  *
+ * <p>
  * Source identifiers are designated to be carry only necessary information to
  * look-up YANG model source and to be used by various SchemaSourceProviders.
  *
+ * <p>
  * (For further reference see: http://tools.ietf.org/html/rfc6020#section-5.2
  * and http://tools.ietf.org/html/rfc6022#section-3.1 ).
  */
@@ -43,9 +45,9 @@ public abstract class SourceIdentifier implements Identifier, Immutable {
     /**
      * Simplified compiled revision pattern in format YYYY-mm-dd, which checks
      * only distribution of number elements.
+     *
      * <p>
-     * For checking if supplied string is real date, use
-     * {@link SimpleDateFormatUtil} instead.
+     * For checking if supplied string is real date, use {@link SimpleDateFormatUtil} instead.
      */
     public static final Pattern REVISION_PATTERN = Pattern.compile(REVISION_PATTERN_STR);
 
@@ -56,7 +58,6 @@ public abstract class SourceIdentifier implements Identifier, Immutable {
     private final String name;
 
     /**
-     *
      * Creates new YANG Schema source identifier for sources without revision.
      *
      * @param name
@@ -104,7 +105,7 @@ public abstract class SourceIdentifier implements Identifier, Immutable {
     }
 
     /**
-     * Returns model name
+     * Returns model name.
      *
      * @return model name
      */
@@ -123,7 +124,6 @@ public abstract class SourceIdentifier implements Identifier, Immutable {
     }
 
     /**
-     * <p>
      * Since we've got two ways of model versioning (revision &amp; semantic version),
      * this method shouldn't be called directly anymore. Eventually, callers of this method
      * should be notified before method gets deleted.
@@ -132,8 +132,7 @@ public abstract class SourceIdentifier implements Identifier, Immutable {
      * <li>{@link SemVerSourceIdentifier#create(String, SemVer)}</li>
      * <li>{@link SemVerSourceIdentifier#create(String, Optional, SemVer)}</li>
      * <li>{@link SemVerSourceIdentifier#create(String, String, SemVer)}</li>
-     * </ul>
-     * or
+     * </ul>or
      * <ul>
      * <li>{@link RevisionSourceIdentifier#create(String)}</li>
      * <li>{@link RevisionSourceIdentifier#create(String, String)}</li>
@@ -142,13 +141,10 @@ public abstract class SourceIdentifier implements Identifier, Immutable {
      *
      * @param moduleName
      *            Name of schema
-
      * @param revision
      *            Revision of source in format YYYY-mm-dd. If not present,
      *            default value will be used.
-     *
      * @return particular SourceIdentifier instance
-     *
      */
     @Deprecated
     public static SourceIdentifier create(final String moduleName, final Optional<String> revision) {
@@ -158,11 +154,11 @@ public abstract class SourceIdentifier implements Identifier, Immutable {
     /**
      * Returns filename for this YANG module as specified in RFC 6020.
      *
-     * Returns filename in format <code>name ['@' revision] '.yang'</code>
-     * <p>
-     * Where revision is date in format YYYY-mm-dd.
      * <p>
+     * Returns filename in format <code>name ['@' revision] '.yang'</code>,
+     * where revision is date in format YYYY-mm-dd.
      *
+     * <p>
      * @see <a href="http://tools.ietf.org/html/rfc6020#section-5.2">RFC6020</a>
      *
      * @return Filename for this source identifier.
@@ -175,9 +171,9 @@ public abstract class SourceIdentifier implements Identifier, Immutable {
     /**
      * Returns filename for this YANG module as specified in RFC 6020.
      *
-     * Returns filename in format <code>moduleName ['@' revision] '.yang'</code>
-     *
-     * Where Where revision-date is in format YYYY-mm-dd.
+     * <p>
+     * Returns filename in format <code>moduleName ['@' revision] '.yang'</code>,
+     * where Where revision-date is in format YYYY-mm-dd.
      *
      * <p>
      * See http://tools.ietf.org/html/rfc6020#section-5.2
index cc91d44a6eee4f06a48306f02e2ada56a541a162..096932bd061c94c4bc8778dad41af38ff995b2b0 100644 (file)
@@ -63,8 +63,8 @@ public abstract class YinDomSchemaSource implements YinXmlSchemaSource {
         final QName qname = QName.create(rootNs, root.getLocalName());
         Preconditions.checkArgument(RFC6020_YIN_MODULE.equals(qname.getModule()),
             "Root node namepsace %s does not match %s", rootNs, YangConstants.RFC6020_YIN_NAMESPACE);
-        Preconditions.checkArgument(MODULE.getStatementName().equals(qname) ||
-            SUBMODULE.getStatementName().equals(qname), "Root element %s is not a module nor a submodule", qname);
+        Preconditions.checkArgument(MODULE.getStatementName().equals(qname)
+            || SUBMODULE.getStatementName().equals(qname), "Root element %s is not a module nor a submodule", qname);
 
         Preconditions.checkArgument(root instanceof Element, "Root node %s is not an element", root);
         final Element element = (Element)root;
@@ -117,7 +117,8 @@ public abstract class YinDomSchemaSource implements YinXmlSchemaSource {
      * @return A {@link YinDomSchemaSource} instance
      * @throws TransformerException when the provided source fails to transform
      */
-    @Nonnull public static YinDomSchemaSource transform(final YinXmlSchemaSource xmlSchemaSource) throws TransformerException {
+    @Nonnull public static YinDomSchemaSource transform(final YinXmlSchemaSource xmlSchemaSource)
+            throws TransformerException {
         final YinDomSchemaSource cast = castSchemaSource(xmlSchemaSource);
         return cast != null ? cast :
             create(xmlSchemaSource.getIdentifier(), transformSource(xmlSchemaSource.getSource()));
index fa2813eb08e21a2a61d9e67127e5f32822321243..a1a7060f91de6f84055f1f1d627f618766a47e4a 100644 (file)
@@ -53,17 +53,11 @@ public abstract class YinTextSchemaSource extends ByteSource implements YinSchem
         return RevisionSourceIdentifier.create(parsed.getKey(), Optional.fromNullable(parsed.getValue()));
     }
 
-    /**
-     * {@inheritDoc}
-     */
     @Override
     public final SourceIdentifier getIdentifier() {
         return identifier;
     }
 
-    /**
-     * {@inheritDoc}
-     */
     @Nonnull
     @Override
     public Class<? extends YinTextSchemaSource> getType() {
@@ -94,11 +88,13 @@ public abstract class YinTextSchemaSource extends ByteSource implements YinSchem
      * @param delegate Backing ByteSource instance
      * @return A new YinTextSchemaSource
      */
-    public static YinTextSchemaSource delegateForByteSource(final SourceIdentifier identifier, final ByteSource delegate) {
+    public static YinTextSchemaSource delegateForByteSource(final SourceIdentifier identifier,
+            final ByteSource delegate) {
         return new DelegatedYinTextSchemaSource(identifier, delegate);
     }
 
-    private static final class DelegatedYinTextSchemaSource extends YinTextSchemaSource implements Delegator<ByteSource> {
+    private static final class DelegatedYinTextSchemaSource extends YinTextSchemaSource
+            implements Delegator<ByteSource> {
         private final ByteSource delegate;
 
         private DelegatedYinTextSchemaSource(final SourceIdentifier identifier, final ByteSource delegate) {
index 8b9732dd8efefe552099fa5429566be0e4c71f06..80d23a94ff9763ae5a43062a775c8c32e3fadd63 100644 (file)
@@ -69,14 +69,16 @@ public final class PotentialSchemaSource<T extends SchemaSourceRepresentation> {
     private final SourceIdentifier sourceIdentifier;
     private final int cost;
 
-    private PotentialSchemaSource(final SourceIdentifier sourceIdentifier, final Class<? extends T> representation, final int cost) {
+    private PotentialSchemaSource(final SourceIdentifier sourceIdentifier, final Class<? extends T> representation,
+            final int cost) {
         this.representation = Preconditions.checkNotNull(representation);
         this.sourceIdentifier = Preconditions.checkNotNull(sourceIdentifier);
         Preconditions.checkArgument(cost >= 0, "cost has to be non-negative");
         this.cost = cost;
     }
 
-    public static <T extends SchemaSourceRepresentation> PotentialSchemaSource<T> create(final SourceIdentifier sourceIdentifier, final Class<? extends T> representation, final int cost) {
+    public static <T extends SchemaSourceRepresentation> PotentialSchemaSource<T> create(
+            final SourceIdentifier sourceIdentifier, final Class<? extends T> representation, final int cost) {
         return new PotentialSchemaSource<>(sourceIdentifier, representation, cost);
     }
 
index cdf6701805d94c700d856a49a0c32ea1ad3a3217..00f8040ff72e35088abb977d92b16c1edf151983 100644 (file)
@@ -34,10 +34,12 @@ public interface SchemaSourceProvider<T extends SchemaSourceRepresentation> {
      * the newest available revision, or throws {@link MissingSchemaSourceException}.
      * </ul>
      *
+     * <p>
      * In either case the returned representation is required to report a non-null
      * revision in the {@link SourceIdentifier} returned from
      * {@link SchemaSourceRepresentation#getIdentifier()}.
      *
+     * <p>
      * Implementations are not required to provide constant behavior in time, notably
      * this different invocation of this method may produce different results.
      *
index d59c78d0f7483433ad390374e036ef2e732bb70d..781bfd56bd01ca007d3de43276816760f9772a20 100644 (file)
@@ -15,7 +15,8 @@ import org.opendaylight.yangtools.yang.model.repo.api.SchemaSourceRepresentation
  * Registration of a schema source.
  */
 @Beta
-public interface SchemaSourceRegistration<T extends SchemaSourceRepresentation> extends ObjectRegistration<PotentialSchemaSource<T>> {
+public interface SchemaSourceRegistration<T extends SchemaSourceRepresentation>
+        extends ObjectRegistration<PotentialSchemaSource<T>> {
     @Override
     void close();
 }
index 1b35c51d1c192ebec26f68a024355f5d3dd84257..dfa34b79a4547b637b26a21481ad512e198fc3f6 100644 (file)
@@ -30,7 +30,8 @@ public interface SchemaSourceRegistry {
      * @return A registration handle. Invoking {@link SchemaSourceRegistration#close()}
      *         will cancel the registration.
      */
-    <T extends SchemaSourceRepresentation> SchemaSourceRegistration<T> registerSchemaSource(SchemaSourceProvider<? super T> provider, PotentialSchemaSource<T> source);
+    <T extends SchemaSourceRepresentation> SchemaSourceRegistration<T> registerSchemaSource(
+            SchemaSourceProvider<? super T> provider, PotentialSchemaSource<T> source);
 
     /**
      * Register a schema source listener. The listener will be notified as new