Class FieldType
java.lang.Object
no.sikt.graphql.schema.FieldType
no.sikt.graphitron.definitions.fields.containedtypes.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) -
getName
-
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
- Returns:
TypeNamefor this field.
-