public class DefaultGenerationConfig extends Object implements GenerationConfig
| Constructor and Description |
|---|
DefaultGenerationConfig() |
| Modifier and Type | Method and Description |
|---|---|
AnnotationStyle |
getAnnotationStyle()
Gets the 'annotationStyle' configuration option.
|
String |
getClassNamePrefix()
Gets the 'getClassNamePrefix' configuration option.
|
String |
getClassNameSuffix()
Gets the 'getClassNameSuffix' configuration option.
|
Class<? extends Annotator> |
getCustomAnnotator()
|
Class<? extends RuleFactory> |
getCustomRuleFactory()
Gets the 'customRuleFactory' configuration option.
|
String |
getDateTimeType()
Gets the `dateTimeType` configuration option.
|
String |
getDateType()
Gets the `dateType` 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<URL> |
getSource()
Unsupported since no default source is possible.
|
SourceType |
getSourceType()
Gets the 'sourceType' configuration option.
|
File |
getTargetDirectory()
Gets the 'targetDirectory' configuration option.
|
String |
getTargetPackage()
Gets the 'targetPackage' configuration option.
|
String |
getTargetVersion()
Gets the 'targetVersion' configuration option.
|
String |
getTimeType()
Gets the `timeType` configuration option.
|
boolean |
isConstructorsRequiredPropertiesOnly()
Gets the 'constructorsRequiredPropertiesOnly' configuration option
|
boolean |
isGenerateBuilders()
Gets the 'generateBuilders' configuration option.
|
boolean |
isIncludeAccessors()
Gets the 'includeAccessors' configuration option.
|
boolean |
isIncludeAdditionalProperties()
Gets the 'includeAdditionalProperties' configuration option.
|
boolean |
isIncludeConstructors()
Gets the 'includeConstructors' configuration option.
|
boolean |
isIncludeDynamicAccessors()
Gets the `includeDynamicAccessors` configuraiton 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 |
isParcelable()
Gets the 'parcelable' configuration option.
|
boolean |
isRemoveOldOutput()
Gets the 'removeOldOutput' configuration option.
|
boolean |
isUseBigDecimals()
Gets the 'useBigDecimals' configuration option.
|
boolean |
isUseCommonsLang3()
Gets the 'useCommonsLang3' configuration option.
|
boolean |
isUseDoubleNumbers()
Gets the 'useDoubleNumbers' configuration option.
|
boolean |
isUseJodaDates()
Gets the 'useJodaDates' configuration option.
|
boolean |
isUseJodaLocalDates()
Gets the 'useJodaLocalDates' configuration option.
|
boolean |
isUseJodaLocalTimes()
Gets the 'useJodaLocalTimes' configuration option.
|
boolean |
isUseLongIntegers()
Gets the 'useLongIntegers' configuration option.
|
boolean |
isUsePrimitives()
Gets the 'usePrimitives' configuration option.
|
public boolean isGenerateBuilders()
GenerationConfigisGenerateBuilders in interface GenerationConfigfalsepublic boolean isUsePrimitives()
GenerationConfigisUsePrimitives in interface GenerationConfigfalsepublic Iterator<URL> getSource()
getSource in interface GenerationConfigpublic File getTargetDirectory()
GenerationConfiggetTargetDirectory in interface GenerationConfigpublic String getTargetPackage()
GenerationConfiggetTargetPackage in interface GenerationConfigpublic char[] getPropertyWordDelimiters()
GenerationConfiggetPropertyWordDelimiters in interface GenerationConfigpublic boolean isUseLongIntegers()
GenerationConfigisUseLongIntegers in interface GenerationConfigfalsepublic boolean isUseDoubleNumbers()
GenerationConfigisUseDoubleNumbers in interface GenerationConfigtruepublic boolean isIncludeHashcodeAndEquals()
GenerationConfigisIncludeHashcodeAndEquals in interface GenerationConfigtruepublic boolean isIncludeToString()
GenerationConfigisIncludeToString in interface GenerationConfigtruepublic AnnotationStyle getAnnotationStyle()
GenerationConfiggetAnnotationStyle in interface GenerationConfigAnnotationStyle.JACKSON2AnnotatorFactorypublic Class<? extends Annotator> getCustomAnnotator()
getCustomAnnotator in interface GenerationConfigGenerationConfig.getAnnotationStyle()public Class<? extends RuleFactory> getCustomRuleFactory()
GenerationConfiggetCustomRuleFactory in interface GenerationConfigpublic boolean isIncludeJsr303Annotations()
GenerationConfigisIncludeJsr303Annotations in interface GenerationConfigfalsepublic SourceType getSourceType()
GenerationConfiggetSourceType in interface GenerationConfigSourceType.JSONSCHEMApublic String getOutputEncoding()
GenerationConfiggetOutputEncoding in interface GenerationConfigpublic boolean isRemoveOldOutput()
GenerationConfigisRemoveOldOutput in interface GenerationConfigpublic boolean isUseJodaDates()
GenerationConfigisUseJodaDates in interface GenerationConfigpublic boolean isUseJodaLocalDates()
GenerationConfigisUseJodaLocalDates in interface GenerationConfigpublic boolean isUseJodaLocalTimes()
GenerationConfigisUseJodaLocalTimes in interface GenerationConfigpublic boolean isUseCommonsLang3()
GenerationConfigisUseCommonsLang3 in interface GenerationConfigfalsepublic boolean isParcelable()
GenerationConfigisParcelable in interface GenerationConfigfalsepublic FileFilter getFileFilter()
GenerationConfiggetFileFilter in interface GenerationConfigpublic boolean isInitializeCollections()
GenerationConfigisInitializeCollections in interface GenerationConfigtruepublic String getClassNamePrefix()
GenerationConfiggetClassNamePrefix in interface GenerationConfigpublic String getClassNameSuffix()
GenerationConfiggetClassNameSuffix in interface GenerationConfigpublic boolean isUseBigDecimals()
GenerationConfigisUseBigDecimals in interface GenerationConfigBigDecimal
instead of float (or Float)
when representing the JSON Schema type 'number'. Note
that this configuration overrides isUseDoubleNumbers.public boolean isIncludeConstructors()
GenerationConfigisIncludeConstructors in interface GenerationConfigfalsepublic boolean isConstructorsRequiredPropertiesOnly()
GenerationConfigisConstructorsRequiredPropertiesOnly in interface GenerationConfigfalsepublic boolean isIncludeAdditionalProperties()
GenerationConfigisIncludeAdditionalProperties in interface GenerationConfigtruepublic boolean isIncludeAccessors()
GenerationConfigisIncludeAccessors in interface GenerationConfigtruepublic String getTargetVersion()
GenerationConfiggetTargetVersion in interface GenerationConfig1.6public boolean isIncludeDynamicAccessors()
GenerationConfigisIncludeDynamicAccessors in interface GenerationConfigtruepublic String getDateTimeType()
GenerationConfigExample values:
org.joda.time.LocalDateTime (Joda)java.time.LocalDateTime (JSR310)null (default behavior)getDateTimeType in interface GenerationConfigDate
when adding date type fields to generate Java types.public String getDateType()
GenerationConfigExample values:
org.joda.time.LocalDate (Joda)java.time.LocalDate (JSR310)null (default behavior)getDateType in interface GenerationConfigpublic String getTimeType()
GenerationConfigExample values:
org.joda.time.LocalTime (Joda)java.time.LocalTime (JSR310)null (default behavior)getTimeType in interface GenerationConfigCopyright © 2016. All rights reserved.