summaryrefslogtreecommitdiffstats
path: root/examples/examples-pcvs/src
diff options
context:
space:
mode:
authorDinh Danh Le <dinh.danh.le@ericsson.com>2018-08-29 17:21:52 +0100
committerDinh Danh Le <dinh.danh.le@ericsson.com>2018-09-05 12:48:49 +0100
commit825ae627d4378c5cc7ab4b7d5f4b4ffefcb7977e (patch)
treead4ca360252379ed8e07bc5c599cd4aa6e240199 /examples/examples-pcvs/src
parentf7689b84472ab4698d9d96f1de08402208d99ca8 (diff)
Fix checkstyle warnings in examples
Change-Id: Iad533f3987792d8713426234f3277c1ef6b72284 Issue-ID: POLICY-1034 Signed-off-by: Dinh Danh Le <dinh.danh.le@ericsson.com>
Diffstat (limited to 'examples/examples-pcvs/src')
-rw-r--r--examples/examples-pcvs/src/main/java/org/onap/policy/apex/examples/pcvs/model/PcvsDomainModelFactory.java (renamed from examples/examples-pcvs/src/main/java/org/onap/policy/apex/examples/pcvs/model/PCVSDomainModelFactory.java)8
-rw-r--r--examples/examples-pcvs/src/main/java/org/onap/policy/apex/examples/pcvs/model/PcvsDomainModelSaver.java (renamed from examples/examples-pcvs/src/main/java/org/onap/policy/apex/examples/pcvs/model/PCVSDomainModelSaver.java)10
2 files changed, 9 insertions, 9 deletions
diff --git a/examples/examples-pcvs/src/main/java/org/onap/policy/apex/examples/pcvs/model/PCVSDomainModelFactory.java b/examples/examples-pcvs/src/main/java/org/onap/policy/apex/examples/pcvs/model/PcvsDomainModelFactory.java
index bc9eca88e..001886370 100644
--- a/examples/examples-pcvs/src/main/java/org/onap/policy/apex/examples/pcvs/model/PCVSDomainModelFactory.java
+++ b/examples/examples-pcvs/src/main/java/org/onap/policy/apex/examples/pcvs/model/PcvsDomainModelFactory.java
@@ -33,7 +33,7 @@ import org.onap.policy.common.utils.resources.ResourceUtils;
*
* @author Sven van der Meer (sven.van.der.meer@ericsson.com)
*/
-public class PCVSDomainModelFactory {
+public class PcvsDomainModelFactory {
/**
* Generates the PCVS VPN-SLA policy model from CLI commands and creates an APEX model.
@@ -42,7 +42,7 @@ public class PCVSDomainModelFactory {
*
* @return the PCVS VPN-SLA policy model
*/
- public AxPolicyModel getPCVVpnSlaSPolicyModel(final String workingDirectory) {
+ public AxPolicyModel getPcvsVpnSlaSPolicyModel(final String workingDirectory) {
final String path = "target/model-gen/pcvs/vpnsla";
final String file = "policy.json";
final String full = path + "/" + file;
@@ -51,8 +51,8 @@ public class PCVSDomainModelFactory {
pathFile.mkdirs();
final String[] args =
- new String[] { "-c", "src/main/resources/org/onap/policy/apex/examples/pcvs/vpnsla/vpnsla.apex", "-wd",
- workingDirectory, "-o", full };
+ new String[] {"-c", "src/main/resources/org/onap/policy/apex/examples/pcvs/vpnsla/vpnsla.apex", "-wd",
+ workingDirectory, "-o", full};
final ApexCLIEditorMain cliEditor = new ApexCLIEditorMain(args);
if (cliEditor.getErrorCount() > 0) {
diff --git a/examples/examples-pcvs/src/main/java/org/onap/policy/apex/examples/pcvs/model/PCVSDomainModelSaver.java b/examples/examples-pcvs/src/main/java/org/onap/policy/apex/examples/pcvs/model/PcvsDomainModelSaver.java
index 65e84a4ea..42d3d659b 100644
--- a/examples/examples-pcvs/src/main/java/org/onap/policy/apex/examples/pcvs/model/PCVSDomainModelSaver.java
+++ b/examples/examples-pcvs/src/main/java/org/onap/policy/apex/examples/pcvs/model/PcvsDomainModelSaver.java
@@ -25,14 +25,14 @@ import org.onap.policy.apex.model.basicmodel.handling.ApexModelSaver;
import org.onap.policy.apex.model.policymodel.concepts.AxPolicyModel;
/**
- * The Class PCVSDomainModelSaver.
+ * The Class PcvsDomainModelSaver.
*
* @author Sven van der Meer (sven.van.der.meer@ericsson.com)
*/
-public final class PCVSDomainModelSaver {
+public final class PcvsDomainModelSaver {
/** Private constructor to prevent instantiation. */
- private PCVSDomainModelSaver() {}
+ private PcvsDomainModelSaver() {}
/**
* Write all PCVS models to args[0].
@@ -43,11 +43,11 @@ public final class PCVSDomainModelSaver {
public static void main(final String[] args) throws ApexException {
if (args.length != 2) {
System.err.println(
- "usage: " + PCVSDomainModelSaver.class.getCanonicalName() + " workingDirectory modelDirectory");
+ "usage: " + PcvsDomainModelSaver.class.getCanonicalName() + " workingDirectory modelDirectory");
return;
}
- final AxPolicyModel pcvsPolicyModel = new PCVSDomainModelFactory().getPCVVpnSlaSPolicyModel(args[0]);
+ final AxPolicyModel pcvsPolicyModel = new PcvsDomainModelFactory().getPcvsVpnSlaSPolicyModel(args[0]);
final ApexModelSaver<AxPolicyModel> pcvsModelSaver =
new ApexModelSaver<>(AxPolicyModel.class, pcvsPolicyModel, args[1] + "vpnsla/");
pcvsModelSaver.apexModelWriteJson();