public abstract class ResourceTranslationBase extends Object implements ResourceTranslation
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
logger |
Constructor and Description |
---|
ResourceTranslationBase() |
Modifier and Type | Method and Description |
---|---|
protected String |
generateTranslatedId(TranslateTo translateTo) |
static Optional<String> |
getResourceTranslatedId(String heatFileName,
HeatOrchestrationTemplate heatOrchestrationTemplate,
String resourceId,
TranslationContext context)
Gets resource translated id.
|
protected boolean |
isEssentialRequirementsValid(TranslateTo translateTo) |
protected abstract void |
translate(TranslateTo translateTo) |
Optional<String> |
translateResource(String heatFileName,
ServiceTemplate serviceTemplate,
HeatOrchestrationTemplate heatOrchestrationTemplate,
Resource resource,
String resourceId,
TranslationContext context) |
public static Optional<String> getResourceTranslatedId(String heatFileName, HeatOrchestrationTemplate heatOrchestrationTemplate, String resourceId, TranslationContext context)
heatFileName
- the heat file nameheatOrchestrationTemplate
- the heat orchestration templateresourceId
- the resource idcontext
- the contextprotected abstract void translate(TranslateTo translateTo)
protected String generateTranslatedId(TranslateTo translateTo)
protected boolean isEssentialRequirementsValid(TranslateTo translateTo)
public Optional<String> translateResource(String heatFileName, ServiceTemplate serviceTemplate, HeatOrchestrationTemplate heatOrchestrationTemplate, Resource resource, String resourceId, TranslationContext context)
translateResource
in interface ResourceTranslation
Copyright © 2017. All rights reserved.