public class ContrailTranslationHelper extends Object
Constructor and Description |
---|
ContrailTranslationHelper() |
Modifier and Type | Method and Description |
---|---|
String |
getComputeNodeTypeId(Resource contrailServiceTemplateResource,
String contrailServiceTemplateResourceId,
String contrailServiceTemplateTranslatedId,
TranslationContext context)
Gets compute node type id.
|
List<PropertyRegexMatcher> |
getPropertyRegexMatchersForComputeNodeType()
Get property Regx matcher list.
|
String |
getSubstitutionContrailServiceTemplateMetadata(String heatFileName,
String serviceInstanceTranslatedId) |
Optional<List<Map<String,List>>> |
translateFnSplitFunction(Object propertyValue,
int listSize,
boolean includeBooleanValue)
Translate fn split function optional.
|
public String getComputeNodeTypeId(Resource contrailServiceTemplateResource, String contrailServiceTemplateResourceId, String contrailServiceTemplateTranslatedId, TranslationContext context)
contrailServiceTemplateResource
- contrail service teamplte resourcecontrailServiceTemplateResourceId
- contrailservice template resource idcontrailServiceTemplateTranslatedId
- contrail service tempalte resource translated idpublic List<PropertyRegexMatcher> getPropertyRegexMatchersForComputeNodeType()
public String getSubstitutionContrailServiceTemplateMetadata(String heatFileName, String serviceInstanceTranslatedId)
public 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.