public class ValidationContext
extends java.lang.Object
Constructor and Description |
---|
ValidationContext(GraphQLSchema schema,
Document document,
I18n i18n) |
Modifier and Type | Method and Description |
---|---|
GraphQLArgument |
getArgument() |
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 arguments
|
java.lang.String |
toString() |
public ValidationContext(GraphQLSchema schema, Document document, I18n i18n)
public TraversalContext getTraversalContext()
public GraphQLSchema getSchema()
public Document getDocument()
public FragmentDefinition getFragment(java.lang.String name)
public GraphQLCompositeType getParentType()
public GraphQLInputType getInputType()
public GraphQLFieldDefinition getFieldDef()
public GraphQLDirective getDirective()
public GraphQLArgument getArgument()
public GraphQLOutputType getOutputType()
public java.util.List<java.lang.String> getQueryPath()
public I18n getI18n()
public GraphQLContext getGraphQLContext()
public java.lang.String i18n(java.lang.String msgKey, java.lang.Object... msgArgs)
msgKey
- the key in the underlying message bundlemsgArgs
- the message argumentspublic java.lang.String toString()
toString
in class java.lang.Object