Class CodeNormalizer


  • public class CodeNormalizer
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      CodeNormalizer()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static CodeAndLabel create​(java.lang.String code, java.lang.String label)  
      static java.lang.String normalize​(java.lang.String code)
      Normalizes the specified code.
      • Methods inherited from class java.lang.Object

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

      • CodeNormalizer

        public CodeNormalizer()
    • Method Detail

      • create

        public static CodeAndLabel create​(java.lang.String code,
                                          java.lang.String label)
      • normalize

        public static java.lang.String normalize​(java.lang.String code)
        Normalizes the specified code. That is lower-case characters are turned to upper case and any symbol which isn't from A-Z, 0-9 or '-' is replaced by an underscore character.