Package com.adobe.aemds.guide.utils
Class NameUtils
- java.lang.Object
-
- com.adobe.aemds.guide.utils.NameUtils
-
public final class NameUtils extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getOrGenerateUniqueName(java.lang.String localName, java.util.HashMap<java.lang.String,java.lang.Integer> nameCountMap)
Replaces all occurances of '.' with '_' as Dot isn't allowed to ba part of naming of components.static java.lang.String
humanize(java.lang.String name)
-
-
-
Method Detail
-
getOrGenerateUniqueName
public static java.lang.String getOrGenerateUniqueName(java.lang.String localName, java.util.HashMap<java.lang.String,java.lang.Integer> nameCountMap)
Replaces all occurances of '.' with '_' as Dot isn't allowed to ba part of naming of components. Also, ensures that all the names generated are unique.- Parameters:
localName
-nameCountMap
-
-
humanize
public static java.lang.String humanize(java.lang.String name)
- Parameters:
name
-
-
-