summaryrefslogtreecommitdiffstats
path: root/blueprint-generator/src/main/java/org/onap/blueprintgenerator/models/dmaapbp
diff options
context:
space:
mode:
authorms236b <ms236b@att.com>2019-08-01 13:36:13 -0400
committerms236b <ms236b@att.com>2019-08-19 09:26:02 -0400
commit76fdf3ea035615915575d488ca3f6606f4c941da (patch)
treef91b05142a7acf9f3b48d50346ce38638f3cfe10 /blueprint-generator/src/main/java/org/onap/blueprintgenerator/models/dmaapbp
parentc5bfc898e79431603cbd8fda93fc67efd2aad77f (diff)
Fixed the streams and the imports issues
Fixed the issues with the streams and with the imports and space Issue-ID: DCAEGEN2-1517 Change-Id: I856f1fa3fc47faea19388096f739519db0fe41d8 Signed-off-by: ms236b <ms236b@att.com>
Diffstat (limited to 'blueprint-generator/src/main/java/org/onap/blueprintgenerator/models/dmaapbp')
-rw-r--r--blueprint-generator/src/main/java/org/onap/blueprintgenerator/models/dmaapbp/DmaapBlueprint.java6
-rw-r--r--blueprint-generator/src/main/java/org/onap/blueprintgenerator/models/dmaapbp/DmaapNode.java4
2 files changed, 5 insertions, 5 deletions
diff --git a/blueprint-generator/src/main/java/org/onap/blueprintgenerator/models/dmaapbp/DmaapBlueprint.java b/blueprint-generator/src/main/java/org/onap/blueprintgenerator/models/dmaapbp/DmaapBlueprint.java
index ff93307..d3cff67 100644
--- a/blueprint-generator/src/main/java/org/onap/blueprintgenerator/models/dmaapbp/DmaapBlueprint.java
+++ b/blueprint-generator/src/main/java/org/onap/blueprintgenerator/models/dmaapbp/DmaapBlueprint.java
@@ -49,13 +49,13 @@ public class DmaapBlueprint extends Blueprint{
//set the imports
Imports imps = new Imports();
if(importPath.equals("")) {
- imps.createDmaapImports();
+ bp.setImports(imps.createDmaapImports());
}
else {
- imps.createImportsFromFile(importPath);
+ bp.setImports(imps.createImportsFromFile(importPath));
}
- bp.setImports(imps.getImports());
+ //bp.setImports(imps.getImports());
//set and create the node templates
TreeMap<String, Node> nodeTemplate = new TreeMap();
diff --git a/blueprint-generator/src/main/java/org/onap/blueprintgenerator/models/dmaapbp/DmaapNode.java b/blueprint-generator/src/main/java/org/onap/blueprintgenerator/models/dmaapbp/DmaapNode.java
index 97a6fdb..bfa7ae9 100644
--- a/blueprint-generator/src/main/java/org/onap/blueprintgenerator/models/dmaapbp/DmaapNode.java
+++ b/blueprint-generator/src/main/java/org/onap/blueprintgenerator/models/dmaapbp/DmaapNode.java
@@ -124,7 +124,7 @@ public class DmaapNode extends Node{
GetInput topicInput = new GetInput();
topicInput.setGet_input(name + "_name");
props.setFeed_name(topicInput);
- props.setUseExisting(true);
+ //props.setUseExisting(true);
retInputs.put(name + "_name", stringType);
this.setProperties(props);
@@ -144,7 +144,7 @@ public class DmaapNode extends Node{
GetInput topicInput = new GetInput();
topicInput.setGet_input(name + "_name");
props.setTopic_name(topicInput);
- props.setUseExisting(true);
+ //props.setUseExisting(true);
retInputs.put(name + "_name", stringType);
this.setProperties(props);