Subversion Repositories bacoAlunos

Rev

Blame | Compare with Previous | Last modification | View Log | RSS feed

package genson.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Can be used on java.util.Date and java.util.Calendar to indicate the pattern or lang to
 * use when working with this date field. The pattern format are the standard ones from
 * {@link java.text.SimpleDateFormat}.
 *
 * @author eugen
 */

@1.5.0/docs/api/java/lang/annotation/Target.html">Target({1.5.0/docs/api/java/lang/annotation/ElementType.html">ElementType.FIELD, 1.5.0/docs/api/java/lang/annotation/ElementType.html">ElementType.METHOD, 1.5.0/docs/api/java/lang/annotation/ElementType.html">ElementType.PARAMETER})
@1.5.0/docs/api/java/lang/annotation/Retention.html">Retention(1.5.0/docs/api/java/lang/annotation/RetentionPolicy.html">RetentionPolicy.RUNTIME)
@1.5.0/docs/api/java/lang/annotation/Inherited.html">Inherited
@1.5.0/docs/api/java/lang/annotation/Documented.html">Documented
public @interface JsonDateFormat {
  /**
   * The pattern to use.
   */

  1.5.0/docs/api/java/lang/String.html">String value() default "";

  boolean asTimeInMillis() default false;

  1.5.0/docs/api/java/lang/String.html">String lang() default "";
}