public class TranslatorHeatToToscaPropertyConverter extends Object
Constructor and Description |
---|
TranslatorHeatToToscaPropertyConverter() |
Modifier and Type | Method and Description |
---|---|
static Map<String,Object> |
getToscaPropertiesSimpleConversion(ServiceTemplate serviceTemplate,
String resourceId,
Map<String,Object> heatProperties,
Map<String,Object> toscaProperties,
String heatFileName,
HeatOrchestrationTemplate heatOrchestrationTemplate,
String resourceType,
Template template,
TranslationContext context)
Gets tosca properties simple conversion.
|
static Object |
getToscaPropertyValue(ServiceTemplate serviceTemplate,
String resourceId,
String propertyName,
Object propertyValue,
String resourceType,
String heatFileName,
HeatOrchestrationTemplate heatOrchestrationTemplate,
Template template,
TranslationContext context)
Gets tosca property value.
|
static void |
setSimpleProperty(ServiceTemplate serviceTemplate,
String resourceId,
Map<String,Object> heatProperties,
String heatFileName,
String resourceType,
HeatOrchestrationTemplate heatOrchestrationTemplate,
TranslationContext context,
Map<String,Object> toscaProperties,
String heatPropertyName,
String toscaPropertyName,
Template template)
Sets simple property.
|
public TranslatorHeatToToscaPropertyConverter()
public static Map<String,Object> getToscaPropertiesSimpleConversion(ServiceTemplate serviceTemplate, String resourceId, Map<String,Object> heatProperties, Map<String,Object> toscaProperties, String heatFileName, HeatOrchestrationTemplate heatOrchestrationTemplate, String resourceType, Template template, TranslationContext context)
heatProperties
- the heat propertiestoscaProperties
- the tosca propertiesheatFileName
- the heat file nameheatOrchestrationTemplate
- the heat orchestration templateresourceType
- the resource typetemplate
- the templatecontext
- the contextpublic static void setSimpleProperty(ServiceTemplate serviceTemplate, String resourceId, Map<String,Object> heatProperties, String heatFileName, String resourceType, HeatOrchestrationTemplate heatOrchestrationTemplate, TranslationContext context, Map<String,Object> toscaProperties, String heatPropertyName, String toscaPropertyName, Template template)
heatProperties
- the heat propertiesheatFileName
- the heat file nameresourceType
- the resource typeheatOrchestrationTemplate
- the heat orchestration templatecontext
- the contexttoscaProperties
- the tosca propertiesheatPropertyName
- the heat property nametoscaPropertyName
- the tosca property nametemplate
- the templatepublic static Object getToscaPropertyValue(ServiceTemplate serviceTemplate, String resourceId, String propertyName, Object propertyValue, String resourceType, String heatFileName, HeatOrchestrationTemplate heatOrchestrationTemplate, Template template, TranslationContext context)
propertyName
- the property namepropertyValue
- the property valueresourceType
- the resource typeheatFileName
- the heat file nameheatOrchestrationTemplate
- the heat orchestration templatetemplate
- the templatecontext
- the contextCopyright © 2017. All rights reserved.