Package graphql.validation
Class ValidationContext
- java.lang.Object
-
- graphql.validation.ValidationContext
-
public class ValidationContext extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private Document
document
private java.util.Map<java.lang.String,FragmentDefinition>
fragmentDefinitionMap
private GraphQLContext
graphQLContext
private I18n
i18n
private GraphQLSchema
schema
private TraversalContext
traversalContext
-
Constructor Summary
Constructors Constructor Description ValidationContext(GraphQLSchema schema, Document document, I18n i18n)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
buildFragmentMap()
GraphQLArgument
getArgument()
InputValueWithState
getDefaultValue()
GraphQLDirective
getDirective()
Document
getDocument()
GraphQLFieldDefinition
getFieldDef()
FragmentDefinition
getFragment(java.lang.String name)
GraphQLContext
getGraphQLContext()
I18n
getI18n()
GraphQLInputType
getInputType()
GraphQLOutputType
getOutputType()
GraphQLCompositeType
getParentType()
java.util.List<java.lang.String>
getQueryPath()
GraphQLSchema
getSchema()
TraversalContext
getTraversalContext()
java.lang.String
i18n(java.lang.String msgKey, java.lang.Object... msgArgs)
Creates an I18N message using the key and argumentsjava.lang.String
toString()
-
-
-
Field Detail
-
schema
private final GraphQLSchema schema
-
document
private final Document document
-
traversalContext
private final TraversalContext traversalContext
-
fragmentDefinitionMap
private final java.util.Map<java.lang.String,FragmentDefinition> fragmentDefinitionMap
-
i18n
private final I18n i18n
-
graphQLContext
private final GraphQLContext graphQLContext
-
-
Constructor Detail
-
ValidationContext
public ValidationContext(GraphQLSchema schema, Document document, I18n i18n)
-
-
Method Detail
-
buildFragmentMap
private void buildFragmentMap()
-
getTraversalContext
public TraversalContext getTraversalContext()
-
getSchema
public GraphQLSchema getSchema()
-
getDocument
public Document getDocument()
-
getFragment
public FragmentDefinition getFragment(java.lang.String name)
-
getParentType
public GraphQLCompositeType getParentType()
-
getInputType
public GraphQLInputType getInputType()
-
getDefaultValue
public InputValueWithState getDefaultValue()
-
getFieldDef
public GraphQLFieldDefinition getFieldDef()
-
getDirective
public GraphQLDirective getDirective()
-
getArgument
public GraphQLArgument getArgument()
-
getOutputType
public GraphQLOutputType getOutputType()
-
getQueryPath
public java.util.List<java.lang.String> getQueryPath()
-
getI18n
public I18n getI18n()
-
getGraphQLContext
public GraphQLContext getGraphQLContext()
-
i18n
public java.lang.String i18n(java.lang.String msgKey, java.lang.Object... msgArgs)
Creates an I18N message using the key and arguments- Parameters:
msgKey
- the key in the underlying message bundlemsgArgs
- the message arguments- Returns:
- the formatted I18N message
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-