Package io.smallrye.graphql.schema.model
Class Transformation
- java.lang.Object
-
- io.smallrye.graphql.schema.model.Transformation
-
- All Implemented Interfaces:
Serializable
public class Transformation extends Object implements Serializable
Indicate that a field should apply transformation At the moment this is only on number and date scalars. We also mark if this is a JsonB annotated field o- Author:
- Phillip Kruger (phillip.kruger@redhat.com)
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTransformation.Type
-
Constructor Summary
Constructors Constructor Description Transformation()Transformation(Transformation.Type type, String format, String locale, boolean jsonB)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetFormat()StringgetLocale()Transformation.TypegetType()inthashCode()booleanisJsonB()voidsetFormat(String format)voidsetJsonB(boolean jsonB)voidsetLocale(String locale)voidsetType(Transformation.Type type)StringtoString()
-
-
-
Constructor Detail
-
Transformation
public Transformation()
-
Transformation
public Transformation(Transformation.Type type, String format, String locale, boolean jsonB)
-
-
Method Detail
-
getType
public Transformation.Type getType()
-
setType
public void setType(Transformation.Type type)
-
getFormat
public String getFormat()
-
setFormat
public void setFormat(String format)
-
getLocale
public String getLocale()
-
setLocale
public void setLocale(String locale)
-
isJsonB
public boolean isJsonB()
-
setJsonB
public void setJsonB(boolean jsonB)
-
-