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