|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An object that is provided with a description of another object. The receiver will format this information.
Method Summary | |
void |
array(java.lang.String key,
java.lang.Object[] values)
Emits a list of values for the key. |
void |
collection(java.lang.String key,
java.util.Collection values)
As with array(String, Object[]) , but the values are in a collection (which may be
null, to emit nothing). |
void |
describeAlternate(java.lang.Object alternate)
Invoke to describe another object instead of the current object. |
void |
property(java.lang.String key,
boolean value)
|
void |
property(java.lang.String key,
byte value)
|
void |
property(java.lang.String key,
char value)
|
void |
property(java.lang.String key,
double value)
|
void |
property(java.lang.String key,
float value)
|
void |
property(java.lang.String key,
int value)
|
void |
property(java.lang.String key,
long value)
|
void |
property(java.lang.String key,
java.lang.Object value)
Emits a key/value pair, describing a property of the object. |
void |
property(java.lang.String key,
short value)
|
void |
section(java.lang.String section)
Starts a new sub-section within the description. |
void |
title(java.lang.String title)
Provides a title for the object; usually the object's class name. |
Method Detail |
public void describeAlternate(java.lang.Object alternate)
public void title(java.lang.String title)
java.lang.IllegalStateException
- if called more than once (for the same object)public void section(java.lang.String section)
java.lang.IllegalStateException
- if called before invoking title(String)
.public void property(java.lang.String key, java.lang.Object value)
java.lang.IllegalStateException
- if called before invoking title(String)
public void property(java.lang.String key, boolean value)
public void property(java.lang.String key, byte value)
public void property(java.lang.String key, short value)
public void property(java.lang.String key, int value)
public void property(java.lang.String key, long value)
public void property(java.lang.String key, float value)
public void property(java.lang.String key, double value)
public void property(java.lang.String key, char value)
public void array(java.lang.String key, java.lang.Object[] values)
public void collection(java.lang.String key, java.util.Collection values)
array(String, Object[])
, but the values are in a collection (which may be
null, to emit nothing).
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |