Package org.mapstruct.ap.internal.gem
Class EnumMappingGem.BuilderImpl
- java.lang.Object
-
- org.mapstruct.ap.internal.gem.EnumMappingGem.BuilderImpl
-
- All Implemented Interfaces:
EnumMappingGem.Builder<EnumMappingGem>
- Enclosing class:
- EnumMappingGem
private static class EnumMappingGem.BuilderImpl extends java.lang.Object implements EnumMappingGem.Builder<EnumMappingGem>
-
-
Field Summary
Fields Modifier and Type Field Description private org.mapstruct.tools.gem.GemValue<java.lang.String>configurationprivate javax.lang.model.element.AnnotationMirrormirrorprivate org.mapstruct.tools.gem.GemValue<java.lang.String>nameTransformationStrategyprivate org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror>unexpectedValueMappingException
-
Constructor Summary
Constructors Modifier Constructor Description privateBuilderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EnumMappingGembuild()The build method can be overriden in a custom custom implementation, which allows the user to define his own custom validation on the annotation.EnumMappingGem.BuildersetConfiguration(org.mapstruct.tools.gem.GemValue<java.lang.String> configuration)Sets theGemValueforEnumMappingGem.configurationEnumMappingGem.BuildersetMirror(javax.lang.model.element.AnnotationMirror mirror)Sets the annotation mirrorEnumMappingGem.BuildersetNametransformationstrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> nameTransformationStrategy)Sets theGemValueforEnumMappingGem.nameTransformationStrategyEnumMappingGem.BuildersetUnexpectedvaluemappingexception(org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> unexpectedValueMappingException)Sets theGemValueforEnumMappingGem.unexpectedValueMappingException
-
-
-
Field Detail
-
nameTransformationStrategy
private org.mapstruct.tools.gem.GemValue<java.lang.String> nameTransformationStrategy
-
configuration
private org.mapstruct.tools.gem.GemValue<java.lang.String> configuration
-
unexpectedValueMappingException
private org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> unexpectedValueMappingException
-
mirror
private javax.lang.model.element.AnnotationMirror mirror
-
-
Method Detail
-
setNametransformationstrategy
public EnumMappingGem.Builder setNametransformationstrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> nameTransformationStrategy)
Description copied from interface:EnumMappingGem.BuilderSets theGemValueforEnumMappingGem.nameTransformationStrategy- Specified by:
setNametransformationstrategyin interfaceEnumMappingGem.Builder<EnumMappingGem>- Returns:
- the
EnumMappingGem.Builderfor this gem, representingEnumMappingGem
-
setConfiguration
public EnumMappingGem.Builder setConfiguration(org.mapstruct.tools.gem.GemValue<java.lang.String> configuration)
Description copied from interface:EnumMappingGem.BuilderSets theGemValueforEnumMappingGem.configuration- Specified by:
setConfigurationin interfaceEnumMappingGem.Builder<EnumMappingGem>- Returns:
- the
EnumMappingGem.Builderfor this gem, representingEnumMappingGem
-
setUnexpectedvaluemappingexception
public EnumMappingGem.Builder setUnexpectedvaluemappingexception(org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> unexpectedValueMappingException)
Description copied from interface:EnumMappingGem.BuilderSets theGemValueforEnumMappingGem.unexpectedValueMappingException- Specified by:
setUnexpectedvaluemappingexceptionin interfaceEnumMappingGem.Builder<EnumMappingGem>- Returns:
- the
EnumMappingGem.Builderfor this gem, representingEnumMappingGem
-
setMirror
public EnumMappingGem.Builder setMirror(javax.lang.model.element.AnnotationMirror mirror)
Description copied from interface:EnumMappingGem.BuilderSets the annotation mirror- Specified by:
setMirrorin interfaceEnumMappingGem.Builder<EnumMappingGem>- Parameters:
mirror- the mirror which this gem represents- Returns:
- the
EnumMappingGem.Builderfor this gem, representingEnumMappingGem
-
build
public EnumMappingGem build()
Description copied from interface:EnumMappingGem.BuilderThe build method can be overriden in a custom custom implementation, which allows the user to define his own custom validation on the annotation.- Specified by:
buildin interfaceEnumMappingGem.Builder<EnumMappingGem>- Returns:
- the representation of the annotation
-
-