diff options
Diffstat (limited to 'examples/examples-pcvs/src/main/java')
-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(); |