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

io.smallrye.graphql.client.core.Directive Maven / Gradle / Ivy

Go to download

SmallRye specific Client API, extending the MicroProfile client api, allowing us to play with the api first before we move it to the spec

There is a newer version: 2.11.0
Show newest version
package io.smallrye.graphql.client.core;

import static io.smallrye.graphql.client.core.utils.ServiceUtils.getNewInstanceOf;
import static java.util.Arrays.asList;
import static java.util.Collections.emptyList;

import java.util.List;

public interface Directive extends Buildable {
    static List directives(Directive... directives) {
        return asList(directives);
    }

    static Directive directive(String name) {
        Directive directive = getNewInstanceOf(Directive.class);

        directive.setName(name);
        directive.setDirectiveArguments(emptyList());

        return directive;
    }

    static Directive directive(String name, DirectiveArgument... directiveArguments) {
        Directive directive = getNewInstanceOf(Directive.class);

        directive.setName(name);
        directive.setDirectiveArguments(asList(directiveArguments));

        return directive;
    }

    String getName();

    void setName(String name);

    List getDirectiveArguments();

    void setDirectiveArguments(List directiveArguments);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy