uk.ac.sanger.cgp.standalonecsa.util
Class SetupUtils

java.lang.Object
  extended by uk.ac.sanger.cgp.standalonecsa.util.SetupUtils

public class SetupUtils
extends java.lang.Object

Author:
Original: kr2, $Author: kr2 $

Field Summary
static java.lang.String ALPHA_NUMERIC
           
static java.lang.String CHAR_ONLY
           
static java.lang.String DIGITS_ONLY
           
protected static org.apache.commons.logging.Log log
           
static java.util.Properties setupInfo
           
 
Constructor Summary
protected SetupUtils()
          Creates a new instance of FileHandler
 
Method Summary
static java.util.Properties buildPropertiesGui()
           
static void checkAndBuildComponent(java.util.Properties props, java.lang.String input, java.lang.String resultKey, java.lang.String checkPat)
           
static java.io.File checkForLocation(java.lang.String fileLoc)
           
static java.io.File chooseInput(boolean selDirs, java.awt.Component parent)
           
static java.io.File chooseInput(boolean selDirs, java.io.File startAt, java.awt.Component parent)
           
static void createCsaAnalysisPropFile(java.lang.String rootDir)
           
static void createDefaultResources()
           
static void createDefaultResources(java.lang.String rootDir)
           
static void createMobCorrFiles(java.lang.String rootDir)
           
static java.lang.String fileDisplayForGui(java.lang.String exampleFile, java.lang.String delim, java.lang.String extension)
           
static void reconfigure()
           
static boolean setupSystem()
           
static void writeProperties(java.util.Properties props, java.lang.String outputLoc, java.lang.String comment)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.commons.logging.Log log

ALPHA_NUMERIC

public static final java.lang.String ALPHA_NUMERIC
See Also:
Constant Field Values

CHAR_ONLY

public static final java.lang.String CHAR_ONLY
See Also:
Constant Field Values

DIGITS_ONLY

public static final java.lang.String DIGITS_ONLY
See Also:
Constant Field Values

setupInfo

public static final java.util.Properties setupInfo
Constructor Detail

SetupUtils

protected SetupUtils()
Creates a new instance of FileHandler

Method Detail

reconfigure

public static void reconfigure()

setupSystem

public static boolean setupSystem()

createDefaultResources

public static void createDefaultResources()

createDefaultResources

public static void createDefaultResources(java.lang.String rootDir)

createCsaAnalysisPropFile

public static void createCsaAnalysisPropFile(java.lang.String rootDir)

createMobCorrFiles

public static void createMobCorrFiles(java.lang.String rootDir)

buildPropertiesGui

public static java.util.Properties buildPropertiesGui()

checkAndBuildComponent

public static void checkAndBuildComponent(java.util.Properties props,
                                          java.lang.String input,
                                          java.lang.String resultKey,
                                          java.lang.String checkPat)

fileDisplayForGui

public static java.lang.String fileDisplayForGui(java.lang.String exampleFile,
                                                 java.lang.String delim,
                                                 java.lang.String extension)

writeProperties

public static void writeProperties(java.util.Properties props,
                                   java.lang.String outputLoc,
                                   java.lang.String comment)

chooseInput

public static java.io.File chooseInput(boolean selDirs,
                                       java.io.File startAt,
                                       java.awt.Component parent)

chooseInput

public static java.io.File chooseInput(boolean selDirs,
                                       java.awt.Component parent)

checkForLocation

public static java.io.File checkForLocation(java.lang.String fileLoc)