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

de.japkit.metaannotations.AnnotationMode Maven / Gradle / Ivy

package de.japkit.metaannotations;

/**
 * 
 * @author stefan
 * 
 */
public enum AnnotationMode {
	/**
	 * If the same annotation exists (due to previous mapping rule or due to
	 * "copy"), it is an error.
	 */
	ERROR_IF_EXISTS,

	/**
	 * If the same annotation exists, it is re-used and the value mappings will
	 * be applied according to their mapping modes. (See
	 * {@link AVMode})
	 */
	MERGE,

	/**
	 * If the same annotation exists, it is removed and replaced by the new one.
	 */
	REPLACE,

	/**
	 * If the same annotation exists, it is removed and not generated again.
	 * This can be used for blacklisting. (For example, copy all annotations at
	 * first, and then remove some under some conditions).
	 * 

* Annotation value mappings are ignored in this mode. */ REMOVE, /** * If the same annotation exists, the maaping rule is ignored and the * annotation stays at it is. */ IGNORE, /** * Add the annotation to the already generated ones, potentially generating an annotation of same type multiple times. */ JOIN_LIST }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy