Class GenerationSourceField<T extends graphql.language.NamedNode<T> & graphql.language.DirectivesContainer<T>>
java.lang.Object
no.sikt.graphitron.definitions.fields.AbstractField<T>
no.sikt.graphitron.definitions.fields.GenerationSourceField<T>
- All Implemented Interfaces:
FieldSpecification,GenerationField,GenerationTarget
- Direct Known Subclasses:
InputField,ObjectField
public abstract class GenerationSourceField<T extends graphql.language.NamedNode<T> & graphql.language.DirectivesContainer<T>>
extends AbstractField<T>
implements GenerationField
This class represents the general functionality associated with GraphQLs fields that can initialise code generation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanDoes this have theGenerationDirective.NOT_GENERATEDdirective for skipping generation set?booleanbooleanbooleanbooleanMethods inherited from class no.sikt.graphitron.definitions.fields.AbstractField
getContainerTypeName, getJavaName, getMappingFromFieldOverride, getMappingFromSchemaName, getName, getTypeClass, getTypeName, getUnprocessedFieldOverrideInput, getUpperCaseName, hasSetFieldOverride, isID, isIterableWrapped, isNonNullable, isNullable, isRootFieldMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface no.sikt.graphitron.definitions.interfaces.FieldSpecification
getContainerTypeName, getMappingFromFieldOverride, getMappingFromSchemaName, getName, getTypeClass, getTypeName, getUpperCaseName, hasSetFieldOverride, isID, isIterableWrapped, isNonNullable, isNullableMethods inherited from interface no.sikt.graphitron.definitions.interfaces.GenerationField
isInput
-
Constructor Details
-
GenerationSourceField
-
-
Method Details
-
isResolver
public boolean isResolver()- Specified by:
isResolverin interfaceGenerationField- Returns:
- Does this field point to a resolver method?
-
isExternalField
public boolean isExternalField()- Specified by:
isExternalFieldin interfaceGenerationField
-
hasFieldDirective
public boolean hasFieldDirective() -
getMappingForRecordFieldOverride
- Specified by:
getMappingForRecordFieldOverridein interfaceGenerationField- Returns:
- Record-side method mapping based on the name of the field or the directive
GenerationDirective.FIELDset on this type.
-
getFieldRecordMappingName
- Specified by:
getFieldRecordMappingNamein interfaceGenerationField- Returns:
- Record-side name mapping based on the name of the field or the
GenerationDirective.FIELDdirective set on this type.
-
getFieldReferences
- Specified by:
getFieldReferencesin interfaceGenerationField
-
hasFieldReferences
public boolean hasFieldReferences()- Specified by:
hasFieldReferencesin interfaceGenerationField
-
getCondition
- Specified by:
getConditionin interfaceGenerationField
-
hasCondition
public boolean hasCondition()- Specified by:
hasConditionin interfaceGenerationField
-
hasOverridingCondition
public boolean hasOverridingCondition()- Specified by:
hasOverridingConditionin interfaceGenerationField
-
isGenerated
public boolean isGenerated()- Specified by:
isGeneratedin interfaceGenerationTarget- Returns:
- Should this object be generated?
-
hasServiceReference
public boolean hasServiceReference()- Specified by:
hasServiceReferencein interfaceGenerationField- Returns:
- Does this field have a service reference defined?
-
getService
- Specified by:
getServicein interfaceGenerationField- Returns:
- The wrapper object for a service reference, if the field has a service set. Otherwise, null.
-
hasMutationType
public boolean hasMutationType()- Specified by:
hasMutationTypein interfaceGenerationField- Returns:
- Does this field have a mutation operation defined?
-
getMutationType
- Specified by:
getMutationTypein interfaceGenerationField- Returns:
- The type of mutation that should be applied in this operation.
-
isGeneratedWithResolver
public boolean isGeneratedWithResolver()- Specified by:
isGeneratedWithResolverin interfaceGenerationTarget- Returns:
- Should this object be generated as or containing resolvers?
-
isExplicitlyNotGenerated
public boolean isExplicitlyNotGenerated()Description copied from interface:GenerationTargetDoes this have theGenerationDirective.NOT_GENERATEDdirective for skipping generation set?- Specified by:
isExplicitlyNotGeneratedin interfaceGenerationTarget
-
hasNodeID
public boolean hasNodeID()- Specified by:
hasNodeIDin interfaceFieldSpecification- Returns:
- Does this field have the @nodeId directive?
-
getNodeIdTypeName
- Specified by:
getNodeIdTypeNamein interfaceFieldSpecification- Returns:
- The type name configured in the @nodeId directive
-