Fixed deployment failure. 24/20624/1
authorShigeru Yasuda <s-yasuda@da.jp.nec.com>
Mon, 18 May 2015 07:11:47 +0000 (16:11 +0900)
committerShigeru Yasuda <s-yasuda@da.jp.nec.com>
Mon, 18 May 2015 07:11:47 +0000 (16:11 +0900)
All the VTN sub modules need to import distributionManagement from
vtn.common.

Other changes:

  * Use manager.checkstyle for application build and remove needless
    clone.
  * list_vtn_configuration
    * Fixed violation of checkstyle rule for class name.
      * Renamed HTTP_RESPONSE to HttpResponse.
      * Renamed APPLICATION_TYPE to ApplicationType.
    * Fixed invalid javadoc comments that cause so many JDK8 warnings.
  * ODL_VSEM_PROVIDER_SRC
    * configure: Fixed incorrect mono version check.

Change-Id: Id566e3349956aeaade5a0d4eaf860fb3aa7ee96b
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
56 files changed:
application/ODL_VSEM_PROVIDER_SRC/configure
application/ODL_VSEM_PROVIDER_SRC/pom.xml
application/checkstyle/pom.xml [deleted file]
application/checkstyle/src/main/resources/vtn/checkstyle.xml [deleted file]
application/checkstyle/src/main/resources/vtn/checkstyle_report.xml [deleted file]
application/checkstyle/src/main/resources/vtn/checkstyle_strict.xml [deleted file]
application/list_vtn_configuration/pom.xml
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/json/annotations/JsonArray.java
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/json/annotations/JsonElement.java
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/client/RESTClient.java
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/enumgroups/ApplicationType.java [moved from application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/enumgroups/APPLICATION_TYPE.java with 75% similarity]
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/enumgroups/HttpResponse.java [moved from application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/enumgroups/HTTP_RESPONSE.java with 74% similarity]
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/output/format/beans/VBridgeInterfaceBean.java
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/output/format/beans/VTerminalInterfaceBean.java
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/parser/CRUDImpl.java
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/parser/Parser.java
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/parser/RestRequest.java
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/response/beans/Allow.java
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/response/beans/Bundle.java
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/response/beans/ContainerPathMapNorthBound.java
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/response/beans/CostDetails.java
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/response/beans/DataFlow.java
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/response/beans/Dscp.java
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/response/beans/FlowFilter.java
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/response/beans/Icmp.java
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/response/beans/IcmpCode.java
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/response/beans/IcmpType.java
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/response/beans/Index.java
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/response/beans/Inet.java
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/response/beans/InetAddressDetails.java
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/response/beans/InetMatch.java
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/response/beans/InputOutput.java
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/response/beans/L4Match.java
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/response/beans/MacEntry.java
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/response/beans/MappedDetails.java
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/response/beans/Match.java
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/response/beans/NodeDetails.java
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/response/beans/PathPoliciesIndex.java
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/response/beans/PathPolicy.java
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/response/beans/Redirect.java
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/response/beans/Statistics.java
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/response/beans/Tpdst.java
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/response/beans/Tpsrc.java
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/response/beans/VBridgeInterface.java
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/response/beans/VBridgeNorthBound.java
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/response/beans/VTNConfiguration.java
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/response/beans/VTNConfigurationBean.java
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/response/beans/VTNManagerVersion.java
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/response/beans/VTenantNorthBound.java
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/response/beans/VTenantNorthBoundList.java
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/response/beans/VTenantPathMapNorthBound.java
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/response/beans/VTerminalInterfaceNorthbound.java
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/response/beans/VTerminalNorthBound.java
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/response/beans/VlanNorthBound.java
application/list_vtn_configuration/src/main/java/org/opendaylight/vtn/app/run/config/rest/response/beans/VlanPcp.java
application/pom.xml

index 55ed4f084550dfd97e859eef197283e0fd93cd0a..faa9f05d8adb19bfe92217363d6329d9b7a0a2ac 100755 (executable)
@@ -1,4 +1,3 @@
-
 #!/bin/bash
 
 #
@@ -48,7 +47,8 @@ check_mono_version () {
     exit 1
   fi
 
-  if [[ $minor_version -lt $MONO_VERSION_COMPAT_MINOR ]]; then
+  if [[ $major_version -eq $MONO_VERSION_COMPAT_MAJOR && \
+        $minor_version -lt $MONO_VERSION_COMPAT_MINOR ]]; then
     echo "Minor Version Mismatch"
     echo "expected:$MONO_VERSION_COMPAT_MINOR"
     echo "installed:$minor_version"
index fe780e6e3b7102e1bad9391e0c01a5ca00b1fb3b..4e128e844a88b65a9ef5edffc2b7e06bc28cbc9e 100644 (file)
     <tag>HEAD</tag>
   </scm>
 
-    <groupId>org.opendaylight.vtn</groupId>
-    <artifactId>application.vtnmanager-vsemprovider</artifactId>
-    <version>1.0.0-SNAPSHOT</version>
-    <packaging>pom</packaging>
+  <parent>
+    <groupId>org.opendaylight.vtn.application</groupId>
+    <artifactId>dist</artifactId>
+    <version>1.0.1-SNAPSHOT</version>
+    <relativePath>..</relativePath>
+  </parent>
 
+  <artifactId>application.vtnmanager-vsemprovider</artifactId>
+  <version>1.0.0-SNAPSHOT</version>
+  <packaging>pom</packaging>
 
   <properties>
     <!-- Version of VTN VSEMProvider. -->
     <vtn.VSEMProvider.version>1.0.0</vtn.VSEMProvider.version>
 
-
     <!-- The number of GNU make jobs -->
     <vtn.build.jobs>1</vtn.build.jobs>
 
   <build>
     <defaultGoal>package</defaultGoal>
     <plugins>
-    <plugin>
-    <groupId>org.codehaus.mojo</groupId>
-    <artifactId>exec-maven-plugin</artifactId>
-    <version>1.1</version>
-    <executions>
-     <execution>
-         <id>exe</id>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>exec-maven-plugin</artifactId>
+        <version>${execplugin.version}</version>
+        <executions>
+          <execution>
+            <id>exe</id>
             <phase>compile</phase>
             <goals>
               <goal>exec</goal>
             <configuration>
               <executable>make</executable>
             </configuration>
-      </execution>
+          </execution>
 
-    <!-- Clean up build environment. -->
-    <execution>
-         <id>clean</id>
+          <!-- Clean up build environment. -->
+          <execution>
+            <id>clean</id>
             <phase>pre-clean</phase>
             <goals>
               <goal>exec</goal>
@@ -83,9 +87,9 @@
                 <argument>clean</argument>
               </arguments>
             </configuration>
-     </execution>
-     </executions>
-     </plugin>
-     </plugins>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
   </build>
 </project>
diff --git a/application/checkstyle/pom.xml b/application/checkstyle/pom.xml
deleted file mode 100644 (file)
index e7084ab..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
-#
-# Copyright (c) 2014-2015 NEC Corporation
-# All rights reserved.
-#
-# This program and the accompanying materials are made available under the
-# terms of the Eclipse Public License v1.0 which accompanies this
-# distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
-#
--->
-
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-    <modelVersion>4.0.0</modelVersion>
-    <prerequisites>
-        <maven>3.0</maven>
-    </prerequisites>
-
-    <parent>
-        <groupId>org.opendaylight.vtn.application</groupId>
-        <artifactId>dist</artifactId>
-        <version>1.0.1-SNAPSHOT</version>
-        <relativePath>../</relativePath>
-    </parent> 
-
-    <artifactId>application.vtnmanager-listconfig.checkstyle</artifactId>
-    <packaging>jar</packaging>
-
-    <scm>
-        <connection>scm:git:https://git.opendaylight.org/gerrit/p/vtn.git</connection>
-        <developerConnection>scm:git:ssh://git.opendaylight.org:29418/vtn.git</developerConnection>
-        <url>https://wiki.opendaylight.org/view/OpenDaylight_Virtual_Tenant_Network_%28VTN%29:Main</url>
-        <tag>HEAD</tag>
-    </scm>
-
-    <properties>
-        <nexusproxy>http://nexus.opendaylight.org/content</nexusproxy>
-        <sitedeploy>
-            dav:http://nexus.opendaylight.org/content/sites/site
-        </sitedeploy>
-    </properties>
-
-    <distributionManagement>
-        <!-- OpenDayLight Released artifact -->
-        <repository>
-            <id>opendaylight-release</id>
-            <url>${nexusproxy}/repositories/opendaylight.release/</url>
-        </repository>
-
-        <!-- OpenDayLight Snapshot artifact -->
-        <snapshotRepository>
-            <id>opendaylight-snapshot</id>
-            <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
-        </snapshotRepository>
-
-        <!-- Site deployment -->
-        <site>
-            <id>website</id>
-            <url>${sitedeploy}</url>
-        </site>
-    </distributionManagement>
-</project>
diff --git a/application/checkstyle/src/main/resources/vtn/checkstyle.xml b/application/checkstyle/src/main/resources/vtn/checkstyle.xml
deleted file mode 100644 (file)
index 16e842d..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE module PUBLIC
- "-//Puppy Crawl//DTD Check Configuration 1.2//EN"
- "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
-
-<!--
-#
-# Copyright (c) 2014 NEC Corporation
-# All rights reserved.
-#
-# This program and the accompanying materials are made available under the
-# terms of the Eclipse Public License v1.0 which accompanies this
-# distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
-#
--->
-
-<!-- Default checkstyle configuration for VTN Running application. -->
-
-<module name="Checker">
-  <!-- Ensure that files end with a newline character. -->
-  <module name="NewlineAtEndOfFile"/>
-
-  <!-- Ensure that files don't contain tab character. -->
-  <module name="FileTabCharacter">
-    <property name="eachLine" value="true"/>
-  </module>
-
-  <module name="RegexpSingleline">
-    <!-- \s matches whitespace character, $ matches end of line. -->
-    <property name="format" value="\s+$"/>
-    <property name="message" value="Line has trailing spaces."/>
-  </module>
-</module>
diff --git a/application/checkstyle/src/main/resources/vtn/checkstyle_report.xml b/application/checkstyle/src/main/resources/vtn/checkstyle_report.xml
deleted file mode 100644 (file)
index e40ee3e..0000000
+++ /dev/null
@@ -1,209 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE module PUBLIC
- "-//Puppy Crawl//DTD Check Configuration 1.2//EN"
- "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
-
-<!--
-#
-# Copyright (c) 2014 NEC Corporation
-# All rights reserved.
-#
-# This program and the accompanying materials are made available under the
-# terms of the Eclipse Public License v1.0 which accompanies this
-# distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
-#
--->
-
-<!-- Checkstyle configuration for VTN Running application project reporting. -->
-
-<module name="Checker">
-  <!-- Ensure that files end with a newline character. -->
-  <module name="NewlineAtEndOfFile"/>
-
-  <!-- Ensure that property files contain the same keys. -->
-  <module name="Translation"/>
-
-  <!-- Checks for long source files. -->
-  <module name="FileLength"/>
-
-  <!-- Ensure that files don't contain tab character. -->
-  <module name="FileTabCharacter">
-    <property name="eachLine" value="true"/>
-  </module>
-
-  <module name="RegexpSingleline">
-    <!-- \s matches whitespace character, $ matches end of line. -->
-    <property name="format" value="\s+$"/>
-    <property name="message" value="Line has trailing spaces."/>
-  </module>
-
-  <module name="TreeWalker">
-    <property name="cacheFile" value="${checkstyle.cache.file}" />
-
-    <!-- Checks for Javadoc comments. -->
-    <module name="JavadocMethod">
-      <property name="allowUndeclaredRTE" value="true" />
-      <property name="allowThrowsTagsForSubclasses" value="true" />
-    </module>
-    <module name="JavadocType"/>
-    <module name="JavadocVariable"/>
-    <module name="JavadocStyle"/>
-
-    <!-- Checks for naming conventions. -->
-    <module name="ClassTypeParameterName"/>
-    <module name="ConstantName"/>
-    <module name="LocalFinalVariableName"/>
-    <module name="LocalVariableName"/>
-    <module name="MemberName"/>
-    <module name="MethodName"/>
-    <module name="MethodTypeParameterName"/>
-    <module name="PackageName"/>
-    <module name="ParameterName"/>
-    <module name="StaticVariableName"/>
-    <module name="TypeName"/>
-
-    <!-- Checks for imports. -->
-    <module name="AvoidStarImport"/>
-    <module name="IllegalImport"/>
-    <module name="RedundantImport"/>
-    <module name="UnusedImports"/>
-
-    <!-- Checks for size violations. -->
-    <module name="LineLength">
-      <property name="max" value="200" />
-      <!-- Ignore import directives and annotations. -->
-      <property name="ignorePattern" value="^(import .+|\s*@[a-zA-Z]+.*)$" />
-    </module>
-    <module name="MethodLength"/>
-    <module name="ParameterNumber"/>
-    <module name="AnonInnerLength"/>
-
-    <!-- Checks for whitespace. -->
-    <module name="GenericWhitespace"/>
-    <module name="EmptyForIteratorPad"/>
-    <module name="MethodParamPad" />
-    <module name="NoWhitespaceAfter">
-      <property name="tokens" value="ARRAY_INIT" />
-      <property name="tokens" value="BNOT" />
-      <property name="tokens" value="DEC" />
-      <property name="tokens" value="DOT" />
-      <property name="tokens" value="INC" />
-      <property name="tokens" value="LNOT" />
-      <property name="tokens" value="UNARY_MINUS" />
-      <property name="tokens" value="UNARY_PLUS" />
-      <property name="tokens" value="TYPECAST" />
-    </module>
-    <module name="NoWhitespaceBefore"/>
-    <module name="ParenPad"/>
-    <module name="TypecastParenPad"/>
-    <module name="WhitespaceAfter">
-      <property name="tokens" value="COMMA, SEMI" />
-    </module>
-    <module name="WhitespaceAround">
-      <property name="tokens" value="ASSIGN" />
-      <property name="tokens" value="BAND" />
-      <property name="tokens" value="BAND_ASSIGN" />
-      <property name="tokens" value="BOR" />
-      <property name="tokens" value="BOR_ASSIGN" />
-      <property name="tokens" value="BSR" />
-      <property name="tokens" value="BSR_ASSIGN" />
-      <property name="tokens" value="BXOR" />
-      <property name="tokens" value="BXOR_ASSIGN" />
-      <property name="tokens" value="COLON" />
-      <property name="tokens" value="DIV" />
-      <property name="tokens" value="DIV_ASSIGN" />
-      <property name="tokens" value="EQUAL" />
-      <property name="tokens" value="GE" />
-      <property name="tokens" value="GT" />
-      <property name="tokens" value="LAND" />
-      <property name="tokens" value="LE" />
-      <property name="tokens" value="LITERAL_ASSERT" />
-      <property name="tokens" value="LITERAL_CATCH" />
-      <property name="tokens" value="LITERAL_DO" />
-      <property name="tokens" value="LITERAL_ELSE" />
-      <property name="tokens" value="LITERAL_FINALLY" />
-      <property name="tokens" value="LITERAL_FOR" />
-      <property name="tokens" value="LITERAL_IF" />
-      <property name="tokens" value="LITERAL_RETURN" />
-      <property name="tokens" value="LITERAL_SYNCHRONIZED" />
-      <property name="tokens" value="LITERAL_TRY" />
-      <property name="tokens" value="LITERAL_WHILE" />
-      <property name="tokens" value="LOR" />
-      <property name="tokens" value="LT" />
-      <property name="tokens" value="MINUS" />
-      <property name="tokens" value="MINUS_ASSIGN" />
-      <property name="tokens" value="MOD" />
-      <property name="tokens" value="MOD_ASSIGN" />
-      <property name="tokens" value="NOT_EQUAL" />
-      <property name="tokens" value="PLUS" />
-      <property name="tokens" value="PLUS_ASSIGN" />
-      <property name="tokens" value="QUESTION" />
-      <property name="tokens" value="SL" />
-      <property name="tokens" value="SLIST" />
-      <property name="tokens" value="SL_ASSIGN" />
-      <property name="tokens" value="SR" />
-      <property name="tokens" value="SR_ASSIGN" />
-      <property name="tokens" value="STAR" />
-      <property name="tokens" value="STAR_ASSIGN" />
-      <property name="tokens" value="TYPE_EXTENSION_AND" />
-      <property name="allowEmptyConstructors" value="true" />
-      <property name="allowEmptyMethods" value="true" />
-      <property name="ignoreEnhancedForColon" value="true" />
-    </module>
-
-    <!-- Modifier Checks. -->
-    <module name="ModifierOrder"/>
-    <module name="RedundantModifier"/>
-
-    <!-- Checks for blocks. -->
-    <module name="AvoidNestedBlocks"/>
-    <module name="LeftCurly"/>
-    <module name="NeedBraces"/>
-    <module name="RightCurly"/>
-
-    <!-- Checks for common coding problems. -->
-    <module name="DefaultComesLast"/>
-    <module name="EmptyStatement"/>
-    <module name="EqualsHashCode"/>
-    <module name="HiddenField">
-      <property name="tokens" value="VARIABLE_DEF" />
-      <property name="ignoreConstructorParameter" value="true" />
-      <property name="ignoreSetter" value="true" /> 
-      <property name="ignoreAbstractMethods" value="true" />
-    </module>
-    <module name="IllegalInstantiation"/>
-    <module name="IllegalThrows"/>
-    <module name="InnerAssignment"/>
-    <module name="MagicNumber">
-      <property name="ignoreAnnotation" value="true" />
-      <property name="ignoreHashCodeMethod" value="true" />
-    </module>
-    <module name="MissingSwitchDefault"/>
-    <module name="ParameterAssignment"/>
-    <module name="RedundantThrows"/>
-    <module name="SimplifyBooleanExpression"/>
-    <module name="SimplifyBooleanReturn"/>
-    <module name="StringLiteralEquality"/>
-
-    <!-- Checks for class design. -->
-    <module name="FinalClass"/>
-    <module name="HideUtilityClassConstructor"/>
-    <module name="InterfaceIsType"/>
-    <module name="VisibilityModifier"/>
-
-    <!-- Checks for complexity. -->
-    <module name="BooleanExpressionComplexity"/>
-    <module name="CyclomaticComplexity"/>
-
-    <!-- Other checks. -->
-    <module name="ArrayTypeStyle"/>
-    <module name="Indentation">
-      <property name="basicOffset" value="4" />
-      <property name="braceAdjustment" value="0" />
-      <property name="caseIndent" value="0" />
-      <property name="throwsIndent" value="4" />
-    </module>
-    <module name="TrailingComment"/>
-    <module name="UpperEll"/>
-  </module>
-</module>
diff --git a/application/checkstyle/src/main/resources/vtn/checkstyle_strict.xml b/application/checkstyle/src/main/resources/vtn/checkstyle_strict.xml
deleted file mode 100644 (file)
index 47ad810..0000000
+++ /dev/null
@@ -1,183 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE module PUBLIC
- "-//Puppy Crawl//DTD Check Configuration 1.2//EN"
- "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
-
-<!--
-#
-# Copyright (c) 2014 NEC Corporation
-# All rights reserved.
-#
-# This program and the accompanying materials are made available under the
-# terms of the Eclipse Public License v1.0 which accompanies this
-# distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
-#
--->
-
-<!-- Checkstyle configuration for strict coding style check. -->
-
-<module name="Checker">
-  <!-- Ensure that files end with a newline character. -->
-  <module name="NewlineAtEndOfFile"/>
-
-  <!-- Ensure that property files contain the same keys. -->
-  <module name="Translation"/>
-
-  <!-- Ensure that files don't contain tab character. -->
-  <module name="FileTabCharacter">
-    <property name="eachLine" value="true"/>
-  </module>
-
-  <module name="RegexpSingleline">
-    <!-- \s matches whitespace character, $ matches end of line. -->
-    <property name="format" value="\s+$"/>
-    <property name="message" value="Line has trailing spaces."/>
-  </module>
-
-  <module name="TreeWalker">
-    <property name="cacheFile" value="${checkstyle.cache.file}" />
-
-    <!-- Checks for naming conventions. -->
-    <module name="ClassTypeParameterName"/>
-    <module name="ConstantName"/>
-    <module name="LocalFinalVariableName"/>
-    <module name="LocalVariableName"/>
-    <module name="MemberName"/>
-    <module name="MethodName"/>
-    <module name="MethodTypeParameterName"/>
-    <module name="PackageName"/>
-    <module name="ParameterName"/>
-    <module name="StaticVariableName"/>
-    <module name="TypeName"/>
-
-    <!-- Checks for imports. -->
-    <module name="AvoidStarImport"/>
-    <module name="IllegalImport"/>
-    <module name="RedundantImport"/>
-    <module name="UnusedImports"/>
-
-    <!-- Checks for size violations. -->
-    <module name="LineLength">
-      <property name="max" value="200" />
-      <!-- Ignore import directives and annotations. -->
-      <property name="ignorePattern" value="^(import .+|\s*@[a-zA-Z]+.*)$" />
-    </module>
-    <module name="AnonInnerLength"/>
-
-    <!-- Checks for whitespace. -->
-    <module name="GenericWhitespace"/>
-    <module name="EmptyForIteratorPad"/>
-    <module name="MethodParamPad" />
-    <module name="NoWhitespaceAfter">
-      <property name="tokens" value="ARRAY_INIT" />
-      <property name="tokens" value="BNOT" />
-      <property name="tokens" value="DEC" />
-      <property name="tokens" value="DOT" />
-      <property name="tokens" value="INC" />
-      <property name="tokens" value="LNOT" />
-      <property name="tokens" value="UNARY_MINUS" />
-      <property name="tokens" value="UNARY_PLUS" />
-      <property name="tokens" value="TYPECAST" />
-    </module>
-    <module name="NoWhitespaceBefore"/>
-    <module name="ParenPad"/>
-    <module name="TypecastParenPad"/>
-    <module name="WhitespaceAfter">
-      <property name="tokens" value="COMMA, SEMI" />
-    </module>
-    <module name="WhitespaceAround">
-      <property name="tokens" value="ASSIGN" />
-      <property name="tokens" value="BAND" />
-      <property name="tokens" value="BAND_ASSIGN" />
-      <property name="tokens" value="BOR" />
-      <property name="tokens" value="BOR_ASSIGN" />
-      <property name="tokens" value="BSR" />
-      <property name="tokens" value="BSR_ASSIGN" />
-      <property name="tokens" value="BXOR" />
-      <property name="tokens" value="BXOR_ASSIGN" />
-      <property name="tokens" value="COLON" />
-      <property name="tokens" value="DIV" />
-      <property name="tokens" value="DIV_ASSIGN" />
-      <property name="tokens" value="EQUAL" />
-      <property name="tokens" value="GE" />
-      <property name="tokens" value="GT" />
-      <property name="tokens" value="LAND" />
-      <property name="tokens" value="LE" />
-      <property name="tokens" value="LITERAL_ASSERT" />
-      <property name="tokens" value="LITERAL_CATCH" />
-      <property name="tokens" value="LITERAL_DO" />
-      <property name="tokens" value="LITERAL_ELSE" />
-      <property name="tokens" value="LITERAL_FINALLY" />
-      <property name="tokens" value="LITERAL_FOR" />
-      <property name="tokens" value="LITERAL_IF" />
-      <property name="tokens" value="LITERAL_RETURN" />
-      <property name="tokens" value="LITERAL_SYNCHRONIZED" />
-      <property name="tokens" value="LITERAL_TRY" />
-      <property name="tokens" value="LITERAL_WHILE" />
-      <property name="tokens" value="LOR" />
-      <property name="tokens" value="LT" />
-      <property name="tokens" value="MINUS" />
-      <property name="tokens" value="MINUS_ASSIGN" />
-      <property name="tokens" value="MOD" />
-      <property name="tokens" value="MOD_ASSIGN" />
-      <property name="tokens" value="NOT_EQUAL" />
-      <property name="tokens" value="PLUS" />
-      <property name="tokens" value="PLUS_ASSIGN" />
-      <property name="tokens" value="QUESTION" />
-      <property name="tokens" value="SL" />
-      <property name="tokens" value="SLIST" />
-      <property name="tokens" value="SL_ASSIGN" />
-      <property name="tokens" value="SR" />
-      <property name="tokens" value="SR_ASSIGN" />
-      <property name="tokens" value="STAR" />
-      <property name="tokens" value="STAR_ASSIGN" />
-      <property name="tokens" value="TYPE_EXTENSION_AND" />
-      <property name="allowEmptyConstructors" value="true" />
-      <property name="allowEmptyMethods" value="true" />
-      <property name="ignoreEnhancedForColon" value="true" />
-    </module>
-
-    <!-- Modifier Checks. -->
-    <module name="ModifierOrder"/>
-    <module name="RedundantModifier"/>
-
-    <!-- Checks for blocks. -->
-    <module name="AvoidNestedBlocks"/>
-    <module name="LeftCurly"/>
-    <module name="NeedBraces"/>
-    <module name="RightCurly"/>
-
-    <!-- Checks for common coding problems. -->
-    <module name="DefaultComesLast"/>
-    <module name="EmptyStatement"/>
-    <module name="EqualsHashCode"/>
-    <module name="HiddenField">
-      <property name="tokens" value="VARIABLE_DEF" />
-      <property name="ignoreConstructorParameter" value="true" />
-      <property name="ignoreSetter" value="true" /> 
-      <property name="ignoreAbstractMethods" value="true" />
-    </module>
-    <module name="IllegalInstantiation"/>
-    <module name="IllegalThrows"/>
-    <module name="InnerAssignment"/>
-    <module name="MissingSwitchDefault"/>
-    <module name="SimplifyBooleanExpression"/>
-    <module name="SimplifyBooleanReturn"/>
-    <module name="StringLiteralEquality"/>
-
-    <!-- Checks for class design. -->
-    <module name="HideUtilityClassConstructor"/>
-    <module name="InterfaceIsType"/>
-
-    <!-- Other checks. -->
-    <module name="ArrayTypeStyle"/>
-    <module name="Indentation">
-      <property name="basicOffset" value="4" />
-      <property name="braceAdjustment" value="0" />
-      <property name="caseIndent" value="0" />
-      <property name="throwsIndent" value="4" />
-    </module>
-    <module name="TrailingComment"/>
-    <module name="UpperEll"/>
-  </module>
-</module>
index a27892466f6e75cee88e35fb2f580ee8e2a0e7b3..153109ae52d073ece6328ecab3022c13c7082635 100644 (file)
-<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
-  http://maven.apache.org/maven-v4_0_0.xsd">
-
-    <parent>
-        <groupId>org.opendaylight.vtn.application</groupId>
-        <artifactId>dist</artifactId>
-        <version>1.0.1-SNAPSHOT</version>
-        <relativePath>../</relativePath>
-    </parent>
-
-    <modelVersion>4.0.0</modelVersion>
-    <artifactId>application.vtnmanager-listconfig</artifactId>
-    <packaging>jar</packaging>
-
-    <properties>
-        <jdk.version>1.7</jdk.version>
-        <junit.version>4.11</junit.version>
-        <slf4j.version>1.7.9</slf4j.version>
-        <ch.qos.logback.version>1.1.2</ch.qos.logback.version>
-        <checkstyle.version>2.12</checkstyle.version>
-
-        <!-- Default checkstyle configuration -->
-        <vtn.checkstyle.xml>vtn/checkstyle.xml</vtn.checkstyle.xml>
-    </properties>
-
-    <dependencies>
-        <dependency>
-            <groupId>org.json</groupId>
-            <artifactId>json</artifactId>
-            <version>20140107</version>
-        </dependency>
-
-        <dependency>
-            <groupId>com.sun.jersey</groupId>
-            <artifactId>jersey-client</artifactId>
-            <version>1.9.1</version>
-        </dependency>
-
-        <dependency>
-            <groupId>com.google.code.gson</groupId>
-            <artifactId>gson</artifactId>
-            <version>2.3.1</version>
-        </dependency>
-
-        <dependency>
-            <groupId>org.apache.maven.plugins</groupId>
-            <artifactId>maven-clean-plugin</artifactId>
-            <version>2.4.1</version>
-        </dependency>
-
-        <dependency>
-            <groupId>org.apache.maven.plugins</groupId>
-            <artifactId>maven-resources-plugin</artifactId>
-            <version>2.5</version>
-        </dependency>
-
-        <dependency>
-            <groupId>junit</groupId>
-            <artifactId>junit</artifactId>
-            <version>${junit.version}</version>
-            <scope>test</scope>
-        </dependency>
-
-        <dependency>
-            <groupId>org.slf4j</groupId>
-            <artifactId>slf4j-api</artifactId>
-            <version>${slf4j.version}</version>
-        </dependency>
-
-        <dependency>
-            <groupId>org.slf4j</groupId>
-            <artifactId>jcl-over-slf4j</artifactId>
-            <version>${slf4j.version}</version>
-        </dependency>
-
-        <dependency>
-            <groupId>org.slf4j</groupId>
-            <artifactId>log4j-over-slf4j</artifactId>
-            <version>${slf4j.version}</version>
-        </dependency>
-
-        <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-core</artifactId>
-            <version>${ch.qos.logback.version}</version>
-        </dependency>
-
-        <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-classic</artifactId>
-            <version>${ch.qos.logback.version}</version>
-        </dependency>
-    </dependencies>
-
-    <profiles>
-        <profile>
-            <!-- Run strict coding style check -->
-            <id>strictcheck</id>
-            <activation>
-                <activeByDefault>false</activeByDefault>
-            </activation>
-            <properties>
-                <vtn.checkstyle.xml>vtn/checkstyle_strict.xml</vtn.checkstyle.xml>
-            </properties>
-        </profile>
-    </profiles>
-
-    <build>
-        <finalName>VTNRESTClient</finalName>
-        <plugins>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-checkstyle-plugin</artifactId>
-                <version>${checkstyle.version}</version>
-
-                <dependencies>
-                    <dependency>
-                        <groupId>org.opendaylight.vtn.application</groupId>
-                        <artifactId>application.vtnmanager-listconfig.checkstyle</artifactId>
-                        <version>${project.version}</version>
-                    </dependency>
-                </dependencies>
-
-                <executions>
-                    <execution>
-                        <phase>process-sources</phase>
-                        <goals>
-                            <goal>check</goal>
-                        </goals>
-                    </execution>
-                </executions>
-
-                <configuration>
-                    <failsOnError>true</failsOnError>
-                    <configLocation>${vtn.checkstyle.xml}</configLocation>
-                    <consoleOutput>true</consoleOutput>
-                    <includeTestSourceDirectory>true</includeTestSourceDirectory>
-                    <sourceDirectory>${project.basedir}</sourceDirectory>
-                    <includes>**\/*.java,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat</includes>
-                    <excludes>**\/target\/</excludes>
-                </configuration>
-            </plugin>
-
-            <!-- download source code in Eclipse, best practice -->
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-eclipse-plugin</artifactId>
-                <version>2.9</version>
-                <configuration>
-                    <downloadSources>true</downloadSources>
-                    <downloadJavadocs>false</downloadJavadocs>
-                </configuration>
-            </plugin>
-
-            <!-- Make this jar executable -->
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-jar-plugin</artifactId>
-                <version>2.4</version>
-
-                <configuration>
-                    <!-- DO NOT include log4j.properties file in your Jar -->
-                    <excludes>
-                        <exclude>**/log4j.properties</exclude>
-                    </excludes>
-                    <archive>
-                        <manifest>
-                            <addClasspath>true</addClasspath>
-                            <!-- Jar file entry point -->
-                            <mainClass>org.opendaylight.vtn.app.run.config.rest.client.RESTClient</mainClass>
-                            <classpathPrefix>libs/</classpathPrefix>
-                        </manifest>
-                    </archive>
-                </configuration>
-            </plugin>
-
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-dependency-plugin</artifactId>
-                <executions>
-                    <execution>
-                        <id>copy-dependencies</id>
-                        <phase>package</phase>
-                        <goals>
-                            <goal>copy-dependencies</goal>
-                        </goals>
-                        <configuration>
-                            <outputDirectory>${project.build.directory}/libs/</outputDirectory>
-                        </configuration>
-                    </execution>
-                </executions>
-            </plugin>
-        </plugins>
-    </build>
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+#
+# Copyright (c) 2014-2015 NEC Corporation
+# All rights reserved.
+#
+# This program and the accompanying materials are made available under the
+# terms of the Eclipse Public License v1.0 which accompanies this
+# distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
+#
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <parent>
+    <groupId>org.opendaylight.vtn.application</groupId>
+    <artifactId>dist</artifactId>
+    <version>1.0.1-SNAPSHOT</version>
+    <relativePath>..</relativePath>
+  </parent>
+
+  <modelVersion>4.0.0</modelVersion>
+  <artifactId>application.vtnmanager-listconfig</artifactId>
+  <packaging>jar</packaging>
+
+  <scm>
+    <connection>scm:git:https://git.opendaylight.org/gerrit/p/vtn.git</connection>
+    <developerConnection>scm:git:ssh://git.opendaylight.org:29418/vtn.git</developerConnection>
+    <url>https://wiki.opendaylight.org/view/OpenDaylight_Virtual_Tenant_Network_%28VTN%29:Main</url>
+    <tag>HEAD</tag>
+  </scm>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.json</groupId>
+      <artifactId>json</artifactId>
+      <version>20140107</version>
+    </dependency>
+
+    <dependency>
+      <groupId>com.sun.jersey</groupId>
+      <artifactId>jersey-client</artifactId>
+      <version>1.9.1</version>
+    </dependency>
+
+    <dependency>
+      <groupId>com.google.code.gson</groupId>
+      <artifactId>gson</artifactId>
+      <version>2.3.1</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-api</artifactId>
+    </dependency>
+
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>jcl-over-slf4j</artifactId>
+    </dependency>
+
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>log4j-over-slf4j</artifactId>
+    </dependency>
+
+    <dependency>
+      <groupId>ch.qos.logback</groupId>
+      <artifactId>logback-core</artifactId>
+    </dependency>
+
+    <dependency>
+      <groupId>ch.qos.logback</groupId>
+      <artifactId>logback-classic</artifactId>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <finalName>VTNRESTClient</finalName>
+    <plugins>
+      <!-- download source code in Eclipse, best practice -->
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-eclipse-plugin</artifactId>
+        <version>2.9</version>
+        <configuration>
+          <downloadSources>true</downloadSources>
+          <downloadJavadocs>false</downloadJavadocs>
+        </configuration>
+      </plugin>
+
+      <!-- Make this jar executable -->
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-jar-plugin</artifactId>
+        <version>2.4</version>
+
+        <configuration>
+          <!-- DO NOT include log4j.properties file in your Jar -->
+          <excludes>
+            <exclude>**/log4j.properties</exclude>
+          </excludes>
+          <archive>
+            <manifest>
+              <addClasspath>true</addClasspath>
+              <!-- Jar file entry point -->
+              <mainClass>org.opendaylight.vtn.app.run.config.rest.client.RESTClient</mainClass>
+              <classpathPrefix>libs/</classpathPrefix>
+            </manifest>
+          </archive>
+        </configuration>
+      </plugin>
+
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-dependency-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>copy-dependencies</id>
+            <phase>package</phase>
+            <goals>
+              <goal>copy-dependencies</goal>
+            </goals>
+            <configuration>
+              <outputDirectory>${project.build.directory}/libs/</outputDirectory>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
 
 </project>
index 4a7d4271a3f51507f1e0720aa426b217c9e6efc5..64c517990055bef5a981f45889449791181e1398 100644 (file)
@@ -1,11 +1,12 @@
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
  * All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this
  * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
  */
+
 package org.opendaylight.vtn.app.run.config.json.annotations;
 
 import java.lang.annotation.ElementType;
@@ -14,17 +15,15 @@ import java.lang.annotation.RetentionPolicy;
 import java.lang.annotation.Target;
 
 /**
- *JsonArray - Annotation which helps to determine the response is an array to
+ * JsonArray - Annotation which helps to determine the response is an array to
  *             Parser.
- * @author
- *
  */
 @Retention(RetentionPolicy.RUNTIME)
 @Target(ElementType.FIELD)
 public @interface JsonArray {
     /**
      * name attribute to get the array name.
-     * @return
+     * @return  The array name.
      */
     String name();
 }
index 1864a48cdeb9920aa67d9d9440774689c91a2412..c40eecb322a5c493b120404cd1d834013181c085 100644 (file)
@@ -1,11 +1,12 @@
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
  * All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this
  * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
  */
+
 package org.opendaylight.vtn.app.run.config.json.annotations;
 
 import java.lang.annotation.ElementType;
@@ -14,10 +15,8 @@ import java.lang.annotation.RetentionPolicy;
 import java.lang.annotation.Target;
 
 /**
- *
  * JsonElement Interface provides functions to for name and defaultvalue to set
  *    in the implementation.
- *
  */
 @Retention(RetentionPolicy.RUNTIME)
 @Target(ElementType.FIELD)
@@ -25,13 +24,13 @@ public @interface JsonElement {
 
     /**
      * name - provides api to set the name in the implementation.
-     * @return
+     * @return  The element name.
      */
     String name();
 
     /**
      * defaultValue - provide api to set the defaultValue in the implementation.
-     * @return
+     * @return  The default value.
      */
     String defaultValue() default "";
 }
index 7b8b08008b55ac6f494392f497860fcb6714e3a3..6b9a593bf9d1d507704a27be184825d23724eaf0 100644 (file)
@@ -1,4 +1,4 @@
-/**
+/*
  * Copyright (c) 2014-2015 NEC Corporation
  * All rights reserved.
  *
@@ -31,7 +31,7 @@ import org.json.JSONObject;
 
 import com.google.gson.Gson;
 import com.google.gson.GsonBuilder;
-import org.opendaylight.vtn.app.run.config.rest.enumgroups.APPLICATION_TYPE;
+import org.opendaylight.vtn.app.run.config.rest.enumgroups.ApplicationType;
 import org.opendaylight.vtn.app.run.config.rest.enumgroups.RestURL;
 import org.opendaylight.vtn.app.run.config.rest.output.format.beans.VBridgeBean;
 import org.opendaylight.vtn.app.run.config.rest.output.format.beans.VBridgeInterfaceBean;
@@ -128,7 +128,7 @@ public class RESTClient {
             LOG.warn("Invalid server URL : {}", serverUrl);
             throw new VTNClientException("Invalid server URL");
         }
-        client = new CRUDImpl(APPLICATION_TYPE.JSON, userName, password);
+        client = new CRUDImpl(ApplicationType.JSON, userName, password);
         parser = new Parser();
     }
 
@@ -188,7 +188,6 @@ public class RESTClient {
      * @param restObject
      * @param headers
      * @param paramName
-     * @param restObject
      * @param paramValue
      * @return {@link Object}
      * @throws Exception
@@ -237,7 +236,7 @@ public class RESTClient {
      * GET - get operation method to communicate the server to fetch the result for requested URI.
      * @param restObject
      * @param paramMap
-     * @return
+     * @return The value of the requested URI.
      * @throws JSONException
      * @throws Exception
      * @throws IllegalArgumentException
@@ -261,7 +260,7 @@ public class RESTClient {
      * @param value1
      * @param param2
      * @param value2
-     * @return
+     * @return The value of the requested URI.
      * @throws JSONException
      * @throws Exception
      * @throws IllegalArgumentException
@@ -289,7 +288,7 @@ public class RESTClient {
      * @param value1
      * @param param2
      * @param value2
-     * @return
+     * @return The value of the requested URI.
      * @throws JSONException
      * @throws Exception
      * @throws IllegalArgumentException
@@ -315,7 +314,7 @@ public class RESTClient {
      * @param restObject
      * @param paramMap
      * @param headers
-     * @return
+     * @return The value of the requested URI.
      * @throws Exception
      * @throws JSONException
      * @throws IllegalArgumentException
@@ -402,7 +401,7 @@ public class RESTClient {
      * parseResponse - parse response which received from the get opertaion.
      * @param target
      * @param request
-     * @return
+     * @return The parsed response.
      * @throws JSONException
      * @throws IllegalArgumentException
      * @throws IllegalAccessException
@@ -430,7 +429,7 @@ public class RESTClient {
 
     /**
      * getserverUrl - to get the server URL.
-     * @return
+     * @return  The server URL.
      */
     public String getServerUrl() {
         return serverUrl;
@@ -1,5 +1,5 @@
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
  * All rights reserved.
  *
  * This program and the accompanying materials are made available under the
 package org.opendaylight.vtn.app.run.config.rest.enumgroups;
 
 /**
- * APPLICATIOM_TYPE - enum which helps to set the content type of the request.
+ * ApplicationType - enum which helps to set the content type of the request.
  *
  */
-public enum APPLICATION_TYPE {
+public enum ApplicationType {
     /**
      * Content type formats either String /json format.
      */
     STRING("application/string"), JSON("application/json");
 
     /**
-     * APPLICATION_TYPE - parameterized constructor.
+     * ApplicationType - parameterized constructor.
      * @param type {@link String}
      */
-    private APPLICATION_TYPE(String type) {
+    private ApplicationType(String type) {
         this.type = type;
     }
 
@@ -1,5 +1,5 @@
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
  * All rights reserved.
  *
  * This program and the accompanying materials are made available under the
 package org.opendaylight.vtn.app.run.config.rest.enumgroups;
 
 /**
- *HTTP_RESPONSE - http response codes are maintained to return the corresponding values.
+ * HttpResponse - http response codes are maintained to return the
+ * corresponding values.
  *
  */
-public enum HTTP_RESPONSE {
+public enum HttpResponse {
 
     /**
      * For Success operation.
@@ -46,11 +47,11 @@ public enum HTTP_RESPONSE {
     UNAUTHORIZED(401, "Action requires user authentication");
 
     /**
-     * HTTP_RESPONSE  parameterized constructor.
+     * HttpResponse  parameterized constructor.
      * @param status {@link Integer}
      * @param description {@link String}
      */
-    private HTTP_RESPONSE(int status, String description) {
+    private HttpResponse(int status, String description) {
         this.status = status;
         this.description = description;
     }
@@ -66,16 +67,16 @@ public enum HTTP_RESPONSE {
     private String description = null;
 
     /**
-     * get teh status of the operation.
-     * @return
+     * get the status of the operation.
+     * @return  The status of the operation.
      */
     public int getStatus() {
         return status;
     }
 
     /**
-     * get description of the operaiton.
-     * @return
+     * get description of the operation.
+     * @return  Description of the operation
      */
     public String getDescription() {
         return description;
@@ -84,10 +85,10 @@ public enum HTTP_RESPONSE {
     /**
      * HTTP_getResponse - function to get the response of the request.
      * @param status
-     * @return
+     * @return  The response of the request.
      */
-    public HTTP_RESPONSE getResponse(int status) {
-        for (HTTP_RESPONSE resp :values()) {
+    public HttpResponse getResponse(int status) {
+        for (HttpResponse resp :values()) {
             if (resp.getStatus() == status) {
                 return resp;
             }
index 2df1762795ea12187f19fb1d9b68014f5b5a0677..268d887ad0fd8cd99653505eebd956c8b4acd748 100644 (file)
@@ -1,4 +1,4 @@
-/**
+/*
  * Copyright (c) 2014-2015 NEC Corporation
  * All rights reserved.
  *
@@ -95,7 +95,7 @@ public class VBridgeInterfaceBean {
     /**
      * get the state of the VBridge.
      *
-     * @return {@link int}
+     * @return The state of the vBridge.
      */
     public int getState() {
         return state;
@@ -104,8 +104,7 @@ public class VBridgeInterfaceBean {
     /**
      * set the state of the VBridge.
      *
-     * @param state
-     *        {@link int}
+     * @param state  The state of the vBridge.
      */
     public void setState(int state) {
         this.state = state;
@@ -114,7 +113,7 @@ public class VBridgeInterfaceBean {
     /**
      * get the Entitystate of the VBridge.
      *
-     * @return {@link int}
+     * @return The entity state.
      */
     public int getEntityState() {
         return entityState;
@@ -123,8 +122,7 @@ public class VBridgeInterfaceBean {
     /**
      * set the Entitystate of the VBridge.
      *
-     * @param entityState
-     *        {@link int}
+     * @param entityState  The entity state.
      */
     public void setEntityState(int entityState) {
         this.entityState = entityState;
@@ -152,7 +150,7 @@ public class VBridgeInterfaceBean {
     /**
      * Check if VBridge isEnabled
      *
-     * @return {@link boolean}
+     * @return A boolean value which indicates the enabled state.
      */
     public boolean isEnabled() {
         return enabled;
@@ -161,8 +159,7 @@ public class VBridgeInterfaceBean {
     /**
      * Enable or Disable VBridge
      *
-     * @param enabled
-     *        {@link boolean}
+     * @param enabled  A boolean value which indicates the enabled state.
      */
     public void setEnabled(boolean enabled) {
         this.enabled = enabled;
index ebeb7d046c59b28f23a915a97c0093e3e9e56098..c281bf481814fa1cca60235a9b0c46ca9b3e8b9a 100644 (file)
@@ -1,4 +1,4 @@
-/**
+/*
  * Copyright (c) 2015 NEC Corporation
  * All rights reserved.
  *
@@ -75,7 +75,7 @@ public class VTerminalInterfaceBean {
     /**
      * get the state of the VTermainal.
      *
-     * @return {@link int}
+     * @return The state of the vTerminal.
      */
     public int getState() {
         return state;
@@ -84,8 +84,7 @@ public class VTerminalInterfaceBean {
     /**
      * set the state of the VTermainal.
      *
-     * @param state
-     *        {@link int}
+     * @param state  The state of the vTerminal.
      */
     public void setState(int state) {
         this.state = state;
@@ -94,7 +93,7 @@ public class VTerminalInterfaceBean {
     /**
      * get the Entitystate of the VTermainal.
      *
-     * @return {@link int}
+     * @return The entity state.
      */
     public int getEntityState() {
         return entityState;
@@ -103,8 +102,7 @@ public class VTerminalInterfaceBean {
     /**
      * set the Entitystate of the VTermainal.
      *
-     * @param entityState
-     *        {@link int}
+     * @param entityState  The entity state.
      */
     public void setEntityState(int entityState) {
         this.entityState = entityState;
@@ -132,7 +130,7 @@ public class VTerminalInterfaceBean {
     /**
      * Check if VTermainal isEnabled
      *
-     * @return {@link boolean}
+     * @return A boolean value which indicates the enabled state.
      */
     public boolean isEnabled() {
         return enabled;
@@ -141,8 +139,7 @@ public class VTerminalInterfaceBean {
     /**
      * Enable or Disable VTermainal
      *
-     * @param enabled
-     *        {@link boolean}
+     * @param enabled  A boolean value which indicates the enabled state.
      */
     public void setEnabled(boolean enabled) {
         this.enabled = enabled;
index 94a0d83ec3259f42576d41d1654ec6d999512621..dd687f13afa23cd6a19881335fa7aab9bac07a52 100644 (file)
@@ -1,5 +1,5 @@
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
  * All rights reserved.
  *
  * This program and the accompanying materials are made available under the
@@ -27,8 +27,8 @@ import com.sun.jersey.api.client.WebResource.Builder;
 import com.sun.jersey.api.client.filter.HTTPBasicAuthFilter;
 import org.opendaylight.vtn.app.run.config.rest.client.CRUDOperation;
 import org.opendaylight.vtn.app.run.config.rest.client.VTNClientException;
-import org.opendaylight.vtn.app.run.config.rest.enumgroups.APPLICATION_TYPE;
-import org.opendaylight.vtn.app.run.config.rest.enumgroups.HTTP_RESPONSE;
+import org.opendaylight.vtn.app.run.config.rest.enumgroups.ApplicationType;
+import org.opendaylight.vtn.app.run.config.rest.enumgroups.HttpResponse;
 
 public class CRUDImpl implements CRUDOperation {
 
@@ -41,7 +41,7 @@ public class CRUDImpl implements CRUDOperation {
 
     public static final String HTTP_STATUS_DESCR  = "response_description";
     public static final String HTTP_STATUS  = "response_status";
-    private APPLICATION_TYPE appType = null;
+    private ApplicationType appType = null;
     private String userName;
     private String password;
 
@@ -51,7 +51,7 @@ public class CRUDImpl implements CRUDOperation {
      * @param userName - username of the controller to connect to the server.
      * @param password - password of the controller to connect to the server.
      */
-    public CRUDImpl(APPLICATION_TYPE appType, String userName, String password) {
+    public CRUDImpl(ApplicationType appType, String userName, String password) {
         this.appType = appType;
         this.client = Client.create();
         this.userName = userName;
@@ -108,12 +108,12 @@ public class CRUDImpl implements CRUDOperation {
     /**
      * To create a JSON object for a particular HTTP response
      * @param response
-     *         HTTP_RESPONSE
+     *         HttpResponse
      * @return
      *         JSONObject
      * @throws JSONException
      */
-    private JSONObject getHttpResponseObject(HTTP_RESPONSE response) throws JSONException {
+    private JSONObject getHttpResponseObject(HttpResponse response) throws JSONException {
         JSONObject object = new JSONObject();
         object.put(HTTP_STATUS_DESCR, response.getDescription());
         object.put(HTTP_STATUS, response.getStatus());
@@ -133,15 +133,15 @@ public class CRUDImpl implements CRUDOperation {
     public String doGET(String url, Map<String, Object> headers) throws VTNClientException, JSONException, ConnectException {
         try {
             ClientResponse response = getWebResource(url, null, headers).accept(appType.getType()).get(ClientResponse.class);
-            if (response.getStatus() == HTTP_RESPONSE.NO_CONTENT.getStatus()) {
-                return getHttpResponseObject(HTTP_RESPONSE.NO_CONTENT).toString();
+            if (response.getStatus() == HttpResponse.NO_CONTENT.getStatus()) {
+                return getHttpResponseObject(HttpResponse.NO_CONTENT).toString();
             } else {
-                if (response.getStatus() == HTTP_RESPONSE.UNAUTHORIZED.getStatus()) {
+                if (response.getStatus() == HttpResponse.UNAUTHORIZED.getStatus()) {
                     LOG.error("Unauthorized access :HTTP error code : {}", response.getStatus());
-                    LOG.error(getHttpResponseObject(HTTP_RESPONSE.UNAUTHORIZED).toString());
+                    LOG.error(getHttpResponseObject(HttpResponse.UNAUTHORIZED).toString());
                     throw new VTNClientException("\n\nFailed to connect to ODL Controller due to unauthorized access..."
                                                     + "\nPlease check Username/Password...");
-                } else if (response.getStatus() != HTTP_RESPONSE.OPERATION_SUCCESS.getStatus()) {
+                } else if (response.getStatus() != HttpResponse.OPERATION_SUCCESS.getStatus()) {
                     LOG.error("GET RequestFailed :HTTP error code : {}", response.getStatus());
                     throw new VTNClientException("\n\nPage not found - " + response.getStatus());
                 }
index 531162e045ee8972277bb43b3b2848df13aca5a3..a8817b0434a20bc37db096634a5ef0a27e67217b 100644 (file)
@@ -1,4 +1,4 @@
-/**
+/*
  * Copyright (c) 2014-2015 NEC Corporation
  * All rights reserved.
  *
@@ -41,9 +41,9 @@ public class Parser {
     /**
      * Type conversion of parsed json object.
      *
-     * @param obj
-     * @param json
-     *
+     * @param object
+     * @param field
+     * @param fieldValue
      */
     private void parseToRespectiveObject(Object object, Field field,
             String fieldValue) {
index 43b23d92b18f51036ec50c18120d5db8a1cc7f79..12706a0d4404a677f955072e2c8850a2cd5903de 100644 (file)
@@ -1,5 +1,5 @@
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
  * All rights reserved.
  *
  * This program and the accompanying materials are made available under the
@@ -90,7 +90,7 @@ public class RestRequest {
 
     /**
      * setResponse - to set the response.
-     * @param response.
+     * @param response
      */
     public void setResponse(String response) {
         this.response = response;
@@ -108,7 +108,8 @@ public class RestRequest {
 
     /**
      * setResponse - to set the response.
-     * @param paramName, paramValue
+     * @param paramName
+     * @param paramValue
      */
     public void setURLParam(String paramName, String paramValue) {
         if (url.contains(PARAM_DELIM_START + paramName + PARAM_DELIM_END)) {
index 369fce76ea314e19e81f8e6d928e74e736386f41..45790366180323b7254e3b3dff2ad20a0b02531a 100644 (file)
@@ -1,5 +1,5 @@
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
  * All rights reserved.
  *
  * This program and the accompanying materials are made available under the
@@ -31,7 +31,7 @@ public class Allow {
 
     /**
      * getMachost - function to get the machost.
-     * @return {@link machost}
+     * @return  A list of {@link MacHost}
      */
     public List<MacHost> getMachost() {
         return machost;
index bbde291c407169c2e43dbae79f1289c4794f00aa..ec3d736161e44d2b51bd50f7e8ecc61354cc7e87 100644 (file)
@@ -1,5 +1,5 @@
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
  * All rights reserved.
  *
  * This program and the accompanying materials are made available under the
@@ -48,7 +48,7 @@ public class Bundle {
 
     /**
      * getMajor - function to get the major values.
-     * @return {@link int}
+     * @return The major version of the bundle.
      */
     public int getMajor() {
         return major;
@@ -56,7 +56,7 @@ public class Bundle {
 
     /**
      * setMajor - function to set a value for major.
-     * @param major {@link int}
+     * @param major The major version of the bundle.
      */
     public void setMajor(int major) {
         this.major = major;
@@ -64,7 +64,7 @@ public class Bundle {
 
     /**
      * getMinor - function to get the value for minor.
-     * @return {@link int}
+     * @return  The minor version of the bundle.
      */
     public int getMinor() {
         return minor;
@@ -72,7 +72,7 @@ public class Bundle {
 
     /**
      * setMinor - function to set a value for minor.
-     * @param minor
+     * @param minor  The minor version of the bundle.
      */
     public void setMinor(int minor) {
         this.minor = minor;
@@ -80,7 +80,7 @@ public class Bundle {
 
     /**
      * getMicro - function to get the value for micro.
-     * @return {@link int}
+     * @return The micro version of the bundle.
      */
     public int getMicro() {
         return micro;
@@ -88,7 +88,7 @@ public class Bundle {
 
     /**
      * setMicro - function to set a value for micro.
-     * @param micro {@link int}
+     * @param micro The micro version of the bundle.
      */
     public void setMicro(int micro) {
         this.micro = micro;
index c863db6e713d37e4333300be0b183dbb6520cae6..10a91b24ca72739ce29976b6616b9ccb6252b507 100644 (file)
@@ -1,5 +1,5 @@
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
  * All rights reserved.
  *
  * This program and the accompanying materials are made available under the
@@ -80,7 +80,7 @@ public class ContainerPathMapNorthBound implements Serializable, Cloneable {
     /**
      * getIndex - function to get the index values.
      *
-     * @return {@link int}
+     * @return The index for the path map.
      */
     public int getIndex() {
         return index;
@@ -117,7 +117,7 @@ public class ContainerPathMapNorthBound implements Serializable, Cloneable {
     /**
      * getPolicy - function to get the policy set.
      *
-     * @return {@link int}
+     * @return The identifier for the path policy.
      */
     public int getPolicy() {
         return policy;
@@ -135,7 +135,7 @@ public class ContainerPathMapNorthBound implements Serializable, Cloneable {
     /**
      * getIdleTimeout - function to get the idleTimeout set.
      *
-     * @return {@link int}
+     * @return The idle timeout.
      */
     public int getIdleTimeout() {
         return idleTimeout;
@@ -153,7 +153,7 @@ public class ContainerPathMapNorthBound implements Serializable, Cloneable {
     /**
      * getHardTimeout - function to get the hardTimeout set.
      *
-     * @return {@link int}
+     * @return The hard timeout.
      */
     public int getHardTimeout() {
         return hardTimeout;
index 8ff0944a63c4fbf02f21e77a06d083cad93c13e1..752f5d3150a85493b07932942ee9999b4eacf7e6 100644 (file)
@@ -1,5 +1,5 @@
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
  * All rights reserved.
  *
  * This program and the accompanying materials are made available under the
@@ -73,7 +73,7 @@ public class CostDetails implements Serializable, Cloneable {
     /**
      * getCost - function to get the cost values.
      *
-     * @return {@link int}
+     * @return The link cost value.
      */
     public int getCost() {
         return cost;
index ca06bc5f444165a655f0f05f87c85c552730f3d0..af49f487111d000068a53e4ae7148925be12351a 100644 (file)
@@ -1,5 +1,5 @@
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
  * All rights reserved.
  *
  * This program and the accompanying materials are made available under the
@@ -105,7 +105,7 @@ public class DataFlow {
     /**
      * getId - function to get the id.
      *
-     * @return {@link int}
+     * @return The identifier of the data flow.
      */
     public long getId() {
         return id;
@@ -123,7 +123,7 @@ public class DataFlow {
     /**
      * getCreationTime - function to get the creationTime.
      *
-     * @return {@link int}
+     * @return The system time when the data flow was created.
      */
     public long getCreationTime() {
         return creationTime;
@@ -141,7 +141,7 @@ public class DataFlow {
     /**
      * getIdleTimeout - function to get the idleTimeout.
      *
-     * @return {@link int}
+     * @return The idle timeout value.
      */
     public int getIdleTimeout() {
         return idleTimeout;
@@ -159,7 +159,7 @@ public class DataFlow {
     /**
      * getHardTimeout - function to get the hardTimeout.
      *
-     * @return {@link int}
+     * @return The hard timeout value.
      */
     public int getHardTimeout() {
         return hardTimeout;
@@ -177,7 +177,7 @@ public class DataFlow {
     /**
      * getInNode - function to get the inNode.
      *
-     * @return {@link int}
+     * @return {@link IngressNode}
      */
     public IngressNode getInNode() {
         return inNode;
@@ -249,7 +249,7 @@ public class DataFlow {
     /**
      * getId - function to get the id.
      *
-     * @return {@link int}
+     * @return {@link Match}
      */
     public Match getMatchobj() {
         return matchobj;
index 6509dd96898193ced13ce42eee6e6ef3627fda60..11748cb66b360093906a0ffc593818a24c149781 100644 (file)
@@ -1,4 +1,4 @@
-/**
+/*
  * Copyright (c) 2015 NEC Corporation
  * All rights reserved.
  *
@@ -32,7 +32,7 @@ public class Dscp {
     /**
      * getDscp - function to get the dscp value for this object.
      *
-     * @return {@link int}
+     * @return The DSCP field value.
      */
     public int getDscp() {
         return dscp;
index a0d924108894d77b93b6d0dca7bed713861f919f..4bd0e0b88c207d706cf54b301b36d5b51f502e0f 100644 (file)
@@ -1,5 +1,5 @@
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
  * All rights reserved.
  *
  * This program and the accompanying materials are made available under the
@@ -60,7 +60,7 @@ public class FlowFilter implements Cloneable, Serializable {
     /**
      * getIndex - function to get the index values for this object.
      *
-     * @return {@link int}
+     * @return The index for the flow filter.
      */
     public int getIndex() {
         return index;
index f603255c3ce792a5fe1beb235b3f9acd82154aad..0a402b9116a5fbb9240dceb9cfa76506a3c79e0a 100644 (file)
@@ -1,11 +1,12 @@
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
  * All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this
  * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
  */
+
 package org.opendaylight.vtn.app.run.config.rest.response.beans;
 
 import org.opendaylight.vtn.app.run.config.json.annotations.JsonElement;
@@ -45,7 +46,7 @@ public class Icmp {
     /**
      * getIndex - function to get the type value for this object.
      *
-     * @return {@link int}
+     * @return The ICMP type.
      */
     public int getType() {
         return type;
@@ -63,7 +64,7 @@ public class Icmp {
     /**
      * getCode - function to get the code values for this object.
      *
-     * @return {@link int}
+     * @return The ICMP code.
      */
     public int getCode() {
         return code;
index a227b3ba653b7cb87aeb09d104ca4c7f9b40930f..50042a206839ee35fd99dca367c192425fdd9708 100644 (file)
@@ -1,4 +1,4 @@
-/**
+/*
  * Copyright (c) 2015 NEC Corporation
  * All rights reserved.
  *
@@ -32,7 +32,7 @@ public class IcmpCode {
     /**
      * getCode - function to get the code value for this object.
      *
-     * @return {@link int}
+     * @return The ICMP code.
      */
     public int getCode() {
         return code;
index 6e88fc4f401d519b8dbac7a18dec945fcd87b3f6..a6bdc350ecd7006d6df2747b36aa189650ba457c 100644 (file)
@@ -1,4 +1,4 @@
-/**
+/*
  * Copyright (c) 2015 NEC Corporation
  * All rights reserved.
  *
@@ -32,7 +32,7 @@ public class IcmpType {
     /**
      * getDscp - function to get the type value for this object.
      *
-     * @return {@link int}
+     * @return The ICMP type.
      */
     public int getType() {
         return type;
index 53419ad3dfb8dad9121085440453baea262c3fa8..572324883d43e3cf46a193094a6eeafe5513f2a1 100644 (file)
@@ -1,11 +1,12 @@
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
  * All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this
  * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
  */
+
 package org.opendaylight.vtn.app.run.config.rest.response.beans;
 
 import java.io.Serializable;
@@ -41,7 +42,7 @@ public class Index implements Serializable, Cloneable {
     /**
      * getValue - function to get the values for this object.
      *
-     * @return {@link int}
+     * @return The index value.
      */
     public int getValue() {
         return value;
index 851a24658c938279f974f9cd6daf30663b4ddadf..79894e68c3ff0e94d6e87143dd8807fe63526ebd 100644 (file)
@@ -1,4 +1,4 @@
-/**
+/*
  * Copyright (c) 2014-2015 NEC Corporation
  * All rights reserved.
  *
@@ -6,6 +6,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this
  * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
  */
+
 package org.opendaylight.vtn.app.run.config.rest.response.beans;
 
 import org.opendaylight.vtn.app.run.config.json.annotations.JsonElement;
@@ -87,7 +88,7 @@ public class Inet {
     /**
      * getProtocol - function to get the protocol values for this object.
      *
-     * @return {@link int}
+     * @return The protocol number.
      */
     public int getProtocol() {
         return protocol;
index 124d0df8cfa6eccd85b04bf0375ec313fbde23cc..91e5d541ae14f3782a89a5f3616a975bdddba264 100644 (file)
@@ -1,11 +1,12 @@
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
  * All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this
  * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
  */
+
 package org.opendaylight.vtn.app.run.config.rest.response.beans;
 
 import java.util.ArrayList;
@@ -26,7 +27,7 @@ public class InetAddressDetails {
     /**
      * getInetAddress - function to get the inetAddress values for this object.
      *
-     * @return {@link int}
+     * @return A list of {@link InetAddressDetailsList}.
      */
     public List<InetAddressDetailsList> getInetAddress() {
         return inetAddress;
index baf23ca39ab7e9a4815bda2e27089a51bedbf966..a0b158b45e320ae4dace6b7ec174c0373b984f53 100644 (file)
@@ -1,11 +1,12 @@
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
  * All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this
  * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
  */
+
 package org.opendaylight.vtn.app.run.config.rest.response.beans;
 
 import org.opendaylight.vtn.app.run.config.json.annotations.JsonObject;
@@ -34,7 +35,7 @@ public class InetMatch {
     /**
      * getInet - function to get the inet4 values for this object.
      *
-     * @return {@link int}
+     * @return {@link Inet}
      */
     public Inet getInet() {
         return inet4;
index e7f7e1d2d3854d68865cf6ba7f64258af16ce21a..efd14c68541332b8fad183509d390c566a4c2e84 100644 (file)
@@ -1,11 +1,12 @@
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
  * All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this
  * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
  */
+
 package org.opendaylight.vtn.app.run.config.rest.response.beans;
 
 import org.opendaylight.vtn.app.run.config.json.annotations.JsonElement;
@@ -40,7 +41,7 @@ public class InputOutput {
     /**
      * getId - function to get the id for this object.
      *
-     * @return {@link int}
+     * @return The identifier of the switch port.
      */
     public String getId() {
         return id;
index 645e7e71c4fc0cad2ebc319144072d7ba8a28ebd..088bb4c5c0c86778fd25b4cf110ed5ea1e67ef76 100644 (file)
@@ -1,11 +1,12 @@
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
  * All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this
  * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
  */
+
 package org.opendaylight.vtn.app.run.config.rest.response.beans;
 
 import org.opendaylight.vtn.app.run.config.json.annotations.JsonObject;
@@ -34,7 +35,7 @@ public class L4Match {
     /**
      * getIcmp - function to get the icmp reference for this object.
      *
-     * @return {@link int}
+     * @return {@link Icmp}
      */
     public Icmp getIcmp() {
         return icmp;
index 0ebde471e6fd8ec5686788c9f1367b7c6c9234f8..8b670cb20648b15cd282a6251f8f40041e831dc3 100644 (file)
@@ -1,11 +1,12 @@
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
  * All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this
  * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
  */
+
 package org.opendaylight.vtn.app.run.config.rest.response.beans;
 
 import org.opendaylight.vtn.app.run.config.json.annotations.JsonElement;
@@ -90,7 +91,7 @@ public class MacEntry {
     /**
      * getNode - function to get the node value for this object.
      *
-     * @return {@link getNode}
+     * @return {@link NodeDetails}
      */
     public NodeDetails getNode() {
         return node;
index 4e57a0eb525392647d018c7f56ccbaff23679f85..22b855c30186f4f01437dd9d5ef4fd8bd08e32c4 100644 (file)
@@ -1,11 +1,12 @@
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
  * All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this
  * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
  */
+
 package org.opendaylight.vtn.app.run.config.rest.response.beans;
 
 import org.opendaylight.vtn.app.run.config.json.annotations.JsonElement;
@@ -56,7 +57,7 @@ public class MappedDetails {
     /**
      * getId - function to get the Id values for this object.
      *
-     * @return {@link int}
+     * @return The identifier of the switch port.
      */
     public String getId() {
         return id;
index 806cddfd2482325700f0097308a1359d00778e5d..28095df5d7a34b332a3e3a44a448db5348d9b234 100644 (file)
@@ -1,11 +1,12 @@
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
  * All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this
  * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
  */
+
 package org.opendaylight.vtn.app.run.config.rest.response.beans;
 
 import org.opendaylight.vtn.app.run.config.json.annotations.JsonElement;
@@ -53,7 +54,7 @@ public class Match {
     /**
      * getIndex - function to get the index values for this object.
      *
-     * @return {@link int}
+     * @return The index of this match.
      */
     public int getIndex() {
         return index;
@@ -107,7 +108,7 @@ public class Match {
     /**
      * getL4match - function to get the l4match values for this object.
      *
-     * @return {@link l4match}
+     * @return {@link L4Match}
      */
     public L4Match getL4match() {
         return l4match;
index 394e96b5a6a35924afa337e1b2d8a17d5266542a..b08cc54487d5771e4d8124690241b0643069ff7e 100644 (file)
@@ -1,5 +1,5 @@
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
  * All rights reserved.
  *
  * This program and the accompanying materials are made available under the
@@ -35,7 +35,7 @@ public class NodeDetails {
     /**
      * getType - function to get the type for this object.
      *
-     * @return {@link type}
+     * @return  The type of the node.
      */
     public String getType() {
         return type;
@@ -53,7 +53,7 @@ public class NodeDetails {
     /**
      * getType - function to get the value of id for this object.
      *
-     * @return {@link int}
+     * @return The identifier of the node.
      */
     public String getId() {
         return id;
index 232f1965d1f84e8aad2a19a3480753145dc36ce9..801eb06d511f3e384957aa9327491cb298d6282c 100644 (file)
@@ -1,5 +1,5 @@
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
  * All rights reserved.
  *
  * This program and the accompanying materials are made available under the
@@ -45,7 +45,7 @@ public class PathPoliciesIndex implements Serializable, Cloneable {
     /**
      * getIntegers - Method returns the index valus for this object.
      *
-     * @return {@link int}
+     * @return A list of path policy indices.
      */
     public List<Index> getIntegers() {
         return integers;
index 1d7b2cf4d3c67ee639a21d57d02965a484ae9f65..a1348ee25195d0577518f38596dcb53ccc5851d4 100644 (file)
@@ -1,5 +1,5 @@
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
  * All rights reserved.
  *
  * This program and the accompanying materials are made available under the
@@ -58,7 +58,7 @@ public class PathPolicy implements Serializable, Cloneable {
     /**
      * getId - Id value can be obtained from this method
      *
-     * @return {@link int}
+     * @return The identifier for the path policy.
      */
     public int getId() {
         return id;
@@ -76,7 +76,7 @@ public class PathPolicy implements Serializable, Cloneable {
     /**
      * getDefaultInt - default value can be obtained from this method
      *
-     * @return {@link int}
+     * @return The default cost.
      */
     public int getDefaultInt() {
         return defaultInt;
index 7b3c897f1f0fa54f533c78a6b3dfebf058d36bfe..0b0866d2eda1cc81abdd52c2bf0f6f74e73cd961 100644 (file)
@@ -1,5 +1,5 @@
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
  * All rights reserved.
  *
  * This program and the accompanying materials are made available under the
@@ -35,7 +35,7 @@ public class Redirect {
     /**
      * isOutput - get the status of Output.
      *
-     * @return {@link boolean}
+     * @return  A boolean value which indicates the direction.
      */
     public boolean isOutput() {
         return output;
index d632dbbdfb81a059af0b5289280a70340d84650f..560b0abc785ee381509382ad05d856ad17baee20 100644 (file)
@@ -1,5 +1,5 @@
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
  * All rights reserved.
  *
  * This program and the accompanying materials are made available under the
@@ -42,7 +42,7 @@ public class Statistics {
     /**
      * getBytes - function to get the bytes for this object.
      *
-     * @return {@link int}
+     * @return The number of bytes.
      */
     public int getBytes() {
         return bytes;
@@ -51,7 +51,7 @@ public class Statistics {
     /**
      * setBytes - function to set the bytes for this object.
      *
-     * @param bytes
+     * @param bytes  The number of bytes.
      */
     public void setBytes(int bytes) {
         this.bytes = bytes;
@@ -60,7 +60,7 @@ public class Statistics {
     /**
      * getPackets - function to get the packets for this object.
      *
-     * @return {@link int}
+     * @return The number of packets.
      */
     public int getPackets() {
         return packets;
@@ -69,7 +69,7 @@ public class Statistics {
     /**
      * setPackets - function to set the packets for this object.
      *
-     * @param packets {@link int}
+     * @param packets  The number of packets.
      */
     public void setPackets(int packets) {
         this.packets = packets;
@@ -78,7 +78,7 @@ public class Statistics {
     /**
      * getDuration - function to get the duration for this object.
      *
-     * @return {@link int}
+     * @return The duration of the data flow.
      */
     public int getDuration() {
         return duration;
@@ -87,7 +87,7 @@ public class Statistics {
     /**
      * setDuration - function to set the duration for this object.
      *
-     * @param duration {@link int}
+     * @param duration The duration of the data flow.
      */
     public void setDuration(int duration) {
         this.duration = duration;
index 0e4ea383d97c90eba83f06124e01ecf91f5429f8..1e4d6e0adbce03a5ae35bb4b5d43a86ff19c5247 100644 (file)
@@ -1,4 +1,4 @@
-/**
+/*
  * Copyright (c) 2015 NEC Corporation
  * All rights reserved.
  *
@@ -32,7 +32,7 @@ public class Tpdst {
     /**
      * getDscp - function to get the dscp value for this object.
      *
-     * @return {@link int}
+     * @return The port value.
      */
     public int getPort() {
         return port;
index ef36e9dfa3f36885701a185fcbaf4cb2cbd4f23a..218df51b65a0300698c12b78effe152b9c749082 100644 (file)
@@ -1,4 +1,4 @@
-/**
+/*
  * Copyright (c) 2015 NEC Corporation
  * All rights reserved.
  *
@@ -32,7 +32,7 @@ public class Tpsrc {
     /**
      * getDscp - function to get the dscp value for this object.
      *
-     * @return {@link int}
+     * @return The port value.
      */
     public int getPort() {
         return port;
index ede173e23255469c40cedd351c5256a3e82ea9b4..ae201a035ff955b2d81bdef63157e65b4fd197c8 100644 (file)
@@ -1,5 +1,5 @@
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
  * All rights reserved.
  *
  * This program and the accompanying materials are made available under the
@@ -72,7 +72,7 @@ public class VBridgeInterface {
     /**
      * getState - function to get the state for this object.
      *
-     * @return {@link int}
+     * @return The state of the interface.
      */
     public int getState() {
         return state;
@@ -90,7 +90,7 @@ public class VBridgeInterface {
     /**
      * getEntityState - function to get the entity state for this object.
      *
-     * @return {@link int}
+     * @return The entity state.
      */
     public int getEntityState() {
         return entityState;
@@ -126,7 +126,7 @@ public class VBridgeInterface {
     /**
      * getEnabled - function to get the enabled state for this object.
      *
-     * @return {@link boolean}
+     * @return  A boolean value which indicates the enabled state.
      */
     public boolean getEnabled() {
         return enabled;
index fd28782b6c705d3e754598e615ad4081a4566f30..5622a7bf84ff9e38e94ca27321456f2911031004 100644 (file)
@@ -1,4 +1,4 @@
-/**
+/*
  * Copyright (c) 2014-2015 NEC Corporation
  * All rights reserved.
  *
@@ -92,7 +92,7 @@ public class VBridgeNorthBound {
     /**
      * getFaults - function to get the faults  for this object.
      *
-     * @return {@link int}
+     * @return The number of path faults.
      */
     public int getFaults() {
         return faults;
index 24396f817ce765f6ea81007f2ccff115774bbb5b..7a2dc27e17c4e6289c00ebc4a02475e685ac395e 100644 (file)
@@ -1,5 +1,5 @@
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
  * All rights reserved.
  *
  * This program and the accompanying materials are made available under the
@@ -92,7 +92,7 @@ public class VTNConfiguration {
     /**
      * getVtn - function to get the vtn for this object.
      *
-     * @return {@link vtn }
+     * @return A list of VTNs.
      */
     public List<VTNConfigurationBean> getVtn() {
         return vtn;
@@ -110,7 +110,7 @@ public class VTNConfiguration {
     /**
      * getPathmap - function to get the pathmap for this object.
      *
-     * @return {@link pathmap }
+     * @return pathmap
      */
     public ContainerPathMapNorthBoundList getPathmap() {
         return pathmap;
index a94b3447d7d7b342f1c8e2d996adf94a1516308e..b414323c646dc29faadb64bbe8221ea6d1e35376 100644 (file)
@@ -1,4 +1,4 @@
-/**
+/*
  * Copyright (c) 2014-2015 NEC Corporation
  * All rights reserved.
  *
@@ -178,7 +178,7 @@ public class VTNConfigurationBean {
     /**
      * getPath - function to get the IdleTimeout .
      *
-     * @return {@link int }
+     * @return The idle timeout value.
      */
     public int getIdleTimeout() {
         return idleTimeout;
@@ -196,7 +196,7 @@ public class VTNConfigurationBean {
     /**
      * getHardTimeout - function to get the hardTimeout .
      *
-     * @return {@link int }
+     * @return The hard timeout value.
      */
     public int getHardTimeout() {
         return hardTimeout;
index 0ed237a94e1e02cc3933f40d7c46c16f1f0ff5c7..5853db7c83680ce095001d53f4b16618b883b669 100644 (file)
@@ -1,5 +1,5 @@
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
  * All rights reserved.
  *
  * This program and the accompanying materials are made available under the
@@ -43,7 +43,7 @@ public class VTNManagerVersion {
     /**
      * getApi - function to get the api for this object.
      *
-     * @return {@link int }
+     * @return The API version.
      */
     public int getApi() {
         return api;
index 94cc276482e8ad1296489a804b68c1028c3f2fa8..1b086e0c2766e82e6ebbc3b7d3a924d20d3e09b8 100644 (file)
@@ -1,5 +1,5 @@
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
  * All rights reserved.
  *
  * This program and the accompanying materials are made available under the
@@ -51,7 +51,10 @@ public class VTenantNorthBound {
 
     /**
      * Parameterized Constructor.
-     *  @param vtnName,vtnDesc,idleTimeout
+     * @param vtnName
+     * @param vtnDesc
+     * @param idleTimeout
+     * @param hardTimeout
      */
     public VTenantNorthBound(String vtnName, String vtnDesc, int idleTimeout,
             int hardTimeout) {
@@ -100,7 +103,7 @@ public class VTenantNorthBound {
     /**
      * getIdleTimeout - function to get the idleTimeout for this object.
      *
-     * @return {@link int }
+     * @return The idle timeout value.
      */
     public int getIdleTimeout() {
         return idleTimeout;
@@ -118,7 +121,7 @@ public class VTenantNorthBound {
     /**
      * getHardTimeout - function to get the hardTimeout for this object.
      *
-     * @return {@link int }
+     * @return The hard timeout value.
      */
     public int getHardTimeout() {
         return hardTimeout;
index 4296cc89e80e1529862b606baf3b88e45b5070c0..00c02b44222c45047c2d939be3614802b5d31d60 100644 (file)
@@ -1,11 +1,12 @@
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
  * All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this
  * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
  */
+
 package org.opendaylight.vtn.app.run.config.rest.response.beans;
 
 import java.io.Serializable;
@@ -51,7 +52,7 @@ public class VTenantNorthBoundList implements Serializable, Cloneable {
     /**
      * getVtns - function to get the vtn value for this object.
      *
-     * @return {@link vtn}
+     * @return A list of VTNs.
      */
     public List<VTenantNorthBound> getVtns() {
         return vtn;
index 970fb5da7b814049a239e074ccb17460e26b4eca..4592e7236ba39df357e5b8cd1b55accc6259813b 100644 (file)
@@ -1,5 +1,5 @@
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
  * All rights reserved.
  *
  * This program and the accompanying materials are made available under the
@@ -55,7 +55,10 @@ public class VTenantPathMapNorthBound {
 
     /**
      * Parameterized Constructor.
-     * @param index, condition, idleTimeout, hardTimeout
+     * @param index
+     * @param condition
+     * @param idleTimeout
+     * @param hardTimeout
      */
     public VTenantPathMapNorthBound(int index, String condition,
             int idleTimeout, int hardTimeout) {
@@ -66,9 +69,9 @@ public class VTenantPathMapNorthBound {
     }
 
     /**
-     * getPolicy - function to get the policy for this object.
+     * getPolicy - function to get the index for this object.
      *
-     * @return {@link int }
+     * @return  The index for this object.
      */
     public int getIndex() {
         return index;
@@ -86,7 +89,7 @@ public class VTenantPathMapNorthBound {
     /**
      * getCondition - function to get the condition for this object.
      *
-     * @return {@link int }
+     * @return  The name of the flow condition.
      */
     public String getCondition() {
         return condition;
@@ -104,7 +107,7 @@ public class VTenantPathMapNorthBound {
     /**
      * getPolicy - function to get the policy for this object.
      *
-     * @return {@link int }
+     * @return  The path policy identifier.
      */
     public int getPolicy() {
         return policy;
@@ -122,7 +125,7 @@ public class VTenantPathMapNorthBound {
     /**
      * getIdleTimeout - function to get the idleTimeout for this object.
      *
-     * @return {@link int }
+     * @return The idle timeout value.
      */
     public int getIdleTimeout() {
         return idleTimeout;
@@ -140,7 +143,7 @@ public class VTenantPathMapNorthBound {
     /**
      * getVtnName - function to get the hardTimeout for this object.
      *
-     * @return {@link int }
+     * @return The hard timeout value.
      */
     public int getHardTimeout() {
         return hardTimeout;
index 193f38b90567a98f321aef1bd20bcd614eb0e8b1..c57e6704fdeb901328b07d9721443762effba8ca 100644 (file)
@@ -1,4 +1,4 @@
-/**
+/*
  * Copyright (c) 2015 NEC Corporation
  * All rights reserved.
  *
@@ -76,7 +76,7 @@ public class VTerminalInterfaceNorthbound {
     /**
      * getState - function to get the state for this object.
      *
-     * @return {@link int}
+     * @return The state of the interface.
      */
     public int getState() {
         return state;
@@ -94,7 +94,7 @@ public class VTerminalInterfaceNorthbound {
     /**
      * getEntityState - function to get the entity state for this object.
      *
-     * @return {@link int}
+     * @return The entity state.
      */
     public int getEntityState() {
         return entityState;
@@ -130,7 +130,7 @@ public class VTerminalInterfaceNorthbound {
     /**
      * getEnabled - function to get the enabled state for this object.
      *
-     * @return {@link boolean}
+     * @return A boolean value which indicates the enabled state.
      */
     public boolean getEnabled() {
         return enabled;
index d7f3b5a83233aef22885b62ce991f5476267b55a..c3dc37ab1ff603968ff7aa6c2ddeb5e2b8201b24 100644 (file)
@@ -1,4 +1,4 @@
-/**
+/*
  * Copyright (c) 2015 NEC Corporation
  * All rights reserved.
  *
@@ -49,7 +49,10 @@ public class VTerminalNorthBound {
     }
     /**
      * Parameterized Constructor.
-     * @param name,description,faults
+     * @param name
+     * @param description
+     * @param faults
+     * @param state
      */
     public VTerminalNorthBound(String name, String description, int faults,
         int state) {
@@ -98,7 +101,7 @@ public class VTerminalNorthBound {
     /**
      * getFaults - function to get the faults for this object.
      *
-     * @return {@link int}
+     * @return The number of path faults.
      */
     public int getFaults() {
         return faults;
@@ -116,7 +119,7 @@ public class VTerminalNorthBound {
     /**
      * getState - function to get the state for this object.
      *
-     * @return {@link int}
+     * @return The state of the vTerminal.
      */
     public int getState() {
         return state;
index 7b8ba58c4400b5b590cffb1dea420d9da7e1191f..612b69d30192989dc9c4277277f070f78c6c73c2 100644 (file)
@@ -1,5 +1,5 @@
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
  * All rights reserved.
  *
  * This program and the accompanying materials are made available under the
@@ -45,7 +45,7 @@ public class VlanNorthBound {
     /**
      * getId - function to get the id for this object.
      *
-     * @return {@link int}
+     * @return  The identifier for the VLAN map.
      */
     public String getId() {
         return id;
@@ -63,7 +63,7 @@ public class VlanNorthBound {
     /**
      * getVlan - function to get the vlan for this object.
      *
-     * @return {@link int}
+     * @return  The VLAN ID.
      */
     public int getVlan() {
         return vlan;
@@ -72,7 +72,7 @@ public class VlanNorthBound {
     /**
      * setVlan - function to set the vlan for this object.
      *
-     * @param vlan.
+     * @param vlan
      */
     public void setVlan(int vlan) {
         this.vlan = vlan;
@@ -90,7 +90,7 @@ public class VlanNorthBound {
     /**
      * setNode - function to set the node for this object.
      *
-     * @param node.
+     * @param node
      */
     public void setNode(NodeDetails node) {
         this.node = node;
index c7348cd9d8177f9049f5019385f4ebdb8012c739..61d6bbaae5f82ea599f8634eda931e40170040c4 100644 (file)
@@ -1,5 +1,5 @@
-/**
- * Copyright (c) 2014 NEC Corporation
+/*
+ * Copyright (c) 2014-2015 NEC Corporation
  * All rights reserved.
  *
  * This program and the accompanying materials are made available under the
@@ -32,7 +32,7 @@ public class VlanPcp {
     /**
      * getPriority - function to get the priority value for this object.
      *
-     * @return {@link int}
+     * @return The VLAN priority.
      */
     public int getPriority() {
         return priority;
index d1fc5955b74fa0b9f85bffd6fd634071e991289b..4cc9cf5c6eef55635f647ba33080e6d406012679 100644 (file)
@@ -1,18 +1,95 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-    <modelVersion>4.0.0</modelVersion>
-
-    <groupId>org.opendaylight.vtn.application</groupId>
-    <artifactId>dist</artifactId>
-    <version>1.0.1-SNAPSHOT</version>
-    <packaging>pom</packaging>
-    <name>application</name>
-
-    <modules>
-        <module>list_vtn_configuration</module>
-        <module>checkstyle</module>
-        <module>ODL_VSEM_PROVIDER_SRC</module>
-    </modules>
+
+<!--
+#
+# Copyright (c) 2014-2015 NEC Corporation
+# All rights reserved.
+#
+# This program and the accompanying materials are made available under the
+# terms of the Eclipse Public License v1.0 which accompanies this
+# distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
+#
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.opendaylight.vtn</groupId>
+    <artifactId>common</artifactId>
+    <version>0.3.0-SNAPSHOT</version>
+    <relativePath>../common</relativePath>
+  </parent>
+
+  <groupId>org.opendaylight.vtn.application</groupId>
+  <artifactId>dist</artifactId>
+  <version>1.0.1-SNAPSHOT</version>
+  <packaging>pom</packaging>
+  <name>application</name>
+
+  <scm>
+    <connection>scm:git:https://git.opendaylight.org/gerrit/p/vtn.git</connection>
+    <developerConnection>scm:git:ssh://git.opendaylight.org:29418/vtn.git</developerConnection>
+    <url>https://wiki.opendaylight.org/view/OpenDaylight_Virtual_Tenant_Network_%28VTN%29:Main</url>
+    <tag>HEAD</tag>
+  </scm>
+
+  <properties>
+    <!-- Default checkstyle configuration -->
+    <vtn.checkstyle.xml>vtn/checkstyle.xml</vtn.checkstyle.xml>
+  </properties>
+
+  <profiles>
+    <profile>
+      <!-- Run strict coding style check -->
+      <id>strictcheck</id>
+      <activation>
+        <activeByDefault>false</activeByDefault>
+      </activation>
+      <properties>
+        <vtn.checkstyle.xml>vtn/checkstyle_strict.xml</vtn.checkstyle.xml>
+      </properties>
+    </profile>
+  </profiles>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-checkstyle-plugin</artifactId>
+        <dependencies>
+          <dependency>
+            <groupId>org.opendaylight.vtn</groupId>
+            <artifactId>manager.checkstyle</artifactId>
+            <version>0.3.0-SNAPSHOT</version>
+          </dependency>
+        </dependencies>
+
+        <executions>
+          <execution>
+            <phase>process-sources</phase>
+            <goals>
+              <goal>check</goal>
+            </goals>
+          </execution>
+        </executions>
+
+        <configuration>
+          <failsOnError>true</failsOnError>
+          <configLocation>${vtn.checkstyle.xml}</configLocation>
+          <consoleOutput>true</consoleOutput>
+          <includeTestSourceDirectory>true</includeTestSourceDirectory>
+          <sourceDirectory>${project.basedir}</sourceDirectory>
+          <includes>**\/*.java,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat</includes>
+          <excludes>**\/target\/</excludes>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+
+  <modules>
+    <module>list_vtn_configuration</module>
+    <module>ODL_VSEM_PROVIDER_SRC</module>
+  </modules>
 
 </project>