Class QualifierNameUtils


  • public class QualifierNameUtils
    extends java.lang.Object
    Provides utility methods for qualifier naming
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isAlphaNumericName​(java.lang.String name)
      Checks if given name contains only alpha-numeric characters
      static java.lang.String removeNonAlphaNumericCharacters​(java.lang.String name)
      Removes all non-alpha-numeric characters from given text and returns it
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • isAlphaNumericName

        public static boolean isAlphaNumericName​(java.lang.String name)
        Checks if given name contains only alpha-numeric characters
        Parameters:
        name - name that will be checked for non-alpha-numeric characters
        Returns:
        true if the name consists only of alpha-numeric characters, false otherwise.
      • removeNonAlphaNumericCharacters

        public static java.lang.String removeNonAlphaNumericCharacters​(java.lang.String name)
        Removes all non-alpha-numeric characters from given text and returns it
        Parameters:
        name - name that should be cleared off alpha-numeric characters
        Returns:
        name that consists of only alpha-numeric characters.