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
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.XmlElementDeclGem.BuildersetDefaultvalue(org.mapstruct.tools.gem.GemValue<String> methodName)Sets theGemValueforXmlElementDeclGem.defaultValueXmlElementDeclGem.BuildersetMirror(AnnotationMirror mirror)Sets the annotation mirrorXmlElementDeclGem.BuildersetName(org.mapstruct.tools.gem.GemValue<String> methodName)Sets theGemValueforXmlElementDeclGem.nameXmlElementDeclGem.BuildersetNamespace(org.mapstruct.tools.gem.GemValue<String> methodName)Sets theGemValueforXmlElementDeclGem.namespaceXmlElementDeclGem.BuildersetScope(org.mapstruct.tools.gem.GemValue<TypeMirror> methodName)Sets theGemValueforXmlElementDeclGem.scopeXmlElementDeclGem.BuildersetSubstitutionheadname(org.mapstruct.tools.gem.GemValue<String> methodName)Sets theGemValueforXmlElementDeclGem.substitutionHeadNameXmlElementDeclGem.BuildersetSubstitutionheadnamespace(org.mapstruct.tools.gem.GemValue<String> methodName)Sets theGemValueforXmlElementDeclGem.substitutionHeadNamespace
-
-
-
Method Detail
-
setScope
XmlElementDeclGem.Builder setScope(org.mapstruct.tools.gem.GemValue<TypeMirror> methodName)
Sets theGemValueforXmlElementDeclGem.scope- Returns:
- the
XmlElementDeclGem.Builderfor this gem, representingXmlElementDeclGem
-
setNamespace
XmlElementDeclGem.Builder setNamespace(org.mapstruct.tools.gem.GemValue<String> methodName)
Sets theGemValueforXmlElementDeclGem.namespace- Returns:
- the
XmlElementDeclGem.Builderfor this gem, representingXmlElementDeclGem
-
setName
XmlElementDeclGem.Builder setName(org.mapstruct.tools.gem.GemValue<String> methodName)
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
XmlElementDeclGem.Builder setDefaultvalue(org.mapstruct.tools.gem.GemValue<String> methodName)
Sets theGemValueforXmlElementDeclGem.defaultValue- Returns:
- the
XmlElementDeclGem.Builderfor this gem, representingXmlElementDeclGem
-
setMirror
XmlElementDeclGem.Builder setMirror(AnnotationMirror mirror)
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
-
-