public static ColumnSpec decode(String encodedColumnSpec,LayoutMap layoutMap){
  checkNotBlank(encodedColumnSpec,"The encoded column specification must not be null, empty or whitespace.");
  checkNotNull(layoutMap,"The LayoutMap must not be null.");
  String trimmed=encodedColumnSpec.trim();
  String lower=trimmed.toLowerCase(Locale.ENGLISH);
  return decodeExpanded(layoutMap.expand(lower,true));
}

public static ColumnSpec decode ( String encodedColumnSpec , LayoutMap layoutMap ) { checkNotBlank ( encodedColumnSpec , "The encoded column specification must not be null, empty or whitespace." ) ; checkNotNull ( layoutMap , "The LayoutMap must not be null." ) ; String trimmed = encodedColumnSpec . trim ( ) ; String lower = trimmed . toLowerCase ( Locale . ENGLISH ) ; return decodeExpanded ( layoutMap . expand ( lower , true ) ) ; }
parses the encoded column specifications and returns a columnspec object that represents the string . variables are expanded using the given layoutmap .
