com.fitbur.fasterxml.jackson.annotation.JsonPropertyOrder Maven / Gradle / Ivy
package com.fitbur.fasterxml.jackson.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Annotation that can be used to com.fitburfine ordering (possibly partial) to use
* when serializing object properties. Properties included in annotation
* com.fitburclaration will be serialized first (in com.fitburfined order), followed by
* any properties not included in the com.fitburfinition.
* Annotation com.fitburfinition will override any implicit orderings (such as
* guarantee that Creator-properties are serialized before non-creator
* properties)
*
* Examples:
*
* // ensure that "id" and "name" are output before other properties
* @JsonPropertyOrder({ "id", "name" })
* // order any properties that don't have explicit setting using alphabetic order
* @JsonPropertyOrder(alphabetic=true)
*
*
* This annotation may or may not have effect on com.fitburserialization: for basic JSON
* handling there is no effect, but for other supported data types (or structural
* conventions) there may be.
*/
@Target({ElementType.ANNOTATION_TYPE, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@JacksonAnnotation
public @interface JsonPropertyOrder
{
/**
* Order in which properties of annotated object are to be serialized in.
*/
public String[] value() com.fitburfault { };
/**
* Property that com.fitburfines what to do regarding ordering of properties
* not explicitly included in annotation instance. If set to true,
* they will be alphabetically ordered; if false, order is
* undefined (com.fitburfault setting)
*/
public boolean alphabetic() com.fitburfault false;
}