|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sadun.util.ObjectDescriptor
This object exposes methods which use bean introspection to print out descriptions of objects using a resource bundle.
In general, for each attribute in the object, a corresponding label is searched for in the resource bundle, with a key name equal to the attribute name.
Method Summary | |
static java.lang.String |
describe(java.lang.Object obj)
Produces a description of the object, using attribute names as labels. |
static java.lang.String |
describe(java.lang.Object obj,
java.util.ResourceBundle resources)
Produces a description of the object, with labels found in the given bundle by using attribute names as keys. |
static java.lang.String |
describe(java.lang.Object obj,
java.util.ResourceBundle resources,
java.lang.String prefix)
Produces a description of the object, with labels found in the given bundle by using attribute names (with an optional prefix) as keys. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.lang.String describe(java.lang.Object obj)
obj
- the object to describe.
public static java.lang.String describe(java.lang.Object obj, java.util.ResourceBundle resources)
obj
- the object to describe.resources
- the resource bundle where to look for labels
public static java.lang.String describe(java.lang.Object obj, java.util.ResourceBundle resources, java.lang.String prefix)
obj
- the object to describe.resources
- the resource bundle where to look for labelsprefix
- an optional prefix prepended to the resource name when looking in the bundle (may be null)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |