Class XmlGregorianCalendarToString

java.lang.Object
org.mapstruct.ap.internal.model.source.builtin.BuiltInMethod
org.mapstruct.ap.internal.model.source.builtin.XmlGregorianCalendarToString
All Implemented Interfaces:
Method

public class XmlGregorianCalendarToString extends BuiltInMethod
A built-in method for converting from XMLGregorianCalendar to String.
Author:
Sjaak Derksen
  • Constructor Details

    • XmlGregorianCalendarToString

      public XmlGregorianCalendarToString(TypeFactory typeFactory)
  • Method Details

    • getImportTypes

      public Set<Type> getImportTypes()
      Description copied from class: BuiltInMethod
      Returns 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:
      getImportTypes in class BuiltInMethod
      Returns:
      the types used by this method for which import statements need to be generated
    • getParameter

      public Parameter getParameter()
      Description copied from class: BuiltInMethod
      There's currently only one parameter foreseen instead of a list of parameter
      Specified by:
      getParameter in class BuiltInMethod
      Returns:
      the parameter
    • getReturnType

      public Type getReturnType()
      Description copied from interface: Method
      Returns the return type of the method
      Returns:
      return type
    • getContextParameter

      public String getContextParameter(ConversionContext conversionContext)
      Description copied from class: BuiltInMethod
      the conversion context is used to format an auxiliary parameter in the method call with context specific information such as a date format.
      Overrides:
      getContextParameter in class BuiltInMethod
      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