@Documented @Retention @Target public abstract @interface

JsonSurrogate

implements Annotation
com.atlassian.bitbucket.rest.annotation.JsonSurrogate

Class Overview

Indicates a class is substitutable for another class for the purposes of rendering the original class as JSON.

Classes annotating themselves with this should indicate the class they are surrogates for in the value attribute and should provide one of two constructors:

  • A public single argument constructor taking the an instance of the class in #value()
  • A public double argument constructor taking the an instance of the class in #value() and an instance of NavBuilder

The annotated class should, through its structure or through any other annotations it has applied, be able to be serialised to JSON by jax-rs.

Summary

[Expand]
Inherited Methods
From interface java.lang.annotation.Annotation