src/main/java/com/helger/genericode/Genericode10Helper.java
@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;
  }
@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;
  }
@ 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

@param sColumnID
The ID of the column
@param eUseType
The usage type (optional or required)
@param sShortName
The short name of the column
@param sLongName
The long name of the column
@param sDataType
The data type to use
@return Never <code>null</code>.
Create a new column to be added to a column set