public interface GenerationConfig
Devs: add to this interface if you need to introduce a new config property.
| Modifier and Type | Method and Description |
|---|---|
AnnotationStyle |
getAnnotationStyle()
Gets the 'annotationStyle' configuration option.
|
Class<? extends Annotator> |
getCustomAnnotator()
Gets the 'customAnnotator' configuration option.
|
Class<? extends RuleFactory> |
getCustomRuleFactory()
Gets the 'customRuleFactory' configuration option.
|
FileFilter |
getFileFilter()
Gets the file filter used to isolate the schema mapping files in the source directories.
|
String |
getOutputEncoding()
Gets the 'outputEncoding' configuration option.
|
char[] |
getPropertyWordDelimiters()
Gets the 'propertyWordDelimiters' configuration option.
|
Iterator<File> |
getSource()
Gets the 'source' configuration option.
|
SourceType |
getSourceType()
Gets the 'sourceType' configuration option.
|
File |
getTargetDirectory()
Gets the 'targetDirectory' configuration option.
|
String |
getTargetPackage()
Gets the 'targetPackage' configuration option.
|
boolean |
isGenerateBuilders()
Gets the 'generateBuilders' configuration option.
|
boolean |
isIncludeHashcodeAndEquals()
Gets the 'includeHashcodeAndEquals' configuration option.
|
boolean |
isIncludeJsr303Annotations()
Gets the 'includeJsr303Annotations' configuration option.
|
boolean |
isIncludeToString()
Gets the 'includeToString' configuration option.
|
boolean |
isInitializeCollections()
Gets the 'initializeCollections' configuration option.
|
boolean |
isRemoveOldOutput()
Gets the 'removeOldOutput' configuration option.
|
boolean |
isUseCommonsLang3()
Gets the 'useCommonsLang3' configuration option.
|
boolean |
isUseDoubleNumbers()
Gets the 'useDoubleNumbers' configuration option.
|
boolean |
isUseJodaDates()
Gets the 'useJodaDates' configuration option.
|
boolean |
isUseLongIntegers()
Gets the 'useLongIntegers' configuration option.
|
boolean |
isUsePrimitives()
Gets the 'usePrimitives' configuration option.
|
boolean isGenerateBuilders()
withXxx(value) (that return this),
alongside the standard, void-return setters.boolean isUsePrimitives()
long, double
, boolean) instead of wrapper types where possible
when generating bean properties (has the side-effect of making
those properties non-null).Iterator<File> getSource()
File getTargetDirectory()
String getTargetPackage()
char[] getPropertyWordDelimiters()
boolean isUseLongIntegers()
boolean isUseDoubleNumbers()
boolean isIncludeHashcodeAndEquals()
hashCode and
equals methods in generated Java types.boolean isIncludeToString()
toString method in
generated Java types.AnnotationStyle getAnnotationStyle()
Supported values:
jackson1 (apply annotations from the Jackson 1.x library)jackson2 (apply annotations from the Jackson
2.x library)gson (apply annotations from the gson library)none (apply no annotations at all)AnnotatorFactoryClass<? extends Annotator> getCustomAnnotator()
getAnnotationStyle()Class<? extends RuleFactory> getCustomRuleFactory()
boolean isIncludeJsr303Annotations()
SourceType getSourceType()
Supported values:
jsonschemajsonboolean isRemoveOldOutput()
String getOutputEncoding()
boolean isUseJodaDates()
DateTime instead of
Date when adding date type fields to generated
Java types.boolean isUseCommonsLang3()
FileFilter getFileFilter()
boolean isInitializeCollections()
Copyright © 2014. All Rights Reserved.