use of org.alien4cloud.tosca.model.definitions.ConcatPropertyValue in project yorc-a4c-plugin by ystia.
the class BasicToscaParser method postProcessPropVal.
private void postProcessPropVal(AbstractPropertyValue value) {
if (value instanceof ConcatPropertyValue) {
ConcatPropertyValue concatPropertyValue = (ConcatPropertyValue) value;
safe(concatPropertyValue.getParameters()).forEach(this::postProcessPropVal);
} else if (value instanceof FunctionPropertyValue) {
FunctionPropertyValue functionPropertyValue = (FunctionPropertyValue) value;
if ("R_TARGET".equals(functionPropertyValue.getParameters().get(0))) {
functionPropertyValue.getParameters().set(0, "TARGET");
}
}
}
Aggregations