org.springframework.roo.addon.tostring
Annotation Type RooToString
@Target(value=TYPE)
@Retention(value=SOURCE)
public @interface RooToString
Provides a Object.toString()
method if requested.
Whilst it is possible to apply this annotation to any class that you'd like a Object.toString()
method
produced for, it is generally trigger automatically via the use of most other annotations in the system.
The created method is conservative and only includes public accessor methods within the produced string. Further,
any accessor which returns a common JDK Collection
type is restricted to displaying its size only.
- Since:
- 1.0
- Author:
- Ben Alex
toStringMethod
public abstract String toStringMethod
- Returns:
- the name of the
Object.toString()
method to generate (defaults to "toString"; if empty, does not create)
- Default:
- "toString"
Copyright © 2009-2010 VMware, Inc. All Rights Reserved.