Class Operation

java.lang.Object
io.smallrye.graphql.schema.model.Field
io.smallrye.graphql.schema.model.Operation
All Implemented Interfaces:
Serializable

public final class Operation extends Field
Represent an operation on a Query or Mutation, or an operation on a Type in the case of a Source annotation.

a Operation if a special kind on field that allows arguments.

Author:
Phillip Kruger (phillip.kruger@redhat.com)
See Also:
  • Constructor Details

  • Method Details

    • setClassName

      public void setClassName(String className)
    • getClassName

      public String getClassName()
    • getArguments

      public List<Argument> getArguments()
    • setArguments

      public void setArguments(List<Argument> arguments)
    • addArgument

      public void addArgument(Argument argument)
    • hasArguments

      public boolean hasArguments()
    • setOperationType

      public void setOperationType(OperationType operationType)
    • getOperationType

      public OperationType getOperationType()
    • getSourceFieldOn

      public Reference getSourceFieldOn()
    • setSourceFieldOn

      public void setSourceFieldOn(Reference sourceFieldOn)
    • isSourceField

      public boolean isSourceField()
    • getExecute

      public Execute getExecute()
    • setExecute

      public void setExecute(Execute execute)
    • toString

      public String toString()
      Overrides:
      toString in class Field