23 lines
661 B
Java
23 lines
661 B
Java
package org.atriasoft.ejson.annotation;
|
|
|
|
import java.lang.annotation.ElementType;
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
import java.lang.annotation.Target;
|
|
|
|
/**
|
|
* Marker annotation that can be used to define an other name of the attribute or the Element name.
|
|
*
|
|
*/
|
|
@Target({ ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER })
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
@EjsonAnnotation
|
|
public @interface JsonName {
|
|
|
|
/**
|
|
* Names of the property of the Element name
|
|
* @note The first name if the default generated in serialization.
|
|
* @return The list the the possible names
|
|
*/
|
|
String[] value();
|
|
} |