public class DataFetchingFieldSelectionSetImpl extends java.lang.Object implements DataFetchingFieldSelectionSet
Constructor and Description |
---|
DataFetchingFieldSelectionSetImpl(MergedField parentFields,
GraphQLFieldsContainer parentFieldType,
GraphQLSchema graphQLSchema,
java.util.Map<java.lang.String,java.lang.Object> variables,
java.util.Map<java.lang.String,FragmentDefinition> fragmentsByName) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(java.lang.String fieldGlobPattern)
This will return true if the field selection set matches a specified "glob" pattern matching ie
the glob pattern matching supported by
FileSystem.getPathMatcher(java.lang.String) . |
boolean |
containsAllOf(java.lang.String fieldGlobPattern,
java.lang.String... fieldGlobPatterns)
This will return true if the field selection set matches all of the specified "glob" pattern matches ie
the glob pattern matching supported by
FileSystem.getPathMatcher(java.lang.String) . |
boolean |
containsAnyOf(java.lang.String fieldGlobPattern,
java.lang.String... fieldGlobPatterns)
This will return true if the field selection set matches any of the specified "glob" pattern matches ie
the glob pattern matching supported by
FileSystem.getPathMatcher(java.lang.String) . |
MergedSelectionSet |
get() |
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> |
getArguments() |
java.util.Map<java.lang.String,GraphQLFieldDefinition> |
getDefinitions() |
SelectedField |
getField(java.lang.String fqFieldName)
This will return a selected field using the fully qualified field name.
|
java.util.List<SelectedField> |
getFields()
This will return all selected fields.
|
java.util.List<SelectedField> |
getFields(java.lang.String fieldGlobPattern)
This will return a list of selected fields that match a specified "glob" pattern matching ie
the glob pattern matching supported by
FileSystem.getPathMatcher(java.lang.String) . |
static DataFetchingFieldSelectionSet |
newCollector(ExecutionContext executionContext,
GraphQLType fieldType,
MergedField mergedField) |
public DataFetchingFieldSelectionSetImpl(MergedField parentFields, GraphQLFieldsContainer parentFieldType, GraphQLSchema graphQLSchema, java.util.Map<java.lang.String,java.lang.Object> variables, java.util.Map<java.lang.String,FragmentDefinition> fragmentsByName)
public static DataFetchingFieldSelectionSet newCollector(ExecutionContext executionContext, GraphQLType fieldType, MergedField mergedField)
public MergedSelectionSet get()
get
in interface DataFetchingFieldSelectionSet
get
in interface java.util.function.Supplier<MergedSelectionSet>
public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> getArguments()
getArguments
in interface DataFetchingFieldSelectionSet
public java.util.Map<java.lang.String,GraphQLFieldDefinition> getDefinitions()
getDefinitions
in interface DataFetchingFieldSelectionSet
GraphQLFieldDefinition
s for each field in the selection setpublic boolean contains(java.lang.String fieldGlobPattern)
DataFetchingFieldSelectionSet
FileSystem.getPathMatcher(java.lang.String)
.
This will allow you to use '*', '**' and '?' as special matching characters such that "invoice/customer*" would
match an invoice field with child fields that start with 'customer'.contains
in interface DataFetchingFieldSelectionSet
fieldGlobPattern
- the glob pattern to match fields againstFileSystem.getPathMatcher(String)
public boolean containsAnyOf(java.lang.String fieldGlobPattern, java.lang.String... fieldGlobPatterns)
DataFetchingFieldSelectionSet
FileSystem.getPathMatcher(java.lang.String)
.
This will allow you to use '*', '**' and '?' as special matching characters such that "invoice/customer*" would
match an invoice field with child fields that start with 'customer'.containsAnyOf
in interface DataFetchingFieldSelectionSet
fieldGlobPattern
- the glob pattern to match fields againstfieldGlobPatterns
- optionally more glob pattern to match fields againstFileSystem.getPathMatcher(String)
public boolean containsAllOf(java.lang.String fieldGlobPattern, java.lang.String... fieldGlobPatterns)
DataFetchingFieldSelectionSet
FileSystem.getPathMatcher(java.lang.String)
.
This will allow you to use '*', '**' and '?' as special matching characters such that "invoice/customer*" would
match an invoice field with child fields that start with 'customer'.containsAllOf
in interface DataFetchingFieldSelectionSet
fieldGlobPattern
- the glob pattern to match fields againstfieldGlobPatterns
- optionally more glob pattern to match fields againstFileSystem.getPathMatcher(String)
public SelectedField getField(java.lang.String fqFieldName)
DataFetchingFieldSelectionSet
getField
in interface DataFetchingFieldSelectionSet
fqFieldName
- the fully qualified name that is contained in the map from DataFetchingFieldSelectionSet.get()
public java.util.List<SelectedField> getFields(java.lang.String fieldGlobPattern)
DataFetchingFieldSelectionSet
FileSystem.getPathMatcher(java.lang.String)
.
This will allow you to use '*', '**' and '?' as special matching characters such that "invoice/customer*" would
match an invoice field with child fields that start with 'customer'.getFields
in interface DataFetchingFieldSelectionSet
fieldGlobPattern
- the glob pattern to match fields againstpublic java.util.List<SelectedField> getFields()
DataFetchingFieldSelectionSet
getFields
in interface DataFetchingFieldSelectionSet