public abstract class ConditionModelBuilderBase extends Object
| Modifier and Type | Field and Description |
|---|---|
protected graphql.language.InputValueDefinition |
argument |
protected io.stargate.graphql.schema.graphqlfirst.processor.ProcessingContext |
context |
protected Map<String,EntityModel> |
entities |
protected EntityModel |
entity |
protected graphql.language.SourceLocation |
location |
protected String |
operationName |
| Modifier | Constructor and Description |
|---|---|
protected |
ConditionModelBuilderBase(io.stargate.graphql.schema.graphqlfirst.processor.ProcessingContext context,
graphql.language.InputValueDefinition argument,
String operationName,
EntityModel entity,
Map<String,EntityModel> entities) |
| Modifier and Type | Method and Description |
|---|---|
protected ConditionModel |
build() |
protected void |
checkArgumentIsListOf(FieldModel field) |
protected void |
checkArgumentIsSameAs(FieldModel field) |
protected FieldModel |
findField(String fieldName) |
protected abstract String |
getDirectiveName() |
protected void |
info(String format,
Object... arguments) |
void |
invalidMapping(String format,
Object... arguments) |
protected void |
invalidSyntax(String format,
Object... arguments) |
protected graphql.language.Type<?> |
toInput(graphql.language.Type<?> fieldType,
graphql.language.InputValueDefinition inputValue,
EntityModel entity,
FieldModel field) |
protected abstract void |
validate(FieldModel field,
Predicate predicate) |
protected void |
warn(String format,
Object... arguments) |
protected final graphql.language.InputValueDefinition argument
protected final String operationName
protected final EntityModel entity
protected final Map<String,EntityModel> entities
protected final io.stargate.graphql.schema.graphqlfirst.processor.ProcessingContext context
protected final graphql.language.SourceLocation location
protected ConditionModelBuilderBase(io.stargate.graphql.schema.graphqlfirst.processor.ProcessingContext context,
graphql.language.InputValueDefinition argument,
String operationName,
EntityModel entity,
Map<String,EntityModel> entities)
protected ConditionModel build() throws io.stargate.graphql.schema.graphqlfirst.processor.SkipException
io.stargate.graphql.schema.graphqlfirst.processor.SkipExceptionprotected void checkArgumentIsSameAs(FieldModel field) throws io.stargate.graphql.schema.graphqlfirst.processor.SkipException
io.stargate.graphql.schema.graphqlfirst.processor.SkipExceptionprotected graphql.language.Type<?> toInput(graphql.language.Type<?> fieldType,
graphql.language.InputValueDefinition inputValue,
EntityModel entity,
FieldModel field)
throws io.stargate.graphql.schema.graphqlfirst.processor.SkipException
io.stargate.graphql.schema.graphqlfirst.processor.SkipExceptionprotected FieldModel findField(String fieldName) throws io.stargate.graphql.schema.graphqlfirst.processor.SkipException
io.stargate.graphql.schema.graphqlfirst.processor.SkipExceptionprotected abstract String getDirectiveName()
protected abstract void validate(FieldModel field, Predicate predicate) throws io.stargate.graphql.schema.graphqlfirst.processor.SkipException
io.stargate.graphql.schema.graphqlfirst.processor.SkipExceptionprotected void checkArgumentIsListOf(FieldModel field) throws io.stargate.graphql.schema.graphqlfirst.processor.SkipException
io.stargate.graphql.schema.graphqlfirst.processor.SkipException@FormatMethod public void invalidMapping(String format, Object... arguments)
invalidMapping in interface InvalidMappingReporterCopyright © 2021. All rights reserved.