public class DamMigrationUtil extends Object
Modifier and Type | Method and Description |
---|---|
static String |
buildI18nSuffixPropertyName(String propertyName,
String propertyNameSuffix)
Based on propertyName build a i18n suffixed property name.
- if the propertyName has no local suffix (myPropertyName) return propertyName+propertyNameSufix (propertyNamepropertyNameSufix) - if the propertyName has a valid i18n suffix (myPropertyName_en) return propertyName+propertyNameSufix + i18n suffix (propertyNamepropertyNameSufix_en). |
static String |
getI18nLocalBasedOnPropertyName(String propertyName) |
static String |
getPropertyNameWithoutLocalSuffix(String propertyName) |
static boolean |
isPropertyNameI18nBased(String propertyName) |
public static String buildI18nSuffixPropertyName(String propertyName, String propertyNameSuffix)
propertyName
- root property name.propertyNameSufix
- suffix to add to the property namepublic static boolean isPropertyNameI18nBased(String propertyName)
public static String getI18nLocalBasedOnPropertyName(String propertyName)
propertyName
- (propertyName_en return en, propertyName return null)Copyright © 2017 Magnolia International Ltd.. All rights reserved.