summaryrefslogtreecommitdiffstats
path: root/model/model-api
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2019-12-06 14:08:23 +0000
committerGerrit Code Review <gerrit@onap.org>2019-12-06 14:08:23 +0000
commitf2afbf26813e09b464d48281a52c8c717536b6ec (patch)
tree98f0f49b4366fb7cb81a52be62f0dda086f1d817 /model/model-api
parent93fa9642390a61d8db36e6e68795137b4895b021 (diff)
parent7a0a44eac6167cfeff935c39f2c3f20d3a893c3e (diff)
Merge "Minor changes for new Eclipse checkstyle checks"
Diffstat (limited to 'model/model-api')
-rw-r--r--model/model-api/src/main/java/org/onap/policy/apex/model/modelapi/impl/ApexModelImpl.java7
-rw-r--r--model/model-api/src/test/resources/models/PolicyModel.xml48
2 files changed, 29 insertions, 26 deletions
diff --git a/model/model-api/src/main/java/org/onap/policy/apex/model/modelapi/impl/ApexModelImpl.java b/model/model-api/src/main/java/org/onap/policy/apex/model/modelapi/impl/ApexModelImpl.java
index 77ded31d6..cdbe62351 100644
--- a/model/model-api/src/main/java/org/onap/policy/apex/model/modelapi/impl/ApexModelImpl.java
+++ b/model/model-api/src/main/java/org/onap/policy/apex/model/modelapi/impl/ApexModelImpl.java
@@ -59,8 +59,7 @@ public final class ApexModelImpl implements ApexModel {
* Create an implementation of the Apex editor and model APIs.
*
* @param apexProperties The properties to use for the model
- * @param jsonMode set to true to return JSON strings in list and delete operations, otherwise
- * set to false
+ * @param jsonMode set to true to return JSON strings in list and delete operations, otherwise set to false
*/
public ApexModelImpl(final Properties apexProperties, final boolean jsonMode) {
this.apexProperties = apexProperties;
@@ -81,7 +80,9 @@ public final class ApexModelImpl implements ApexModel {
/**
* Constructor, prevents this class being sub-classed.
*/
- private ApexModelImpl() {}
+ private ApexModelImpl() {
+ // Private constructor to block subclassing
+ }
/**
* {@inheritDoc}.
diff --git a/model/model-api/src/test/resources/models/PolicyModel.xml b/model/model-api/src/test/resources/models/PolicyModel.xml
index 684ce32c9..e3bf59f29 100644
--- a/model/model-api/src/test/resources/models/PolicyModel.xml
+++ b/model/model-api/src/test/resources/models/PolicyModel.xml
@@ -6,15 +6,15 @@
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-
+
SPDX-License-Identifier: Apache-2.0
============LICENSE_END=========================================================
-->
@@ -41,7 +41,7 @@
<version>0.0.1</version>
</key>
<UUID>0ce9168c-e6df-414f-9646-6da464b6e000</UUID>
- <description><![CDATA[Generated description for concept referred to by key "ContextSchemas:0.0.1"]]></description>
+ <description><![CDATA[Description for concept with key "ContextSchemas:0.0.1"]]></description>
</value>
</entry>
<entry>
@@ -55,7 +55,7 @@
<version>0.0.1</version>
</key>
<UUID>0ce9168c-e6df-414f-9646-6da464b6e001</UUID>
- <description><![CDATA[Generated description for concept referred to by key "KeyInfoMapKey:0.0.1"]]></description>
+ <description><![CDATA[Description for concept with key "KeyInfoMapKey:0.0.1"]]></description>
</value>
</entry>
<entry>
@@ -69,7 +69,7 @@
<version>0.0.1</version>
</key>
<UUID>0ce9168c-e6df-414f-9646-6da464b6e002</UUID>
- <description><![CDATA[Generated description for concept referred to by key "MapType:0.0.1"]]></description>
+ <description><![CDATA[Description for concept with key "MapType:0.0.1"]]></description>
</value>
</entry>
<entry>
@@ -83,7 +83,7 @@
<version>0.0.1</version>
</key>
<UUID>0ce9168c-e6df-414f-9646-6da464b6e003</UUID>
- <description><![CDATA[Generated description for concept referred to by key "PolicyModel:0.0.1"]]></description>
+ <description><![CDATA[Description for concept with key "PolicyModel:0.0.1"]]></description>
</value>
</entry>
<entry>
@@ -97,7 +97,7 @@
<version>0.0.1</version>
</key>
<UUID>0ce9168c-e6df-414f-9646-6da464b6e004</UUID>
- <description><![CDATA[Generated description for concept referred to by key "StringType:0.0.1"]]></description>
+ <description><![CDATA[Description for concept with key "StringType:0.0.1"]]></description>
</value>
</entry>
<entry>
@@ -111,7 +111,7 @@
<version>0.0.1</version>
</key>
<UUID>0ce9168c-e6df-414f-9646-6da464b6e005</UUID>
- <description><![CDATA[Generated description for concept referred to by key "context:0.0.1"]]></description>
+ <description><![CDATA[Description for concept with key "context:0.0.1"]]></description>
</value>
</entry>
<entry>
@@ -125,7 +125,7 @@
<version>0.0.1</version>
</key>
<UUID>0ce9168c-e6df-414f-9646-6da464b6e006</UUID>
- <description><![CDATA[Generated description for concept referred to by key "contextAlbum0:0.0.1"]]></description>
+ <description><![CDATA[Description for concept with key "contextAlbum0:0.0.1"]]></description>
</value>
</entry>
<entry>
@@ -139,7 +139,7 @@
<version>0.0.1</version>
</key>
<UUID>0ce9168c-e6df-414f-9646-6da464b6e007</UUID>
- <description><![CDATA[Generated description for concept referred to by key "contextAlbum1:0.0.1"]]></description>
+ <description><![CDATA[Description for concept with key "contextAlbum1:0.0.1"]]></description>
</value>
</entry>
<entry>
@@ -153,7 +153,7 @@
<version>0.0.1</version>
</key>
<UUID>0ce9168c-e6df-414f-9646-6da464b6e008</UUID>
- <description><![CDATA[Generated description for concept referred to by key "eventContextItem0:0.0.1"]]></description>
+ <description><![CDATA[Description for concept with key "eventContextItem0:0.0.1"]]></description>
</value>
</entry>
<entry>
@@ -167,7 +167,7 @@
<version>0.0.1</version>
</key>
<UUID>0ce9168c-e6df-414f-9646-6da464b6e009</UUID>
- <description><![CDATA[Generated description for concept referred to by key "eventContextItem1:0.0.1"]]></description>
+ <description><![CDATA[Description for concept with key "eventContextItem1:0.0.1"]]></description>
</value>
</entry>
<entry>
@@ -181,7 +181,7 @@
<version>0.0.1</version>
</key>
<UUID>0ce9168c-e6df-414f-9646-6da464b6e010</UUID>
- <description><![CDATA[Generated description for concept referred to by key "events:0.0.1"]]></description>
+ <description><![CDATA[Description for concept with key "events:0.0.1"]]></description>
</value>
</entry>
<entry>
@@ -195,7 +195,7 @@
<version>0.0.1</version>
</key>
<UUID>0ce9168c-e6df-414f-9646-6da464b6e011</UUID>
- <description><![CDATA[Generated description for concept referred to by key "inEvent:0.0.1"]]></description>
+ <description><![CDATA[Description for concept with key "inEvent:0.0.1"]]></description>
</value>
</entry>
<entry>
@@ -209,7 +209,7 @@
<version>0.0.1</version>
</key>
<UUID>0ce9168c-e6df-414f-9646-6da464b6e012</UUID>
- <description><![CDATA[Generated description for concept referred to by key "outEvent0:0.0.1"]]></description>
+ <description><![CDATA[Description for concept with key "outEvent0:0.0.1"]]></description>
</value>
</entry>
<entry>
@@ -223,7 +223,7 @@
<version>0.0.1</version>
</key>
<UUID>0ce9168c-e6df-414f-9646-6da464b6e013</UUID>
- <description><![CDATA[Generated description for concept referred to by key "outEvent1:0.0.1"]]></description>
+ <description><![CDATA[Description for concept with key "outEvent1:0.0.1"]]></description>
</value>
</entry>
<entry>
@@ -237,7 +237,7 @@
<version>0.0.1</version>
</key>
<UUID>0ce9168c-e6df-414f-9646-6da464b6e014</UUID>
- <description><![CDATA[Generated description for concept referred to by key "policies:0.0.1"]]></description>
+ <description><![CDATA[Description for concept with key "policies:0.0.1"]]></description>
</value>
</entry>
<entry>
@@ -251,7 +251,7 @@
<version>0.0.1</version>
</key>
<UUID>0ce9168c-e6df-414f-9646-6da464b6e015</UUID>
- <description><![CDATA[Generated description for concept referred to by key "policy:0.0.1"]]></description>
+ <description><![CDATA[Description for concept with key "policy:0.0.1"]]></description>
</value>
</entry>
<entry>
@@ -265,7 +265,7 @@
<version>0.0.1</version>
</key>
<UUID>0ce9168c-e6df-414f-9646-6da464b6e016</UUID>
- <description><![CDATA[Generated description for concept referred to by key "task:0.0.1"]]></description>
+ <description><![CDATA[Description for concept with key "task:0.0.1"]]></description>
</value>
</entry>
<entry>
@@ -279,7 +279,7 @@
<version>0.0.1</version>
</key>
<UUID>0ce9168c-e6df-414f-9646-6da464b6e017</UUID>
- <description><![CDATA[Generated description for concept referred to by key "tasks:0.0.1"]]></description>
+ <description><![CDATA[Description for concept with key "tasks:0.0.1"]]></description>
</value>
</entry>
</keyInfoMap>
@@ -709,7 +709,8 @@
<version xmlns="http://www.onap.org/policy/apex-pdp">0.0.1</version>
</key>
<schemaFlavour>Java</schemaFlavour>
- <schemaDefinition>org.onap.policy.apex.model.policymodel.concepts.TestContextItem00A</schemaDefinition>
+ <schemaDefinition>org.onap.policy.apex.model.policymodel.concepts.TestContextItem00A
+ </schemaDefinition>
</value>
</entry>
<entry>
@@ -723,7 +724,8 @@
<version xmlns="http://www.onap.org/policy/apex-pdp">0.0.1</version>
</key>
<schemaFlavour>Java</schemaFlavour>
- <schemaDefinition>org.onap.policy.apex.model.policymodel.concepts.TestContextItem000</schemaDefinition>
+ <schemaDefinition>org.onap.policy.apex.model.policymodel.concepts.TestContextItem000
+ </schemaDefinition>
</value>
</entry>
<entry>