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
Modifier and TypeMethodDescriptionbuild()The build method can be overriden in a custom custom implementation, which allows the user to define his own custom validation on the annotation.setMirror(AnnotationMirror mirror) Sets the annotation mirrorSets theGemValueforXmlElementRefGem.namesetNamespace(org.mapstruct.tools.gem.GemValue<String> methodName) Sets theGemValueforXmlElementRefGem.namespacesetRequired(org.mapstruct.tools.gem.GemValue<Boolean> methodName) Sets theGemValueforXmlElementRefGem.requiredsetType(org.mapstruct.tools.gem.GemValue<TypeMirror> methodName) Sets theGemValueforXmlElementRefGem.type
-
Method Details
-
setType
Sets theGemValueforXmlElementRefGem.type- Returns:
- the
XmlElementRefGem.Builderfor this gem, representingXmlElementRefGem
-
setNamespace
Sets theGemValueforXmlElementRefGem.namespace- Returns:
- the
XmlElementRefGem.Builderfor this gem, representingXmlElementRefGem
-
setName
Sets theGemValueforXmlElementRefGem.name- Returns:
- the
XmlElementRefGem.Builderfor this gem, representingXmlElementRefGem
-
setRequired
Sets theGemValueforXmlElementRefGem.required- Returns:
- the
XmlElementRefGem.Builderfor this gem, representingXmlElementRefGem
-
setMirror
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
-