public class TranslatorHeatToToscaFunctionConverter extends Object
Modifier and Type | Field and Description |
---|---|
protected static Set<String> |
functionNameSet |
Constructor and Description |
---|
TranslatorHeatToToscaFunctionConverter() |
Modifier and Type | Method and Description |
---|---|
static Object |
getToscaFunction(String functionName,
Object function,
String heatFileName,
HeatOrchestrationTemplate heatOrchestrationTemplate,
Template template,
TranslationContext context)
Gets tosca function.
|
static boolean |
isAttributeSupported(String translatedAttName) |
static boolean |
isResourceSupported(String translatedResourceId) |
static Optional<List<Map<String,List>>> |
translateFnSplitFunction(Object propertyValue,
int listSize,
boolean includeBooleanValue)
Translate fn split function optional.
|
public TranslatorHeatToToscaFunctionConverter()
public static Object getToscaFunction(String functionName, Object function, String heatFileName, HeatOrchestrationTemplate heatOrchestrationTemplate, Template template, TranslationContext context)
functionName
- the function namefunction
- the functionheatFileName
- the heat file nameheatOrchestrationTemplate
- the heat orchestration templatetemplate
- the templatecontext
- the contextpublic static boolean isResourceSupported(String translatedResourceId)
public static boolean isAttributeSupported(String translatedAttName)
public static Optional<List<Map<String,List>>> translateFnSplitFunction(Object propertyValue, int listSize, boolean includeBooleanValue)
propertyValue
- the property valuelistSize
- the list sizeincludeBooleanValue
- the include boolean valueCopyright © 2017. All rights reserved.