Package org.mapstruct.ap.internal.gem
Class XmlElementDeclGem.BuilderImpl
- java.lang.Object
-
- org.mapstruct.ap.internal.gem.XmlElementDeclGem.BuilderImpl
-
- All Implemented Interfaces:
XmlElementDeclGem.Builder<XmlElementDeclGem>
- Enclosing class:
- XmlElementDeclGem
private static class XmlElementDeclGem.BuilderImpl extends java.lang.Object implements XmlElementDeclGem.Builder<XmlElementDeclGem>
-
-
Field Summary
Fields Modifier and Type Field Description private org.mapstruct.tools.gem.GemValue<java.lang.String>defaultValueprivate javax.lang.model.element.AnnotationMirrormirrorprivate org.mapstruct.tools.gem.GemValue<java.lang.String>nameprivate org.mapstruct.tools.gem.GemValue<java.lang.String>namespaceprivate org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror>scopeprivate org.mapstruct.tools.gem.GemValue<java.lang.String>substitutionHeadNameprivate org.mapstruct.tools.gem.GemValue<java.lang.String>substitutionHeadNamespace
-
Constructor Summary
Constructors Modifier Constructor Description privateBuilderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XmlElementDeclGembuild()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<java.lang.String> defaultValue)Sets theGemValueforXmlElementDeclGem.defaultValueXmlElementDeclGem.BuildersetMirror(javax.lang.model.element.AnnotationMirror mirror)Sets the annotation mirrorXmlElementDeclGem.BuildersetName(org.mapstruct.tools.gem.GemValue<java.lang.String> name)Sets theGemValueforXmlElementDeclGem.nameXmlElementDeclGem.BuildersetNamespace(org.mapstruct.tools.gem.GemValue<java.lang.String> namespace)Sets theGemValueforXmlElementDeclGem.namespaceXmlElementDeclGem.BuildersetScope(org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> scope)Sets theGemValueforXmlElementDeclGem.scopeXmlElementDeclGem.BuildersetSubstitutionheadname(org.mapstruct.tools.gem.GemValue<java.lang.String> substitutionHeadName)Sets theGemValueforXmlElementDeclGem.substitutionHeadNameXmlElementDeclGem.BuildersetSubstitutionheadnamespace(org.mapstruct.tools.gem.GemValue<java.lang.String> substitutionHeadNamespace)Sets theGemValueforXmlElementDeclGem.substitutionHeadNamespace
-
-
-
Field Detail
-
scope
private org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> scope
-
namespace
private org.mapstruct.tools.gem.GemValue<java.lang.String> namespace
-
name
private org.mapstruct.tools.gem.GemValue<java.lang.String> name
-
substitutionHeadNamespace
private org.mapstruct.tools.gem.GemValue<java.lang.String> substitutionHeadNamespace
-
substitutionHeadName
private org.mapstruct.tools.gem.GemValue<java.lang.String> substitutionHeadName
-
defaultValue
private org.mapstruct.tools.gem.GemValue<java.lang.String> defaultValue
-
mirror
private javax.lang.model.element.AnnotationMirror mirror
-
-
Method Detail
-
setScope
public XmlElementDeclGem.Builder setScope(org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> scope)
Description copied from interface:XmlElementDeclGem.BuilderSets theGemValueforXmlElementDeclGem.scope- Specified by:
setScopein interfaceXmlElementDeclGem.Builder<XmlElementDeclGem>- Returns:
- the
XmlElementDeclGem.Builderfor this gem, representingXmlElementDeclGem
-
setNamespace
public XmlElementDeclGem.Builder setNamespace(org.mapstruct.tools.gem.GemValue<java.lang.String> namespace)
Description copied from interface:XmlElementDeclGem.BuilderSets theGemValueforXmlElementDeclGem.namespace- Specified by:
setNamespacein interfaceXmlElementDeclGem.Builder<XmlElementDeclGem>- Returns:
- the
XmlElementDeclGem.Builderfor this gem, representingXmlElementDeclGem
-
setName
public XmlElementDeclGem.Builder setName(org.mapstruct.tools.gem.GemValue<java.lang.String> name)
Description copied from interface:XmlElementDeclGem.BuilderSets theGemValueforXmlElementDeclGem.name- Specified by:
setNamein interfaceXmlElementDeclGem.Builder<XmlElementDeclGem>- Returns:
- the
XmlElementDeclGem.Builderfor this gem, representingXmlElementDeclGem
-
setSubstitutionheadnamespace
public XmlElementDeclGem.Builder setSubstitutionheadnamespace(org.mapstruct.tools.gem.GemValue<java.lang.String> substitutionHeadNamespace)
Description copied from interface:XmlElementDeclGem.BuilderSets theGemValueforXmlElementDeclGem.substitutionHeadNamespace- Specified by:
setSubstitutionheadnamespacein interfaceXmlElementDeclGem.Builder<XmlElementDeclGem>- Returns:
- the
XmlElementDeclGem.Builderfor this gem, representingXmlElementDeclGem
-
setSubstitutionheadname
public XmlElementDeclGem.Builder setSubstitutionheadname(org.mapstruct.tools.gem.GemValue<java.lang.String> substitutionHeadName)
Description copied from interface:XmlElementDeclGem.BuilderSets theGemValueforXmlElementDeclGem.substitutionHeadName- Specified by:
setSubstitutionheadnamein interfaceXmlElementDeclGem.Builder<XmlElementDeclGem>- Returns:
- the
XmlElementDeclGem.Builderfor this gem, representingXmlElementDeclGem
-
setDefaultvalue
public XmlElementDeclGem.Builder setDefaultvalue(org.mapstruct.tools.gem.GemValue<java.lang.String> defaultValue)
Description copied from interface:XmlElementDeclGem.BuilderSets theGemValueforXmlElementDeclGem.defaultValue- Specified by:
setDefaultvaluein interfaceXmlElementDeclGem.Builder<XmlElementDeclGem>- Returns:
- the
XmlElementDeclGem.Builderfor this gem, representingXmlElementDeclGem
-
setMirror
public XmlElementDeclGem.Builder setMirror(javax.lang.model.element.AnnotationMirror mirror)
Description copied from interface:XmlElementDeclGem.BuilderSets the annotation mirror- Specified by:
setMirrorin interfaceXmlElementDeclGem.Builder<XmlElementDeclGem>- Parameters:
mirror- the mirror which this gem represents- Returns:
- the
XmlElementDeclGem.Builderfor this gem, representingXmlElementDeclGem
-
build
public XmlElementDeclGem build()
Description copied from interface:XmlElementDeclGem.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 interfaceXmlElementDeclGem.Builder<XmlElementDeclGem>- Returns:
- the representation of the annotation
-
-