public static class AnonCommand.Options extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AnonCommand.Options.Builder |
Constructor and Description |
---|
Options()
Creates a new Options object.
|
Options(String[] args)
Creates a new Options object.
|
Modifier and Type | Method and Description |
---|---|
static AnonCommand.Options.Builder |
builder()
Returns a new Options builder.
|
Resource.Type |
getContentType()
Returns the default file content type.
|
File |
getGenDef()
Returns the generator definition file.
|
File |
getInputDef()
Returns the input definition file
|
File |
getOutFile()
Returns the output file for anonymized output.
|
File |
getWorkingDir()
Returns the current working directory used to complete relative path names.
|
protected void |
handleArgs(String[] args,
int i)
Handles the non-option arguments i, i+1, ...
|
protected int |
handleOption(String[] args,
int i)
Handles the i'th option and return the index of the next argument.
|
protected void |
printUsage()
Prints usage information to standard error.
|
void |
setContentType(Resource.Type contentType)
Changes the default file content type.
|
void |
setContentType(String option)
Changes the default file content type.
|
void |
setGenDef(File genDef)
Changes the generator definition file.
|
void |
setInputDef(File inputDef)
Changes the input definition file
|
void |
setOutFile(File outFile)
Changes the output file for anonymized output.
|
void |
setShowVersion(boolean showVersion)
Changes if the current version should be shown.
|
void |
setWorkingDir(File workingDir)
Changes the current working directory used to complete relative path names.
|
boolean |
showVersion()
Returns if the current version should be shown.
|
protected void |
throwHelpException()
Throws a HelpException after printing usage information to standard error.
|
String |
toString() |
public Options()
public Options(String[] args)
protected int handleOption(String[] args, int i)
protected void handleArgs(String[] args, int i)
protected void throwHelpException()
protected void printUsage()
public void setInputDef(File inputDef)
public File getInputDef()
public void setGenDef(File genDef)
public File getGenDef()
public void setWorkingDir(File workingDir)
public File getWorkingDir()
public void setShowVersion(boolean showVersion)
public boolean showVersion()
public void setOutFile(File outFile)
public File getOutFile()
public void setContentType(String option)
public void setContentType(Resource.Type contentType)
public Resource.Type getContentType()
public static AnonCommand.Options.Builder builder()
Copyright © 2024 The Cornutum Project. All rights reserved.