All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.smallrye.graphql.schema.model.DirectiveInstance Maven / Gradle / Ivy

There is a newer version: 2.11.0
Show newest version
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 + '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy