Class ConfigurationDefinition
- java.lang.Object
-
- com.github.dozermapper.core.builder.model.jaxb.ConfigurationDefinition
-
- Direct Known Subclasses:
ELConfigurationDefinition
public class ConfigurationDefinition extends Object
Default values that are applied to all mappings. Global ConfigurationDefinition.Required Attributes:
Optional Attributes:
stop-on-errors Indicates whether Dozer should stop mapping fields and throw the Exception if an error is encountered while performing a field mapping. It is recommended that this is set to "true". If set to "false", Dozer will trap the exception, log the error, and then continue mapping subsequent fields. The default value is "true".
date-format The string format of Date fields. This is used for field mapping between Strings and Dates
wildcard Indicates whether Dozer automatically map fields that have the same name. This will typically be set to "true". The default value is "true"
wildcard-case-insensitive Indicates whether Dozer should ignore the case of field names when applying wildcard mapping. The default value is "false"
trim-strings Indicates whether Dozer automatically trims String values prior to setting the destination value. The default value is "false"
bean-factory The factory class to create data objects. This typically will not be specified. By default Dozer constructs new instances of data objects by invoking the no-arg constructor
relationship-type Indications whether collections are mapped cumulative or non-cumulative. cumulative indicates the element is added to the collection.
non-cumulative indicates the element will be added or an existing entry will be updated.
custom-converters The custom converters to be registered with Dozer.
copy-by-references Indicates which class types should always be copied by reference
-
-
Field Summary
Fields Modifier and Type Field Description protected AllowedExceptionsDefinitionallowedExceptionsprotected StringbeanFactoryprotected CopyByReferencesDefinitioncopyByReferencesprotected CustomConvertersDefinitioncustomConvertersprotected StringdateFormatprotected BooleanmapEmptyStringprotected BooleanmapNullprotected RelationshiprelationshipTypeprotected BooleanstopOnErrorsprotected BooleantrimStringsprotected VariablesDefinitionvariablesprotected Booleanwildcardprotected BooleanwildcardCaseInsensitive
-
Constructor Summary
Constructors Constructor Description ConfigurationDefinition()ConfigurationDefinition(MappingsDefinition parent)
-
Method Summary
-
-
-
Field Detail
-
stopOnErrors
protected Boolean stopOnErrors
-
dateFormat
protected String dateFormat
-
wildcard
protected Boolean wildcard
-
wildcardCaseInsensitive
protected Boolean wildcardCaseInsensitive
-
trimStrings
protected Boolean trimStrings
-
mapNull
protected Boolean mapNull
-
mapEmptyString
protected Boolean mapEmptyString
-
beanFactory
protected String beanFactory
-
relationshipType
protected Relationship relationshipType
-
customConverters
protected CustomConvertersDefinition customConverters
-
copyByReferences
protected CopyByReferencesDefinition copyByReferences
-
allowedExceptions
protected AllowedExceptionsDefinition allowedExceptions
-
variables
protected VariablesDefinition variables
-
-
Constructor Detail
-
ConfigurationDefinition
public ConfigurationDefinition()
-
ConfigurationDefinition
public ConfigurationDefinition(MappingsDefinition parent)
-
-
Method Detail
-
withStopOnErrors
public ConfigurationDefinition withStopOnErrors(Boolean stopOnErrors)
-
withDateFormat
public ConfigurationDefinition withDateFormat(String dateFormat)
-
withWildcard
public ConfigurationDefinition withWildcard(Boolean wildcard)
-
withWildcardCaseInsensitive
public ConfigurationDefinition withWildcardCaseInsensitive(Boolean wildcardCaseInsensitive)
-
withTrimStrings
public ConfigurationDefinition withTrimStrings(Boolean trimStrings)
-
withMapNull
public ConfigurationDefinition withMapNull(Boolean mapNull)
-
withMapEmptyString
public ConfigurationDefinition withMapEmptyString(Boolean mapEmptyString)
-
withBeanFactory
public ConfigurationDefinition withBeanFactory(String beanFactory)
-
withRelationshipType
public ConfigurationDefinition withRelationshipType(Relationship relationshipType)
-
withCustomConverters
public CustomConvertersDefinition withCustomConverters()
-
withCopyByReferences
public CopyByReferencesDefinition withCopyByReferences()
-
withAllowedExceptions
public AllowedExceptionsDefinition withAllowedExceptions()
-
withVariables
public VariablesDefinition withVariables()
-
end
public MappingsDefinition end()
-
build
public Configuration build(BeanContainer beanContainer)
-
getParent
public MappingsDefinition getParent()
-
getStopOnErrors
public Boolean getStopOnErrors()
-
setStopOnErrors
protected void setStopOnErrors(Boolean stopOnErrors)
-
getDateFormat
public String getDateFormat()
-
setDateFormat
protected void setDateFormat(String dateFormat)
-
getWildcard
public Boolean getWildcard()
-
setWildcard
protected void setWildcard(Boolean wildcard)
-
getWildcardCaseInsensitive
public Boolean getWildcardCaseInsensitive()
-
setWildcardCaseInsensitive
protected void setWildcardCaseInsensitive(Boolean wildcardCaseInsensitive)
-
getTrimStrings
public Boolean getTrimStrings()
-
setTrimStrings
protected void setTrimStrings(Boolean trimStrings)
-
getMapNull
public Boolean getMapNull()
-
setMapNull
protected void setMapNull(Boolean mapNull)
-
getMapEmptyString
public Boolean getMapEmptyString()
-
setMapEmptyString
protected void setMapEmptyString(Boolean mapEmptyString)
-
getBeanFactory
public String getBeanFactory()
-
setBeanFactory
protected void setBeanFactory(String beanFactory)
-
getRelationshipType
public Relationship getRelationshipType()
-
setRelationshipType
protected void setRelationshipType(Relationship relationshipType)
-
getCustomConverters
public CustomConvertersDefinition getCustomConverters()
-
setCustomConverters
protected void setCustomConverters(CustomConvertersDefinition customConverters)
-
getCopyByReferences
public CopyByReferencesDefinition getCopyByReferences()
-
setCopyByReferences
protected void setCopyByReferences(CopyByReferencesDefinition copyByReferences)
-
getAllowedExceptions
public AllowedExceptionsDefinition getAllowedExceptions()
-
setAllowedExceptions
protected void setAllowedExceptions(AllowedExceptionsDefinition allowedExceptions)
-
getVariables
public VariablesDefinition getVariables()
-
setVariables
protected void setVariables(VariablesDefinition variables)
-
-