org.springframework.roo.addon.json
Annotation Type RooJson


@Target(value=TYPE)
@Retention(value=SOURCE)
public @interface RooJson

Trigger annotation for addon-json

Since:
1.1
Author:
Stefan Schmidt

Optional Element Summary
 String fromJsonArrayMethod
          Specify name of the "fromJsonArrayTo" method to generate.
 String fromJsonMethod
          Specify name of the "fromJsonTo" method to generate.
 String toJsonArrayMethod
          Specify name of the "toJsonArray" method to generate.
 String toJsonMethod
          Specify name of the "toJson" method to generate.
 

toJsonMethod

public abstract String toJsonMethod
Specify name of the "toJson" method to generate. Use a value of "" to avoid the generation of this method.

Returns:
the name of the "toJson" method to generate (defaults to "toJson"; mandatory)
Default:
"toJson"

fromJsonMethod

public abstract String fromJsonMethod
Specify name of the "fromJsonTo" method to generate. Use a value of "" to avoid the generation of this method.

Returns:
the name of the "fromJsonTo" method to generate (defaults to "fromJsonTo"; mandatory)
Default:
"fromJsonTo"

fromJsonArrayMethod

public abstract String fromJsonArrayMethod
Specify name of the "fromJsonArrayTo" method to generate. Use a value of "" to avoid the generation of this method.

Returns:
the name of the "fromJsonArrayTo" method to generate (defaults to "fromJsonArrayTo"; mandatory)
Default:
"fromJsonArrayTo"

toJsonArrayMethod

public abstract String toJsonArrayMethod
Specify name of the "toJsonArray" method to generate. Use a value of "" to avoid the generation of this method.

Returns:
the name of the "toJsonArray" method to generate (defaults to "toJsonArray"; mandatory)
Default:
"toJsonArray"


Copyright © 2011. All Rights Reserved.