public class Arguments extends Object implements GenerationConfig
| Constructor and Description |
|---|
Arguments() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
exit(int status) |
AnnotationStyle |
getAnnotationStyle() |
char[] |
getPropertyWordDelimiters() |
Iterator<File> |
getSource() |
SourceType |
getSourceType() |
File |
getTargetDirectory() |
String |
getTargetPackage() |
boolean |
isGenerateBuilders() |
boolean |
isIncludeHashcodeAndEquals() |
boolean |
isIncludeJsr303Annotations() |
boolean |
isIncludeToString() |
boolean |
isUseLongIntegers() |
boolean |
isUsePrimitives() |
Arguments |
parse(String[] args)
Parses command line arguments and populates this command line instance.
|
public Arguments parse(String[] args)
If the command line arguments include the "help" argument, or if the
arguments have incorrect values or order, then usage information is
printed to System.out and the program terminates.
args - the command line argumentspublic Iterator<File> getSource()
getSource in interface GenerationConfigpublic File getTargetDirectory()
getTargetDirectory in interface GenerationConfigpublic String getTargetPackage()
getTargetPackage in interface GenerationConfigpublic boolean isGenerateBuilders()
isGenerateBuilders in interface GenerationConfigpublic boolean isUsePrimitives()
isUsePrimitives in interface GenerationConfigpublic char[] getPropertyWordDelimiters()
getPropertyWordDelimiters in interface GenerationConfigpublic boolean isUseLongIntegers()
isUseLongIntegers in interface GenerationConfigpublic boolean isIncludeHashcodeAndEquals()
isIncludeHashcodeAndEquals in interface GenerationConfigpublic boolean isIncludeToString()
isIncludeToString in interface GenerationConfigpublic AnnotationStyle getAnnotationStyle()
getAnnotationStyle in interface GenerationConfigpublic boolean isIncludeJsr303Annotations()
isIncludeJsr303Annotations in interface GenerationConfigpublic SourceType getSourceType()
getSourceType in interface GenerationConfigprotected void exit(int status)
Copyright © 2013. All Rights Reserved.