Class 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)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 -