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

io.kestra.core.models.annotations.Example Maven / Gradle / Ivy

There is a newer version: 0.19.11
Show newest version
package io.kestra.core.models.annotations;

import java.lang.annotation.*;

import static java.lang.annotation.RetentionPolicy.RUNTIME;

@Documented
@Inherited
@Retention(RUNTIME)
@Target({ElementType.TYPE, ElementType.ANNOTATION_TYPE})
@Repeatable(Examples.class)
public @interface Example {
    /**
     * @return The short description of current element
     */
    String title() default "";

    /**
     * @return The code of current element
     */
    String[] code() default "";

    /**
     * @return The language of current element
     */
    String lang() default "yaml";

    /**
     * @return If the example is full (in this case, don't auto add type and id property
     */
    boolean full() default false;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy