Package 

Class CustomScalar

  • All Implemented Interfaces:

    
    public final class CustomScalar
    
                        

    Holds mapping between custom GraphQL scalar type, corresponding Kotlin type and the converter that will be used to convert to/from raw JSON and Java type.

    Unfortunately we cannot use client-generator GraphQLScalar directly as per rules of mapping complex objects to Mojo parameters, target object has to be declared in the same package as Mojo itself (otherwise we need to explicitly specify fully qualified implementation name in configuration XML block).

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      CustomScalar()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String getScalar() Custom scalar name.
      final Unit setScalar(@Parameter() String scalar) Custom scalar name.
      final String getType() Fully qualified class name of a custom scalar type, e.g.
      final Unit setType(@Parameter() String type) Fully qualified class name of a custom scalar type, e.g.
      final String getConverter() Fully qualified class name of a custom converter used to convert to/from raw JSON and type
      final Unit setConverter(@Parameter() String converter) Fully qualified class name of a custom converter used to convert to/from raw JSON and type
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CustomScalar

        CustomScalar()
    • Method Detail

      • getType

         final String getType()

        Fully qualified class name of a custom scalar type, e.g. java.util.UUID

      • setType

         final Unit setType(@Parameter() String type)

        Fully qualified class name of a custom scalar type, e.g. java.util.UUID

      • getConverter

         final String getConverter()

        Fully qualified class name of a custom converter used to convert to/from raw JSON and type

      • setConverter

         final Unit setConverter(@Parameter() String converter)

        Fully qualified class name of a custom converter used to convert to/from raw JSON and type