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

io.sphere.sdk.annotations.HasUpdateActions Maven / Gradle / Ivy

The newest version!
package io.sphere.sdk.annotations;

/**
 * This annotation is used to generate update actions for a resource - only for its primitive types.
 */
public @interface HasUpdateActions {
    /**
     * This adds a {code @include.example exampleBaseClass#updateActionTestName()} javadoc tag
     * to all generated update actions.
     *
     * Where {@code updateActionTestName} is derived by un-capitalizing the update action name
     * (e.g. for a {@code SetKey} update action the updateActionTestName is {@code setKey}.
     *
     * This follows our convention to have integration tests for all of our update actions.
     *
     * @return the example base class name
     */
    String exampleBaseClass() default "";

    /**
     * This allows to disable the generation of the {code @include.example exampleBaseClass#updateActionTestName()}
     * javadoc tag within the update actions.
     *
     * @return the example javadoc tag generation preference. If false, the tag is not created. By default it is true and the tag is created
     */
    boolean deriveExampleBaseClass() default true;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy