Class CustomScalar
-
- All Implemented Interfaces:
public final class CustomScalarHolds 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).
-
-
Constructor Summary
Constructors Constructor Description CustomScalar()
-
Method Summary
Modifier and Type Method Description final StringgetScalar()Custom scalar name. final UnitsetScalar(@Parameter() String scalar)Custom scalar name. final StringgetType()Fully qualified class name of a custom scalar type, e.g. final UnitsetType(@Parameter() String type)Fully qualified class name of a custom scalar type, e.g. final StringgetConverter()Fully qualified class name of a custom converter used to convert to/from raw JSON and type final UnitsetConverter(@Parameter() String converter)Fully qualified class name of a custom converter used to convert to/from raw JSON and type -
-
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
-
-
-
-