Class FieldType
java.lang.Object
no.sikt.graphql.schema.FieldType
no.sikt.graphitron.definitions.fields.containedtypes.FieldType
public class FieldType
extends no.sikt.graphql.schema.FieldType
Class that contains all the necessary information about a field's type and nullability.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class no.sikt.graphql.schema.FieldType
extractNestedTypes
-
Constructor Details
-
FieldType
public FieldType(graphql.language.Type<?> fieldType)
-
-
Method Details
-
setFields
protected void setFields(graphql.language.Type<?> fieldType) - Overrides:
setFieldsin classno.sikt.graphql.schema.FieldType
-
getName
- Overrides:
getNamein classno.sikt.graphql.schema.FieldType- Returns:
- The name of the data type as specified in the schema.
-
isIterableWrapped
public boolean isIterableWrapped()- Returns:
- Is this data type wrapped in a list?
-
isNullable
public boolean isNullable() -
isIterableNullable
public boolean isIterableNullable()- Returns:
- Is this data type's list wrapping nullable?
-
isID
public boolean isID()- Returns:
- Is this data type an ID type?
-
getTypeClass
public no.sikt.graphitron.javapoet.TypeName getTypeClass()- Returns:
TypeNamefor this field.
-