Package cruise.umple
Class UmpleConsoleConfig
java.lang.Object
cruise.umple.UmpleConsoleConfig
public class UmpleConsoleConfig
extends java.lang.Object
Config is the parsed command line information for UmpleConsole.
-
Constructor Summary
Constructors Constructor Description UmpleConsoleConfig(java.lang.String aUmpleFile)
UmpleConsoleConfig(OptionSet optSet)
-
Method Summary
Modifier and Type Method Description boolean
addLinkedFile(java.lang.String aLinkedFile)
void
addSuboption(java.lang.String suboption)
void
delete()
java.util.List<java.lang.String[]>
getAllLinesOfFilesToTest()
boolean
getBeQuiet()
option q to be quietjava.util.Optional<java.lang.String>
getCompile()
boolean
getDefaultBeQuiet()
boolean
getDefaultExitOnFirstFailure()
boolean
getDefaultHelp()
boolean
getDefaultOverride()
boolean
getDefaultPerformance()
boolean
getDefaultRemovePrevious()
boolean
getDefaultUseExec()
boolean
getDefaultVersion()
boolean
getDefaultWarningIgnore()
boolean
getExitOnFirstFailure()
option e to exit on first failure with the -f optionjava.util.Optional<java.lang.String>
getGenerate()
boolean
getHelp()
option to output help onlyjava.util.Optional<java.lang.String>
getImportFile()
java.lang.String
getLinkedFile(int index)
java.lang.String[]
getLinkedFiles()
java.util.List<java.io.File>
getLinkedFilesAsFile()
java.util.List<java.lang.String>
getLinkedMixsetAsString()
this method returns mixset names that appear as argumentsboolean
getOverride()
java.util.Optional<java.lang.String>
getPath()
boolean
getPerformance()
option to measure performanceboolean
getRemovePrevious()
java.util.List<java.lang.String>
getSuboptions()
java.util.Optional<java.lang.String>
getTestUmpFilesFile()
java.util.Optional<java.lang.String>
getUmpleDirect()
java.lang.String
getUmpleFile()
first and maybe only umple file to compile, the main constructor argumentboolean
getUseExec()
option x to use slower but more reliable exec java compilerboolean
getVersion()
See function initializeOptionParser() for the setup of the options option to print version onlyboolean
getWarningIgnore()
option w to ignore a warning number in filenameboolean
hasLinkedFiles()
int
indexOfLinkedFile(java.lang.String aLinkedFile)
int
numberOfLinkedFiles()
boolean
removeLinkedFile(java.lang.String aLinkedFile)
boolean
resetBeQuiet()
boolean
resetExitOnFirstFailure()
boolean
resetHelp()
boolean
resetOverride()
boolean
resetPerformance()
boolean
resetRemovePrevious()
boolean
resetUseExec()
boolean
resetVersion()
boolean
resetWarningIgnore()
boolean
setBeQuiet(boolean aBeQuiet)
void
setCompile(java.lang.String compile)
boolean
setExitOnFirstFailure(boolean aExitOnFirstFailure)
void
setGenerate(java.lang.String generate)
boolean
setHelp(boolean aHelp)
void
setImportFile(java.lang.String importFile)
void
setLinkedFiles(java.util.List<java.lang.String> newLinkedFiles)
boolean
setOverride(boolean aOverride)
void
setPath(java.lang.String path)
boolean
setPerformance(boolean aPerformance)
boolean
setRemovePrevious(boolean aRemovePrevious)
void
setSuboptions(java.util.List<java.lang.String> suboptions)
void
setTestUmpFilesFile(java.lang.String testUmpFilesFile)
boolean
setUmpleFile(java.lang.String aUmpleFile)
boolean
setUseExec(boolean aUseExec)
boolean
setVersion(boolean aVersion)
boolean
setWarningIgnore(boolean aWarningIgnore)
java.lang.String
toString()
-
Constructor Details
-
UmpleConsoleConfig
public UmpleConsoleConfig(java.lang.String aUmpleFile) -
UmpleConsoleConfig
-
-
Method Details
-
setVersion
public boolean setVersion(boolean aVersion) -
resetVersion
public boolean resetVersion() -
setHelp
public boolean setHelp(boolean aHelp) -
resetHelp
public boolean resetHelp() -
setPerformance
public boolean setPerformance(boolean aPerformance) -
resetPerformance
public boolean resetPerformance() -
setBeQuiet
public boolean setBeQuiet(boolean aBeQuiet) -
resetBeQuiet
public boolean resetBeQuiet() -
setWarningIgnore
public boolean setWarningIgnore(boolean aWarningIgnore) -
resetWarningIgnore
public boolean resetWarningIgnore() -
setUseExec
public boolean setUseExec(boolean aUseExec) -
resetUseExec
public boolean resetUseExec() -
setExitOnFirstFailure
public boolean setExitOnFirstFailure(boolean aExitOnFirstFailure) -
resetExitOnFirstFailure
public boolean resetExitOnFirstFailure() -
setOverride
public boolean setOverride(boolean aOverride) -
resetOverride
public boolean resetOverride() -
setRemovePrevious
public boolean setRemovePrevious(boolean aRemovePrevious) -
resetRemovePrevious
public boolean resetRemovePrevious() -
setUmpleFile
public boolean setUmpleFile(java.lang.String aUmpleFile) -
addLinkedFile
public boolean addLinkedFile(java.lang.String aLinkedFile) -
removeLinkedFile
public boolean removeLinkedFile(java.lang.String aLinkedFile) -
getVersion
public boolean getVersion()See function initializeOptionParser() for the setup of the options option to print version only -
getDefaultVersion
public boolean getDefaultVersion() -
getHelp
public boolean getHelp()option to output help only -
getDefaultHelp
public boolean getDefaultHelp() -
getPerformance
public boolean getPerformance()option to measure performance -
getDefaultPerformance
public boolean getDefaultPerformance() -
getBeQuiet
public boolean getBeQuiet()option q to be quiet -
getDefaultBeQuiet
public boolean getDefaultBeQuiet() -
getWarningIgnore
public boolean getWarningIgnore()option w to ignore a warning number in filename -
getDefaultWarningIgnore
public boolean getDefaultWarningIgnore() -
getUseExec
public boolean getUseExec()option x to use slower but more reliable exec java compiler -
getDefaultUseExec
public boolean getDefaultUseExec() -
getExitOnFirstFailure
public boolean getExitOnFirstFailure()option e to exit on first failure with the -f option -
getDefaultExitOnFirstFailure
public boolean getDefaultExitOnFirstFailure() -
getOverride
public boolean getOverride() -
getDefaultOverride
public boolean getDefaultOverride() -
getRemovePrevious
public boolean getRemovePrevious() -
getDefaultRemovePrevious
public boolean getDefaultRemovePrevious() -
getUmpleFile
public java.lang.String getUmpleFile()first and maybe only umple file to compile, the main constructor argument -
getLinkedFile
public java.lang.String getLinkedFile(int index) -
getLinkedFiles
public java.lang.String[] getLinkedFiles() -
numberOfLinkedFiles
public int numberOfLinkedFiles() -
hasLinkedFiles
public boolean hasLinkedFiles() -
indexOfLinkedFile
public int indexOfLinkedFile(java.lang.String aLinkedFile) -
delete
public void delete() -
setLinkedFiles
public void setLinkedFiles(java.util.List<java.lang.String> newLinkedFiles) -
getLinkedFilesAsFile
public java.util.List<java.io.File> getLinkedFilesAsFile() -
getLinkedMixsetAsString
public java.util.List<java.lang.String> getLinkedMixsetAsString()this method returns mixset names that appear as arguments -
getGenerate
public java.util.Optional<java.lang.String> getGenerate() -
setGenerate
public void setGenerate(java.lang.String generate) -
getUmpleDirect
public java.util.Optional<java.lang.String> getUmpleDirect() -
getCompile
public java.util.Optional<java.lang.String> getCompile() -
setCompile
public void setCompile(java.lang.String compile) -
setImportFile
public void setImportFile(java.lang.String importFile) -
getImportFile
public java.util.Optional<java.lang.String> getImportFile() -
setTestUmpFilesFile
public void setTestUmpFilesFile(java.lang.String testUmpFilesFile) -
getTestUmpFilesFile
public java.util.Optional<java.lang.String> getTestUmpFilesFile() -
getAllLinesOfFilesToTest
public java.util.List<java.lang.String[]> getAllLinesOfFilesToTest() -
setPath
public void setPath(java.lang.String path) -
getPath
public java.util.Optional<java.lang.String> getPath() -
getSuboptions
public java.util.List<java.lang.String> getSuboptions() -
setSuboptions
public void setSuboptions(java.util.List<java.lang.String> suboptions) -
addSuboption
public void addSuboption(java.lang.String suboption) -
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-