@ Nonnull public static Key createKey ( @ Nonnull @ Nonempty final String sColumnID , @ Nonnull @ Nonempty final String sShortName , @ Nullable final String sLongName , @ Nonnull final Column aColumn ) { ValueEnforcer . notEmpty ( sColumnID , "ColumnID" ) ; ValueEnforcer . notEmpty ( sShortName , "ShortName" ) ; ValueEnforcer . notNull ( aColumn , "Column" ) ; final Key aKey = s_aFactory . createKey ( ) ; aKey . setId ( sColumnID ) ; aKey . setShortName ( createShortName ( sShortName ) ) ; if ( StringHelper . hasText ( sLongName ) ) aKey . getLongName ( ) . add ( createLongName ( sLongName ) ) ; aKey . getColumnRef ( ) . add ( createKeyColumnRef ( aColumn ) ) ; return aKey ; }
Create a new key to be added to a column set