Package io.smallrye.graphql.schema.model
Class DirectiveType
- java.lang.Object
-
- io.smallrye.graphql.schema.model.DirectiveType
-
public class DirectiveType extends Object
A custom directive in the Schema, i.e. the thing that gets declared in the SDL. When applied somewhere, it's aDirectiveInstance
.- See Also:
- Custom Directive
-
-
Constructor Summary
Constructors Constructor Description DirectiveType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addArgumentType(DirectiveArgument type)
Set<String>
argumentNames()
DirectiveArgument
argumentType(String name)
Map<String,DirectiveArgument>
argumentTypesAsMap()
Helper 'getter' methods, but DON'T add 'get' into their names, otherwise it breaks Quarkus bytecode recording, because they would be detected as actual property getters while they are actually notList<DirectiveArgument>
getArgumentTypes()
String
getClassName()
String
getDescription()
Set<String>
getLocations()
String
getName()
boolean
isRepeatable()
void
setArgumentTypes(List<DirectiveArgument> argumentTypes)
void
setClassName(String className)
void
setDescription(String description)
void
setLocations(Set<String> locations)
void
setName(String name)
void
setRepeatable(boolean repeatable)
String
toString()
-
-
-
Method Detail
-
setClassName
public void setClassName(String className)
-
getClassName
public String getClassName()
-
setName
public void setName(String name)
-
getName
public String getName()
-
setDescription
public void setDescription(String description)
-
getDescription
public String getDescription()
-
getArgumentTypes
public List<DirectiveArgument> getArgumentTypes()
-
setArgumentTypes
public void setArgumentTypes(List<DirectiveArgument> argumentTypes)
-
isRepeatable
public boolean isRepeatable()
-
setRepeatable
public void setRepeatable(boolean repeatable)
-
argumentTypesAsMap
public Map<String,DirectiveArgument> argumentTypesAsMap()
Helper 'getter' methods, but DON'T add 'get' into their names, otherwise it breaks Quarkus bytecode recording, because they would be detected as actual property getters while they are actually not
-
argumentType
public DirectiveArgument argumentType(String name)
-
addArgumentType
public void addArgumentType(DirectiveArgument type)
-
-