public static void validateInputParameters(ImfUtilityInputParameters inputParameters) throws ArgumentValidationException {
  File impDirectory=inputParameters.getImpDirectoryFile();
  if (impDirectory == null) {
    throw new ArgumentValidationException("IMP directory must be specified either as a command line argument or in config.xml");
  }
  if (!impDirectory.isDirectory()) {
    throw new ArgumentValidationException(String.format("IMP directory '%s' must be an existing folder",impDirectory.getAbsolutePath()));
  }
  File cplFile=inputParameters.getCplFile();
  if (cplFile == null) {
    throw new ArgumentValidationException("CPL file must be specified either as a command line argument or in config.xml");
  }
  if (!cplFile.isFile()) {
    throw new ArgumentValidationException(String.format("CPL file '%s' must be an existing file",cplFile.getAbsolutePath()));
  }
  File workingDir=inputParameters.getWorkingDirFile();
  if (workingDir == null) {
    throw new ArgumentValidationException("Working directory must be specified either as a command line argument or in config.xml");
  }
}

public static void validateInputParameters ( ImfUtilityInputParameters inputParameters ) throws ArgumentValidationException { File impDirectory = inputParameters . getImpDirectoryFile ( ) ; if ( impDirectory == null ) { throw new ArgumentValidationException ( "IMP directory must be specified either as a command line argument or in config.xml" ) ; } if ( ! impDirectory . isDirectory ( ) ) { throw new ArgumentValidationException ( String . format ( "IMP directory '%s' must be an existing folder" , impDirectory . getAbsolutePath ( ) ) ) ; } File cplFile = inputParameters . getCplFile ( ) ; if ( cplFile == null ) { throw new ArgumentValidationException ( "CPL file must be specified either as a command line argument or in config.xml" ) ; } if ( ! cplFile . isFile ( ) ) { throw new ArgumentValidationException ( String . format ( "CPL file '%s' must be an existing file" , cplFile . getAbsolutePath ( ) ) ) ; } File workingDir = inputParameters . getWorkingDirFile ( ) ; if ( workingDir == null ) { throw new ArgumentValidationException ( "Working directory must be specified either as a command line argument or in config.xml" ) ; } }
checks whether all input parameters needed for conversion are specified ( such as cpl , imp ) are specified . these parameters can be set either via command line arguments or in config . xml . so , the method must be called after config . xml is processed .
