public static class CopyCommand.Options extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CopyCommand.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 CopyCommand.Options.Builder |
builder()
Returns a new Options builder.
|
Resource.Type |
getContentType()
Returns the content type.
|
File |
getDestDir()
Returns the destination directory.
|
String |
getDestName()
Returns the destination project name.
|
Resource.Type |
getDestType()
Returns the destination content type.
|
File |
getGenDef()
Returns the generator definition file.
|
File |
getInputDef()
Returns the input definition file
|
File |
getTestDef()
Returns the base test definition file.
|
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 content type.
|
void |
setContentType(String option)
Changes the content type.
|
void |
setDestDir(File outDir)
Changes the destination directory.
|
void |
setDestName(String projectName)
Changes the destination project name.
|
void |
setDestType(Resource.Type destType)
Changes the destination content type.
|
void |
setDestType(String option)
Changes the destination content type.
|
void |
setGenDef(File genDef)
Changes the generator definition file.
|
void |
setInputDef(File inputDef)
Changes the input definition file
|
void |
setShowVersion(boolean showVersion)
Changes if the current version should be shown.
|
void |
setTestDef(File testDef)
Changes the base test definition file.
|
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 setTestDef(File testDef)
public File getTestDef()
public void setGenDef(File genDef)
public File getGenDef()
public void setInputDef(File inputDef)
public File getInputDef()
public void setWorkingDir(File workingDir)
public File getWorkingDir()
public void setShowVersion(boolean showVersion)
public boolean showVersion()
public void setContentType(String option)
public void setContentType(Resource.Type contentType)
public Resource.Type getContentType()
public void setDestDir(File outDir)
public File getDestDir()
public void setDestName(String projectName)
public String getDestName()
public void setDestType(String option)
public void setDestType(Resource.Type destType)
public Resource.Type getDestType()
public static CopyCommand.Options.Builder builder()
Copyright © 2024 The Cornutum Project. All rights reserved.