io.smallrye.graphql.schema.model.DirectiveInstance Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of smallrye-graphql-schema-model Show documentation
Show all versions of smallrye-graphql-schema-model Show documentation
A model that represents the schema
package io.smallrye.graphql.schema.model;
import java.util.LinkedHashMap;
import java.util.Map;
/**
* A built-in or {@link DirectiveType custom} directive applied to some location.
*
* @see Directive
*/
public class DirectiveInstance {
private DirectiveType type;
private Map values = new LinkedHashMap<>();
public DirectiveType getType() {
return type;
}
public void setType(DirectiveType type) {
this.type = type;
}
public Object getValue(String name) {
return values.get(name);
}
public void setValue(String name, Object value) {
values.put(name, value);
}
public Map getValues() {
return values;
}
public void setValues(Map values) {
this.values = values;
}
@Override
public String toString() {
return "DirectiveInstance{" + "type=" + type.getName() + ", values=" + values + '}';
}
}