@ Nonnull public static Column createColumn ( @ Nonnull @ Nonempty final String sColumnID , @ Nonnull final UseType eUseType , @ Nonnull @ Nonempty final String sShortName , @ Nullable final String sLongName , @ Nonnull @ Nonempty final String sDataType ) { ValueEnforcer . notEmpty ( sColumnID , "ColumnID" ) ; ValueEnforcer . notNull ( eUseType , "useType" ) ; ValueEnforcer . notEmpty ( sShortName , "ShortName" ) ; ValueEnforcer . notEmpty ( sDataType , "DataType" ) ; final Column aColumn = s_aFactory . createColumn ( ) ; aColumn . setId ( sColumnID ) ; aColumn . setUse ( eUseType ) ; aColumn . setShortName ( createShortName ( sShortName ) ) ; if ( StringHelper . hasText ( sLongName ) ) aColumn . getLongName ( ) . add ( createLongName ( sLongName ) ) ; final Data aData = s_aFactory . createData ( ) ; aData . setType ( sDataType ) ; aColumn . setData ( aData ) ; return aColumn ; }
Create a new column to be added to a column set