Package io.smallrye.graphql.schema.model
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 ([email protected])
- See Also:
- Field, Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addArgument(Argument argument)
List<Argument>
getArguments()
String
getClassName()
Execute
getExecute()
OperationType
getOperationType()
Reference
getSourceFieldOn()
boolean
hasArguments()
boolean
isSourceField()
void
setArguments(List<Argument> arguments)
void
setClassName(String className)
void
setExecute(Execute execute)
void
setOperationType(OperationType operationType)
void
setSourceFieldOn(Reference sourceFieldOn)
String
toString()
-
Methods inherited from class io.smallrye.graphql.schema.model.Field
addDirectiveInstance, addDirectiveInstances, equals, getAdaptTo, getAdaptWith, getDefaultValue, getDescription, getDirectiveInstances, getMethodName, getName, getPropertyName, getReference, getTransformation, getWrapper, hasDefaultValue, hasDirectiveInstances, hashCode, hasTransformation, hasWrapper, isAdaptingTo, isAdaptingWith, isNotNull, setAdaptTo, setAdaptWith, setDefaultValue, setDescription, setDirectiveInstances, setMethodName, setName, setNotNull, setPropertyName, setReference, setTransformation, setWrapper
-
-
-
-
Method Detail
-
setClassName
public void setClassName(String className)
-
getClassName
public String getClassName()
-
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)
-
-