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

io.quarkus.smallrye.reactivemessaging.deployment.ConnectorAttributeLiteral Maven / Gradle / Ivy

There is a newer version: 3.15.2
Show newest version
package io.quarkus.smallrye.reactivemessaging.deployment;

import java.lang.annotation.Annotation;

import io.smallrye.reactive.messaging.annotations.ConnectorAttribute;

public class ConnectorAttributeLiteral implements ConnectorAttribute {

    private final String name;
    private final String description;
    private final boolean hidden;
    private final boolean mandatory;
    private final Direction direction;
    private final String defaultValue;
    private final boolean deprecated;
    private final String alias;
    private final String type;

    public ConnectorAttributeLiteral(String name, String description, boolean hidden, boolean mandatory,
            Direction direction, String defaultValue, boolean deprecated, String alias, String type) {
        this.name = name;
        this.description = description;
        this.hidden = hidden;
        this.mandatory = mandatory;
        this.direction = direction;
        this.defaultValue = defaultValue;
        this.deprecated = deprecated;
        this.alias = alias;
        this.type = type;
    }

    public static ConnectorAttribute create(String name, String description, boolean hidden, boolean mandatory,
            Direction direction, String defaultValue, boolean deprecated, String alias, String type) {
        return new ConnectorAttributeLiteral(name, description, hidden, mandatory, direction, defaultValue, deprecated, alias,
                type);
    }

    public String name() {
        return name;
    }

    public String description() {
        return description;
    }

    public boolean hiddenFromDocumentation() {
        return hidden;
    }

    public boolean mandatory() {
        return mandatory;
    }

    public Direction direction() {
        return direction;
    }

    public String defaultValue() {
        return defaultValue;
    }

    public boolean deprecated() {
        return deprecated;
    }

    public String alias() {
        return alias;
    }

    public String type() {
        return type;
    }

    @Override
    public Class annotationType() {
        return ConnectorAttribute.class;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy