View Javadoc
1   package org.pojomatic.annotations;
2   
3   import static java.lang.annotation.ElementType.TYPE;
4   import static java.lang.annotation.RetentionPolicy.RUNTIME;
5   
6   import java.lang.annotation.Documented;
7   import java.lang.annotation.Retention;
8   import java.lang.annotation.Target;
9   
10  import org.pojomatic.formatter.PojoFormatter;
11  
12  /**
13   * Specifies formatting information to be used for creating {@code String} representations of POJOs.
14   * @see PojoFormatter
15   */
16  @SuppressWarnings("deprecation")
17  @Target(TYPE)
18  @Retention(RUNTIME)
19  @Documented
20  public @interface PojoFormat {
21  
22    /**
23     * The formatter to use for creating a {@code String} representation.
24     * @return the formatter to use for creating a {@code String} representation.
25     */
26    public Class<? extends PojoFormatter> value();
27  }