Class StringToXmlGregorianCalendar
java.lang.Object
org.mapstruct.ap.internal.model.source.builtin.BuiltInMethod
org.mapstruct.ap.internal.model.source.builtin.AbstractToXmlGregorianCalendar
org.mapstruct.ap.internal.model.source.builtin.StringToXmlGregorianCalendar
- All Implemented Interfaces:
Method
A built-in method for converting from
String to XMLGregorianCalendar.- Author:
- Sjaak Derksen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetContextParameter(ConversionContext conversionContext) the conversion context is used to format an auxiliary parameter in the method call with context specific information such as a date format.Returns the types used by this method for which import statements need to be generated.There's currently only one parameter foreseen instead of a list of parameterMethods inherited from class org.mapstruct.ap.internal.model.source.builtin.AbstractToXmlGregorianCalendar
getConstructorFragment, getFieldReference, getReturnTypeMethods inherited from class org.mapstruct.ap.internal.model.source.builtin.BuiltInMethod
describe, doTypeVarsMatch, equals, getAccessibility, getContextParameters, getContextProvidedMethods, getDeclaringMapper, getDefiningType, getExecutable, getMappingTargetParameter, getName, getOptions, getParameterNames, getParameters, getResultType, getSourceParameters, getTargetTypeParameter, getThrownTypes, getTypeParameters, hashCode, isDefault, isLifecycleCallbackMethod, isObjectFactory, isStatic, isUpdateMethod, matches, overridesMethodMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.mapstruct.ap.internal.model.source.Method
getConditionOptions, getMappingSourceType
-
Constructor Details
-
StringToXmlGregorianCalendar
-
-
Method Details
-
getImportTypes
Description copied from class:BuiltInMethodReturns the types used by this method for which import statements need to be generated. Defaults to the empty set. To be overridden by implementations in case they make use of additional types (note that the parameter and return type don't need to be added).- Overrides:
getImportTypesin classAbstractToXmlGregorianCalendar- Returns:
- the types used by this method for which import statements need to be generated
-
getParameter
Description copied from class:BuiltInMethodThere's currently only one parameter foreseen instead of a list of parameter- Specified by:
getParameterin classBuiltInMethod- Returns:
- the parameter
-
getContextParameter
Description copied from class:BuiltInMethodthe conversion context is used to format an auxiliary parameter in the method call with context specific information such as a date format.- Overrides:
getContextParameterin classBuiltInMethod- Parameters:
conversionContext- context- Returns:
- null if no context parameter should be included "null" if there should be an explicit null call "'dateFormat'" for instance, to indicate how the build-in method should format the date
-