Code Review
/
clamp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Rework tosca converter
[clamp.git]
/
src
/
main
/
java
/
org
/
onap
/
clamp
/
clds
/
tosca
/
update
/
TemplateManagement.java
diff --git
a/src/main/java/org/onap/clamp/clds/tosca/update/TemplateManagement.java
b/src/main/java/org/onap/clamp/clds/tosca/update/TemplateManagement.java
index
4b510cb
..
ce5cdb8
100644
(file)
--- a/
src/main/java/org/onap/clamp/clds/tosca/update/TemplateManagement.java
+++ b/
src/main/java/org/onap/clamp/clds/tosca/update/TemplateManagement.java
@@
-46,9
+46,10
@@
public class TemplateManagement {
* @param templateProperties template properties as string
* @throws IOException in case of failure
*/
* @param templateProperties template properties as string
* @throws IOException in case of failure
*/
- public TemplateManagement(String yamlContent, String templateProperties) throws IOException {
+ public TemplateManagement(String yamlContent, String nativeComponent, String templateProperties)
+ throws IOException {
if (yamlContent != null && !yamlContent.isEmpty()) {
if (yamlContent != null && !yamlContent.isEmpty()) {
- this.extractor = new Extractor(yamlContent);
+ this.extractor = new Extractor(yamlContent
, nativeComponent
);
this.components = extractor.getAllItems();
this.templates = initializeTemplates(templateProperties);
}
this.components = extractor.getAllItems();
this.templates = initializeTemplates(templateProperties);
}
@@
-155,7
+156,7
@@
public class TemplateManagement {
if (parserToJson.matchComponent(componentName) == null) {
throw new UnknownComponentException(componentName);
}
if (parserToJson.matchComponent(componentName) == null) {
throw new UnknownComponentException(componentName);
}
- return parserToJson.getJsonProcess(componentName);
+ return parserToJson.getJsonProcess(componentName
, "object"
);
}
/**
}
/**