Interface XmlElementDeclGem.Builder<T>
- Enclosing class:
XmlElementDeclGem
public static interface XmlElementDeclGem.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.setDefaultvalue(org.mapstruct.tools.gem.GemValue<String> methodName) Sets theGemValueforXmlElementDeclGem.defaultValuesetMirror(AnnotationMirror mirror) Sets the annotation mirrorSets theGemValueforXmlElementDeclGem.namesetNamespace(org.mapstruct.tools.gem.GemValue<String> methodName) Sets theGemValueforXmlElementDeclGem.namespacesetScope(org.mapstruct.tools.gem.GemValue<TypeMirror> methodName) Sets theGemValueforXmlElementDeclGem.scopesetSubstitutionheadname(org.mapstruct.tools.gem.GemValue<String> methodName) Sets theGemValueforXmlElementDeclGem.substitutionHeadNamesetSubstitutionheadnamespace(org.mapstruct.tools.gem.GemValue<String> methodName) Sets theGemValueforXmlElementDeclGem.substitutionHeadNamespace
-
Method Details
-
setScope
Sets theGemValueforXmlElementDeclGem.scope- Returns:
- the
XmlElementDeclGem.Builderfor this gem, representingXmlElementDeclGem
-
setNamespace
Sets theGemValueforXmlElementDeclGem.namespace- Returns:
- the
XmlElementDeclGem.Builderfor this gem, representingXmlElementDeclGem
-
setName
Sets theGemValueforXmlElementDeclGem.name- Returns:
- the
XmlElementDeclGem.Builderfor this gem, representingXmlElementDeclGem
-
setSubstitutionheadnamespace
XmlElementDeclGem.Builder setSubstitutionheadnamespace(org.mapstruct.tools.gem.GemValue<String> methodName) Sets theGemValueforXmlElementDeclGem.substitutionHeadNamespace- Returns:
- the
XmlElementDeclGem.Builderfor this gem, representingXmlElementDeclGem
-
setSubstitutionheadname
XmlElementDeclGem.Builder setSubstitutionheadname(org.mapstruct.tools.gem.GemValue<String> methodName) Sets theGemValueforXmlElementDeclGem.substitutionHeadName- Returns:
- the
XmlElementDeclGem.Builderfor this gem, representingXmlElementDeclGem
-
setDefaultvalue
Sets theGemValueforXmlElementDeclGem.defaultValue- Returns:
- the
XmlElementDeclGem.Builderfor this gem, representingXmlElementDeclGem
-
setMirror
Sets the annotation mirror- Parameters:
mirror- the mirror which this gem represents- Returns:
- the
XmlElementDeclGem.Builderfor this gem, representingXmlElementDeclGem
-
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
-