class LoadFileInputMeta extends BaseTransformMeta implements ITransformMeta<LoadFileInput, LoadFileInputData> {

  public String getXml() {
    StringBuilder retval = new StringBuilder();

    retval.append( "    " + XmlHandler.addTagValue( INCLUDE, includeFilename ) );
    retval.append( "    " + XmlHandler.addTagValue( INCLUDE_FIELD, filenameField ) );
    retval.append( "    " + XmlHandler.addTagValue( ROWNUM, includeRowNumber ) );
    retval.append( "    " + XmlHandler.addTagValue( ADDRESULTFILE, addresultfile ) );
    retval.append( "    " + XmlHandler.addTagValue( IS_IGNORE_EMPTY_FILE, ignoreEmptyFile ) );
    retval.append( "    " + XmlHandler.addTagValue( IS_IGNORE_MISSING_PATH, ignoreMissingPath ) );

    retval.append( "    " + XmlHandler.addTagValue( ROWNUM_FIELD, rowNumberField ) );
    retval.append( "    " + XmlHandler.addTagValue( ENCODING, encoding ) );

    retval.append( "    <" + FILE + ">" + Const.CR );
    for ( int i = 0; i < fileName.length; i++ ) {
      retval.append( "      " + XmlHandler.addTagValue( NAME, fileName[ i ] ) );
      retval.append( "      " + XmlHandler.addTagValue( FILEMASK, fileMask[ i ] ) );
      retval.append( "      " ).append( XmlHandler.addTagValue( EXCLUDE_FILEMASK, excludeFileMask[ i ] ) );
      retval.append( "      " ).append( XmlHandler.addTagValue( FILE_REQUIRED, fileRequired[ i ] ) );
      retval.append( "      " + XmlHandler.addTagValue( INCLUDE_SUBFOLDERS, includeSubFolders[ i ] ) );
    }
    retval.append( "      </" + FILE + ">" + Const.CR );

    retval.append( "    <" + FIELDS + ">" + Const.CR );
    for ( int i = 0; i < inputFields.length; i++ ) {
      LoadFileInputField field = inputFields[ i ];
      retval.append( field.getXml() );
    }
    retval.append( "      </" + FIELDS + ">" + Const.CR );
    retval.append( "    " + XmlHandler.addTagValue( LIMIT, rowLimit ) );
    retval.append( "    " + XmlHandler.addTagValue( IS_IN_FIELDS, fileinfield ) );
    retval.append( "    " + XmlHandler.addTagValue( DYNAMIC_FILENAME_FIELD, DynamicFilenameField ) );
    retval.append( "    " ).append( XmlHandler.addTagValue( SHORT_FILE_FIELD_NAME, shortFileFieldName ) );
    retval.append( "    " ).append( XmlHandler.addTagValue( PATH_FIELD_NAME, pathFieldName ) );
    retval.append( "    " ).append( XmlHandler.addTagValue( HIDDEN_FIELD_NAME, hiddenFieldName ) );
    retval.append( "    " ).append(
      XmlHandler.addTagValue( LAST_MODIFICATION_TIME_FIELD_NAME, lastModificationTimeFieldName ) );
    retval.append( "    " ).append( XmlHandler.addTagValue( URI_NAME_FIELD_NAME, uriNameFieldName ) );
    retval.append( "    " ).append( XmlHandler.addTagValue( ROOT_URI_NAME_FIELD_NAME, rootUriNameFieldName ) );
    retval.append( "    " ).append( XmlHandler.addTagValue( EXTENSION_FIELD_NAME, extensionFieldName ) );

    return retval.toString();
  }

  public  LoadFileInputMeta();

}