Class GraphQLSchemaImpl

java.lang.Object
se.liu.ida.hefquin.engine.wrappers.graphql.data.impl.GraphQLSchemaImpl
All Implemented Interfaces:
GraphQLSchema

public class GraphQLSchemaImpl extends Object implements GraphQLSchema
  • Field Details

  • Constructor Details

  • Method Details

    • containsGraphQLObjectType

      public boolean containsGraphQLObjectType(String objectTypeName)
      Description copied from interface: GraphQLSchema
      Verifies that a GraphQL object type with the name @param objectTypeName exists for the endpoint (as defined by its schema).
      Specified by:
      containsGraphQLObjectType in interface GraphQLSchema
    • containsGraphQLField

      public boolean containsGraphQLField(String objectTypeName, String fieldName)
      Description copied from interface: GraphQLSchema
      Verifies that a field with the name @param fieldName exists for a GraphQL object type with the name @param objectTypeName in the endpoint (as defined by its schema).
      Specified by:
      containsGraphQLField in interface GraphQLSchema
    • getGraphQLFieldType

      public GraphQLFieldType getGraphQLFieldType(String objectTypeName, String fieldName)
      Specified by:
      getGraphQLFieldType in interface GraphQLSchema
      Returns:
      a GraphQLFieldType enum that describes whether the field with the name @param fieldName of the GraphQL object type of the name @param objectTypeName is a scalar value or an object. If the parameter names provided doesn't correspond to an object type or a field for the endpoint return null.
    • getGraphQLFieldValueType

      public String getGraphQLFieldValueType(String objectTypeName, String fieldName)
      Specified by:
      getGraphQLFieldValueType in interface GraphQLSchema
      fieldName - of the GraphQL object type with the name @param objectTypeName . If the parameter names provided doesn't correspond to an object type or a field for the endpoint return null.
      Returns:
      the value type (String,Int,... etc.) for the field with the name
    • getGraphQLObjectTypes

      public Set<String> getGraphQLObjectTypes()
      Specified by:
      getGraphQLObjectTypes in interface GraphQLSchema
      Returns:
      a set with the names of all the defined GraphQL object types for the endpoint.
    • getEntrypoint

      public GraphQLEntrypoint getEntrypoint(String objectTypeName, GraphQLEntrypointType fieldType)
      Specified by:
      getEntrypoint in interface GraphQLSchema
      Returns:
      a GraphQLEntrypoint object containing information about a specific field in the GraphQL "query" type.
    • getGraphQLObjectFields

      public Map<String,GraphQLField> getGraphQLObjectFields(String objectTypeName)
      Specified by:
      getGraphQLObjectFields in interface GraphQLSchema
      Returns:
      a map of field names for the GraphQL object type with the name @param objectTypeName mapped to their respective GraphQLField objects containing information about the field. If the parameter name provided doesn't correspond to an object type for the endpoint return null.
    • toString

      public String toString()
      Overrides:
      toString in class Object