Package org.apache.sling.graphql.api
Interface SelectedField
-
@ProviderType public interface SelectedFieldInterface to wrap information from GraphQL SelectedField.As described in
SelectionSet, it is aimed to map the SelectedField to the minimum information required when processing the query.InlineFragment are mapped so that its isInline() is return true.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable StringgetName()@Nullable SelectedFieldgetSubSelectedField(String name)@NotNull List<SelectedField>getSubSelectedFields()booleanhasSubSelectedFields(String... name)booleanisInline()
-
-
-
Method Detail
-
getName
@Nullable @Nullable String getName()
- Returns:
- the name as defined in the selection set.
-
getSubSelectedFields
@NotNull @NotNull List<SelectedField> getSubSelectedFields()
- Returns:
- the sub selected fields.
-
getSubSelectedField
@Nullable @Nullable SelectedField getSubSelectedField(String name)
- Parameters:
name- the sub selected field name.- Returns:
- the object or null if that doesn't exist.
-
hasSubSelectedFields
boolean hasSubSelectedFields(String... name)
- Parameters:
name- the sub selected field name(s).- Returns:
- true if any of the sub selected fields exists.
-
isInline
boolean isInline()
- Returns:
- true if this field is an inline (i.e: ... on Something { }).
-
-