Interface XmlElementRefGem.Builder<T>
-
- Enclosing class:
- XmlElementRefGem
public static interface XmlElementRefGem.Builder<T>A builder that can be implemented by the user to define custom logic e.g. in the build method, prior to creating the annotation gem.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tbuild()The build method can be overriden in a custom custom implementation, which allows the user to define his own custom validation on the annotation.XmlElementRefGem.BuildersetMirror(AnnotationMirror mirror)Sets the annotation mirrorXmlElementRefGem.BuildersetName(org.mapstruct.tools.gem.GemValue<String> methodName)Sets theGemValueforXmlElementRefGem.nameXmlElementRefGem.BuildersetNamespace(org.mapstruct.tools.gem.GemValue<String> methodName)Sets theGemValueforXmlElementRefGem.namespaceXmlElementRefGem.BuildersetRequired(org.mapstruct.tools.gem.GemValue<Boolean> methodName)Sets theGemValueforXmlElementRefGem.requiredXmlElementRefGem.BuildersetType(org.mapstruct.tools.gem.GemValue<TypeMirror> methodName)Sets theGemValueforXmlElementRefGem.type
-
-
-
Method Detail
-
setType
XmlElementRefGem.Builder setType(org.mapstruct.tools.gem.GemValue<TypeMirror> methodName)
Sets theGemValueforXmlElementRefGem.type- Returns:
- the
XmlElementRefGem.Builderfor this gem, representingXmlElementRefGem
-
setNamespace
XmlElementRefGem.Builder setNamespace(org.mapstruct.tools.gem.GemValue<String> methodName)
Sets theGemValueforXmlElementRefGem.namespace- Returns:
- the
XmlElementRefGem.Builderfor this gem, representingXmlElementRefGem
-
setName
XmlElementRefGem.Builder setName(org.mapstruct.tools.gem.GemValue<String> methodName)
Sets theGemValueforXmlElementRefGem.name- Returns:
- the
XmlElementRefGem.Builderfor this gem, representingXmlElementRefGem
-
setRequired
XmlElementRefGem.Builder setRequired(org.mapstruct.tools.gem.GemValue<Boolean> methodName)
Sets theGemValueforXmlElementRefGem.required- Returns:
- the
XmlElementRefGem.Builderfor this gem, representingXmlElementRefGem
-
setMirror
XmlElementRefGem.Builder setMirror(AnnotationMirror mirror)
Sets the annotation mirror- Parameters:
mirror- the mirror which this gem represents- Returns:
- the
XmlElementRefGem.Builderfor this gem, representingXmlElementRefGem
-
build
T build()
The build method can be overriden in a custom custom implementation, which allows the user to define his own custom validation on the annotation.- Returns:
- the representation of the annotation
-
-