OUTPUT_TYPE - the output typepublic abstract class GQLAbstractCustomMethod<OUTPUT_TYPE> extends Object implements IGQLAbstractCustomMethod<OUTPUT_TYPE>
| Constructor and Description |
|---|
GQLAbstractCustomMethod()
Default constructor
|
GQLAbstractCustomMethod(String methodName,
boolean mutation,
String... argNames)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getArgumentName(int argumentPosition)
Get argument name at given position
|
List<String> |
getArgumentNames()
Get method argument names
|
String |
getMethodName()
Get the method name that will be available in GraphQL schema
|
Type |
getOutputType()
Get output type from generic configuration of this class
|
boolean |
isMutation()
Get whether this method is a mutation (return true) or a query (return
false).
|
void |
setArgNames(List<String> argNames)
Set custom method argument names
|
void |
setMethodName(String methodName)
Set the method name that will be available in GraphQL schema
|
void |
setMutation(boolean mutation)
Set whether this method is a mutation (return true) or a query (return
false).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetArgumentTypespublic Type getOutputType()
IGQLAbstractCustomMethodgetOutputType in interface IGQLAbstractCustomMethod<OUTPUT_TYPE>public String getArgumentName(int argumentPosition)
IGQLAbstractCustomMethodgetArgumentName in interface IGQLAbstractCustomMethod<OUTPUT_TYPE>argumentPosition - the argument position (0 if first argument of the method, 1public void setMethodName(String methodName)
methodName - the methodName to setpublic String getMethodName()
getMethodName in interface IGQLAbstractCustomMethod<OUTPUT_TYPE>public void setMutation(boolean mutation)
true (mutation).mutation - the mutation to setpublic boolean isMutation()
true (mutation).isMutation in interface IGQLAbstractCustomMethod<OUTPUT_TYPE>public List<String> getArgumentNames()
getArgumentNames in interface IGQLAbstractCustomMethod<OUTPUT_TYPE>Copyright © 2019. All rights reserved.