Class AdaptToHelper
- java.lang.Object
-
- io.smallrye.graphql.schema.helper.AdaptToHelper
-
public class AdaptToHelper extends Object
Helping with mapping of scalars- Author:
- Phillip Kruger (phillip.kruger@redhat.com)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Optional<AdaptTo>getAdaptTo(Field field, Annotations annotations)Get the adaptTo for a certain field (if any)static Optional<AdaptTo>getAdaptTo(Reference r, Annotations annotations)Get the adapt to for a certain reference.static booleanshouldCreateTypeInSchema(Annotations annotations)
-
-
-
Method Detail
-
shouldCreateTypeInSchema
public static boolean shouldCreateTypeInSchema(Annotations annotations)
-
getAdaptTo
public static Optional<AdaptTo> getAdaptTo(Field field, Annotations annotations)
Get the adaptTo for a certain field (if any)- Parameters:
field-annotations- the annotations- Returns:
- Potentially an AdaptTo model
-
getAdaptTo
public static Optional<AdaptTo> getAdaptTo(Reference r, Annotations annotations)
Get the adapt to for a certain reference.- Parameters:
r-annotations- the annotations- Returns:
- Potentially a AdaptTo model
-
-