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 a DirectiveInstance.
See Also:
  • Constructor Details

    • DirectiveType

      public DirectiveType()
  • Method Details

    • 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()
    • setLocations

      public void setLocations(Set<String> locations)
    • getLocations

      public Set<String> getLocations()
    • 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
    • argumentNames

      public Set<String> argumentNames()
    • argumentType

      public DirectiveArgument argumentType(String name)
    • addArgumentType

      public void addArgumentType(DirectiveArgument type)
    • toString

      public String toString()
      Overrides:
      toString in class Object