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 ([email protected])
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Transformation.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 boolean
equals(Object obj)
String
getFormat()
String
getLocale()
Transformation.Type
getType()
int
hashCode()
boolean
isJsonB()
void
setFormat(String format)
void
setJsonB(boolean jsonB)
void
setLocale(String locale)
void
setType(Transformation.Type type)
String
toString()
-
-
-
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)
-
-